resterl 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ # Disable caching with the NilCache :-)
2
+ class Resterl::Caches::NilCache < Resterl::Caches::CacheInterface
3
+ def read key
4
+ nil
5
+ end
6
+ def write key, value, expires_in
7
+ value
8
+ end
9
+ def delete key
10
+ nil
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Resterl
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
data/lib/resterl.rb CHANGED
@@ -13,6 +13,7 @@ require 'resterl/caches/redis_cache'
13
13
  require 'resterl/caches/simple_cache'
14
14
  require 'resterl/caches/rails_memcached_cache'
15
15
  require 'resterl/caches/key_prefix_decorator'
16
+ require 'resterl/caches/nil_cache'
16
17
 
17
18
  require 'resterl/client'
18
19
  require 'resterl/generic_request'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resterl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-29 00:00:00.000000000 Z
12
+ date: 2012-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -76,6 +76,7 @@ files:
76
76
  - lib/resterl/base_object.rb
77
77
  - lib/resterl/caches/cache_interface.rb
78
78
  - lib/resterl/caches/key_prefix_decorator.rb
79
+ - lib/resterl/caches/nil_cache.rb
79
80
  - lib/resterl/caches/rails_memcached_cache.rb
80
81
  - lib/resterl/caches/redis_cache.rb
81
82
  - lib/resterl/caches/simple_cache.rb