jruby-ehcache 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/ext/ehcache-2.4.2/ehcache-core-2.4.2.jar +0 -0
- data/ext/ehcache-2.4.2/ehcache-terracotta-2.4.2.jar +0 -0
- data/ext/ehcache-2.4.2/slf4j-api-1.6.1.jar +0 -0
- data/ext/ehcache-2.4.2/slf4j-jdk14-1.6.1.jar +0 -0
- data/ext/{ehcache-2.3.0/terracotta-toolkit-1.1-runtime-2.0.0.jar → ehcache-2.4.2/terracotta-toolkit-1.2-runtime-3.1.0.jar} +0 -0
- data/lib/ehcache/cache.rb +2 -1
- data/lib/ehcache/element.rb +3 -1
- metadata +7 -7
- data/ext/ehcache-2.3.0/ehcache-core-2.3.0.jar +0 -0
- data/ext/ehcache-2.3.0/ehcache-terracotta-2.3.0.jar +0 -0
- data/ext/ehcache-2.3.0/slf4j-api-1.5.11.jar +0 -0
- data/ext/ehcache-2.3.0/slf4j-jdk14-1.5.11.jar +0 -0
data/Rakefile
CHANGED
@@ -44,7 +44,7 @@ Jeweler::Tasks.new do |gemspec|
|
|
44
44
|
gemspec.description = 'Rails 3 cache store provider using Ehcache'
|
45
45
|
gemspec.files = FileList['lib/active_support/**/*', 'lib/ehcache/rails/**/*']
|
46
46
|
gemspec.test_files = []
|
47
|
-
gemspec.add_dependency 'jruby-ehcache', ">=1.1.
|
47
|
+
gemspec.add_dependency 'jruby-ehcache', ">=1.1.1"
|
48
48
|
end
|
49
49
|
|
50
50
|
Jeweler::Tasks.new do |gemspec|
|
@@ -54,7 +54,7 @@ Jeweler::Tasks.new do |gemspec|
|
|
54
54
|
gemspec.description = 'Rails 2 cache store provider using Ehcache'
|
55
55
|
gemspec.files = FileList['lib/active_support/**/*', 'lib/ehcache/rails/**/*']
|
56
56
|
gemspec.test_files = []
|
57
|
-
gemspec.add_dependency 'jruby-ehcache', ">=1.1.
|
57
|
+
gemspec.add_dependency 'jruby-ehcache', ">=1.1.1"
|
58
58
|
end
|
59
59
|
|
60
60
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/ehcache/cache.rb
CHANGED
@@ -31,7 +31,8 @@ class Java::NetSfEhcache::Cache
|
|
31
31
|
raise ArgumentError, "Must be Element object or key and value arguments"
|
32
32
|
end
|
33
33
|
|
34
|
-
if options[:unless_exist]
|
34
|
+
if options[:unless_exist] || options[:unlessExist] ||
|
35
|
+
options[:if_absent] ||options[:ifAbsent]
|
35
36
|
put_if_absent(element)
|
36
37
|
else
|
37
38
|
ehcache_put(element)
|
data/lib/ehcache/element.rb
CHANGED
@@ -16,7 +16,9 @@ class Java::NetSfEhcache::Element
|
|
16
16
|
alias ttl= setTimeToLive
|
17
17
|
|
18
18
|
alias expires_in getTimeToLive
|
19
|
-
def expires_in(seconds)
|
19
|
+
def expires_in=(seconds)
|
20
20
|
setTimeToLive(seconds.to_i)
|
21
21
|
end
|
22
|
+
alias expiresIn expires_in
|
23
|
+
alias expiresIn= expires_in=
|
22
24
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: jruby-ehcache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dylan Stamat
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-05-
|
14
|
+
date: 2011-05-05 00:00:00 -07:00
|
15
15
|
default_executable: ehcache
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -48,11 +48,11 @@ files:
|
|
48
48
|
- config/ehcache_manual_rmi.yml
|
49
49
|
- examples/ehcache.xml
|
50
50
|
- examples/jruby-ehcache.rb
|
51
|
-
- ext/ehcache-2.
|
52
|
-
- ext/ehcache-2.
|
53
|
-
- ext/ehcache-2.
|
54
|
-
- ext/ehcache-2.
|
55
|
-
- ext/ehcache-2.
|
51
|
+
- ext/ehcache-2.4.2/ehcache-core-2.4.2.jar
|
52
|
+
- ext/ehcache-2.4.2/ehcache-terracotta-2.4.2.jar
|
53
|
+
- ext/ehcache-2.4.2/slf4j-api-1.6.1.jar
|
54
|
+
- ext/ehcache-2.4.2/slf4j-jdk14-1.6.1.jar
|
55
|
+
- ext/ehcache-2.4.2/terracotta-toolkit-1.2-runtime-3.1.0.jar
|
56
56
|
- lib/ehcache.rb
|
57
57
|
- lib/ehcache/cache.rb
|
58
58
|
- lib/ehcache/cache_manager.rb
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|