lib/rhinestone/injector.rb in rhinestone-0.0.1 vs lib/rhinestone/injector.rb in rhinestone-0.0.2

- old
+ new

@@ -1,11 +1,15 @@ 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") + @cache_backend ||= FilesystemCacheBackend.new(@cache_path) end def hostname "rubygems.org" end