torquebox-cache 3.0.2-java → 3.1.0-java

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d424e5f853c0b12e94627e2b68ba2f1c5ce19ca
4
- data.tar.gz: 1a42a827997ab831fce29af5949262ca0ecdcb51
3
+ metadata.gz: ad35650c7ee0390f9a8dc6cd340544ee6efd18cf
4
+ data.tar.gz: da4daa0d336a3a6168ae997352618ac414a23f51
5
5
  SHA512:
6
- metadata.gz: d37b026788646909100c59caba89883dc0b7d0e5a45250078953b125b9dc72ff74e2621e3f8f65cb969e0cd7a70ff7ef03074fee10924e5bae9fad3200255af3
7
- data.tar.gz: dd1096b2693d8fafc088ef16df8dee1fa66e5d2ecf2d57052eeb54d18a466e2672fded00f6ba0a90e7a2037e96fea3e2ccc34fcf192fcb930efc9c0f1f73ffc1
6
+ metadata.gz: 163f4981b46e938b78c950f3b3350ab1bd79c3e1a0340732ea776796c6bd653da1097737fe16539190d6aae1c129f320e40076213265e6d50c5140a0d3f2bff5
7
+ data.tar.gz: 83ce16ec86561ce289854e1ae0343047af5494f881b479bdbe80207f161dbddb54e35b02d673fb790ab23bcec01bea6098e8e4f094b6f874925a20821598485b
Binary file
@@ -1,11 +1,11 @@
1
1
  module TorqueboxCache
2
- VERSION = '3.0.2'
3
- MAVEN_VERSION = '3.0.2'
2
+ VERSION = '3.1.0'
3
+ MAVEN_VERSION = '3.1.0'
4
4
  end
5
5
  begin
6
6
  require 'java'
7
7
  require File.dirname(__FILE__) + '/torquebox-cache.jar'
8
- require File.dirname(__FILE__) + '/polyglot-cache-1.16.0.jar'
8
+ require File.dirname(__FILE__) + '/polyglot-cache-1.18.0.jar'
9
9
  rescue LoadError
10
10
  puts 'JAR-based gems require JRuby to load. Please visit www.jruby.org.'
11
11
  raise
@@ -23,19 +23,6 @@ require 'torquebox/codecs'
23
23
  module TorqueBox
24
24
  module Infinispan
25
25
 
26
- # @api private
27
- class ContainerTransactionManagerLookup
28
- begin
29
- include org.infinispan.transaction.lookup.TransactionManagerLookup
30
- rescue NameError
31
- # Not running inside TorqueBox
32
- end
33
-
34
- def getTransactionManager
35
- TorqueBox.fetch('transaction-manager')
36
- end
37
- end
38
-
39
26
  # @api public
40
27
  class Cache
41
28
 
@@ -47,6 +34,7 @@ module TorqueBox
47
34
  java_import org.infinispan.transaction::LockingMode
48
35
  java_import org.infinispan.eviction::EvictionStrategy
49
36
  java_import org.projectodd.polyglot.cache.as::CacheService
37
+ java_import org.torquebox.cache.gem.ContainerTransactionManagerLookup
50
38
  INFINISPAN_AVAILABLE = true
51
39
  rescue NameError => e
52
40
  INFINISPAN_AVAILABLE = false
@@ -363,7 +351,7 @@ module TorqueBox
363
351
 
364
352
  def transaction_manager_lookup
365
353
  @tm ||= if TorqueBox.fetch('transaction-manager')
366
- ContainerTransactionManagerLookup.new
354
+ ContainerTransactionManagerLookup.new(TorqueBox.fetch('transaction-manager'))
367
355
  else
368
356
  org.infinispan.transaction.lookup.GenericTransactionManagerLookup.new
369
357
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquebox-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.1.0
5
5
  platform: java
6
6
  authors:
7
7
  - The TorqueBox Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -44,12 +44,12 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.2
47
+ version: 3.1.0
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - '='
51
51
  - !ruby/object:Gem::Version
52
- version: 3.0.2
52
+ version: 3.1.0
53
53
  prerelease: false
54
54
  type: :runtime
55
55
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,12 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.2
61
+ version: 3.1.0
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - '='
65
65
  - !ruby/object:Gem::Version
66
- version: 3.0.2
66
+ version: 3.1.0
67
67
  prerelease: false
68
68
  type: :runtime
69
69
  - !ruby/object:Gem::Dependency
@@ -104,16 +104,16 @@ files:
104
104
  - licenses/cc0-1.0.txt
105
105
  - lib/torquebox-cache.jar
106
106
  - lib/torquebox-cache.rb
107
- - lib/polyglot-cache-1.16.0.jar
107
+ - lib/polyglot-cache-1.18.0.jar
108
108
  - lib/gem_hook.rb
109
109
  - lib/active_support/cache/torquebox_store.rb
110
110
  - lib/active_support/cache/torque_box_store.rb
111
111
  - lib/torquebox/cache.rb
112
- - spec/cache_spec.rb
113
112
  - spec/spec_helper.rb
114
- - spec/spec.opts
115
- - spec/gem_hook_spec.rb
116
113
  - spec/torque_box_store_spec.rb
114
+ - spec/gem_hook_spec.rb
115
+ - spec/spec.opts
116
+ - spec/cache_spec.rb
117
117
  homepage: http://torquebox.org/
118
118
  licenses:
119
119
  - Public Domain
@@ -139,6 +139,6 @@ signing_key:
139
139
  specification_version: 4
140
140
  summary: TorqueBox Cache Gem
141
141
  test_files:
142
- - spec/cache_spec.rb
143
- - spec/gem_hook_spec.rb
144
142
  - spec/torque_box_store_spec.rb
143
+ - spec/gem_hook_spec.rb
144
+ - spec/cache_spec.rb