lib/billy/proxy.rb in puffing-billy-0.2.1 vs lib/billy/proxy.rb in puffing-billy-0.2.3
- old
+ new
@@ -2,10 +2,12 @@
require 'uri'
require 'eventmachine'
module Billy
class Proxy
+ attr_reader :cache
+
def initialize
reset
@cache = Billy::Cache.new
end
@@ -52,12 +54,12 @@
def reset_cache
@cache.reset
end
def restore_cache
+ warn "[DEPRECATION] `restore_cache` is deprecated as cache files are dynamincally checked. Use `reset_cache` if you just want to clear the cache."
@cache.reset
- @cache.load_dir
end
protected
def find_stub(method, url)
@@ -74,10 +76,10 @@
@signature = EM.start_server('127.0.0.1', 0, ProxyConnection) do |p|
p.handler = self
p.cache = @cache
end
- Billy.log(:info, "Proxy listening on #{url}")
+ Billy.log(:info, "puffing-billy: Proxy listening on #{url}")
end
end
end
end