api_cache 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/api_cache.gemspec +1 -1
  2. data/lib/api_cache.rb +2 -2
  3. metadata +1 -1
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "api_cache"
6
- s.version = "0.2.2"
6
+ s.version = "0.2.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Martyn Loughran"]
9
9
  s.email = ["me@mloughran.com"]
@@ -109,7 +109,7 @@ class APICache
109
109
  cache.set(value)
110
110
  value
111
111
  rescue => e
112
- APICache.logger.info "APICache #{@key}: Exception raised (#{e.message} - #{e.class})" \
112
+ APICache.logger.info "APICache #{key}: Exception raised (#{e.message} - #{e.class})" \
113
113
 
114
114
  # No point outputting backgraces for internal APICache errors
115
115
  APICache.logger.debug "Backtrace:\n#{e.backtrace.join("\n")}" unless e.kind_of?(APICacheError)
@@ -117,7 +117,7 @@ class APICache
117
117
  if cache_state == :refetch
118
118
  cache.get
119
119
  else
120
- APICache.logger.warn "APICache #{@key}: Data not available in the cache or from API"
120
+ APICache.logger.warn "APICache #{key}: Data not available in the cache or from API"
121
121
  if options.has_key?(:fail)
122
122
  fail = options[:fail]
123
123
  fail.respond_to?(:call) ? fail.call : fail
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: api_cache
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Martyn Loughran