torquebox-cache 2.0.0-java → 2.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cache.rb CHANGED
@@ -387,7 +387,7 @@ module TorqueBox
387
387
  def nothing
388
388
  result = Object.new
389
389
  def result.method_missing(*args); end
390
- log( "Nothing: Can't get or create an Infinispan cache. No caching will occur", 'ERROR' )
390
+ log( "Nothing: Can't get or create an Infinispan cache. No caching will occur", 'ERROR' ) if defined?(TORQUEBOX_APP_NAME)
391
391
  result
392
392
  end
393
393
 
Binary file
@@ -1,6 +1,6 @@
1
1
  module TorqueboxCache
2
- VERSION = '2.0.0'
3
- MAVEN_VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
+ MAVEN_VERSION = '2.0.1'
4
4
  end
5
5
  begin
6
6
  require 'java'
data/spec/cache_spec.rb CHANGED
@@ -144,13 +144,6 @@ describe TorqueBox::Infinispan::Cache do
144
144
  @cache.get('a false value').should be_false
145
145
  end
146
146
 
147
- it "should store and retrieve nil values" do
148
- pending
149
- @cache.put('a nil value', nil)
150
- @cache.contains_key?('a nil value').should be_true
151
- @cache.get('a nil value').should be_nil
152
- end
153
-
154
147
  it "should expire entries based on provided expiry durations" do
155
148
  cache = TorqueBox::Infinispan::Cache.new( :name => 'expiring-cache' )
156
149
  cache.put("foo", "bar", 0.1)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: torquebox-cache
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: java
7
7
  authors:
8
8
  - The TorqueBox Team
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-31 00:00:00 Z
13
+ date: 2012-04-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - "="
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.0
45
+ version: 2.0.1
46
46
  type: :runtime
47
47
  version_requirements: *id003
48
48
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - "="
55
55
  - !ruby/object:Gem::Version
56
- version: 2.0.0
56
+ version: 2.0.1
57
57
  type: :runtime
58
58
  version_requirements: *id004
59
59
  - !ruby/object:Gem::Dependency
@@ -113,20 +113,20 @@ files:
113
113
  - licenses/lgpl-2.1.txt
114
114
  - lib/torquebox-cache.jar
115
115
  - lib/torquebox-cache.rb
116
- - lib/cache.rb
117
- - lib/dm-infinispan-adapter.rb
118
116
  - lib/cache_listener.rb
117
+ - lib/dm-infinispan-adapter.rb
119
118
  - lib/gem_hook.rb
119
+ - lib/cache.rb
120
+ - lib/active_support/cache/torque_box_store.rb
120
121
  - lib/datamapper/dm-infinispan-adapter.rb
121
- - lib/datamapper/model.rb
122
122
  - lib/datamapper/search.rb
123
- - lib/active_support/cache/torque_box_store.rb
124
- - spec/cache_listener_spec.rb
123
+ - lib/datamapper/model.rb
125
124
  - spec/spec_helper.rb
125
+ - spec/cache_spec.rb
126
+ - spec/cache_listener_spec.rb
127
+ - spec/dm-infinispan-adapter_spec.rb
126
128
  - spec/spec.opts
127
129
  - spec/torque_box_store_spec.rb
128
- - spec/dm-infinispan-adapter_spec.rb
129
- - spec/cache_spec.rb
130
130
  homepage: http://torquebox.org/
131
131
  licenses:
132
132
  - lgpl
@@ -155,7 +155,7 @@ signing_key:
155
155
  specification_version: 3
156
156
  summary: TorqueBox Cache Gem
157
157
  test_files:
158
+ - spec/cache_spec.rb
158
159
  - spec/cache_listener_spec.rb
159
- - spec/torque_box_store_spec.rb
160
160
  - spec/dm-infinispan-adapter_spec.rb
161
- - spec/cache_spec.rb
161
+ - spec/torque_box_store_spec.rb