Class: Rhinestone::Injector

Inherits:
Object
  • Object
show all
Includes:
Dependor::AutoInject
Defined in:
lib/rhinestone/injector.rb

Instance Method Summary collapse

Instance Method Details

#cache_backendObject



6
7
8
# File 'lib/rhinestone/injector.rb', line 6

def cache_backend
  @cache_backend ||= FilesystemCacheBackend.new(".cache")
end

#hostnameObject



10
11
12
# File 'lib/rhinestone/injector.rb', line 10

def hostname
  "rubygems.org"
end

#important_headersObject



14
15
16
# File 'lib/rhinestone/injector.rb', line 14

def important_headers
  %w{Content-Type Cache-Control ETag Set-Cookie}
end