Sha256: 3d03c8886721be662c92507f88c5c62f575af595770ef96bc01e4acaa0ba9a27

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

module Rhinestone
  class Injector
    include Dependor::AutoInject
    look_in_modules Rhinestone

    def initialize(opts = {})
      @cache_path = opts.fetch(:cache_path, '/tmp/rhinestone/cache')
    end

    def cache_backend
      @cache_backend ||= FilesystemCacheBackend.new(@cache_path)
    end

    def hostname
      "rubygems.org"
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhinestone-0.0.2 lib/rhinestone/injector.rb