jruby-ehcache 1.0.0 → 1.1.0
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.
- data/License.txt +2 -1
- data/README.txt +2 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/ehcache/cache.rb +6 -1
- data/lib/ehcache/element.rb +5 -0
- metadata +11 -28
data/License.txt
CHANGED
data/README.txt
CHANGED
@@ -62,7 +62,8 @@ $ sudo jruby -S gem install jruby-ehcache
|
|
62
62
|
|
63
63
|
|
64
64
|
== LICENSE:
|
65
|
-
Copyright (c) 2008 Dylan Stamat <dstamat@elctech.com>
|
65
|
+
Copyright (c) 2008 - 2010 Dylan Stamat <dstamat@elctech.com> and
|
66
|
+
Jason Voegele <jason@jvoegele.com>
|
66
67
|
|
67
68
|
Permission is hereby granted, free of charge, to any person
|
68
69
|
obtaining a copy of this software and associated documentation
|
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.
|
47
|
+
gemspec.add_dependency 'jruby-ehcache', ">=1.1.0"
|
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.
|
57
|
+
gemspec.add_dependency 'jruby-ehcache', ">=1.1.0"
|
58
58
|
end
|
59
59
|
|
60
60
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/lib/ehcache/cache.rb
CHANGED
@@ -30,7 +30,12 @@ class Java::NetSfEhcache::Cache
|
|
30
30
|
else
|
31
31
|
raise ArgumentError, "Must be Element object or key and value arguments"
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
|
+
if options[:unless_exist]
|
35
|
+
put_if_absent(element)
|
36
|
+
else
|
37
|
+
ehcache_put(element)
|
38
|
+
end
|
34
39
|
end
|
35
40
|
|
36
41
|
alias []= put
|
data/lib/ehcache/element.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby-ehcache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
version: 1.0.0
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Dylan Stamat
|
@@ -15,18 +11,17 @@ autorequire:
|
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
13
|
|
18
|
-
date:
|
14
|
+
date: 2011-05-04 00:00:00 -07:00
|
19
15
|
default_executable: ehcache
|
20
16
|
dependencies:
|
21
17
|
- !ruby/object:Gem::Dependency
|
22
18
|
name: activesupport
|
23
19
|
prerelease: false
|
24
20
|
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
25
22
|
requirements:
|
26
23
|
- - ">="
|
27
24
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
25
|
version: "0"
|
31
26
|
type: :runtime
|
32
27
|
version_requirements: *id001
|
@@ -95,40 +90,28 @@ homepage: http://ehcache.rubyforge.org
|
|
95
90
|
licenses: []
|
96
91
|
|
97
92
|
post_install_message:
|
98
|
-
rdoc_options:
|
99
|
-
|
93
|
+
rdoc_options: []
|
94
|
+
|
100
95
|
require_paths:
|
101
96
|
- lib
|
102
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
103
99
|
requirements:
|
104
100
|
- - ">="
|
105
101
|
- !ruby/object:Gem::Version
|
106
|
-
segments:
|
107
|
-
- 0
|
108
102
|
version: "0"
|
109
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
110
105
|
requirements:
|
111
106
|
- - ">="
|
112
107
|
- !ruby/object:Gem::Version
|
113
|
-
segments:
|
114
|
-
- 0
|
115
108
|
version: "0"
|
116
109
|
requirements: []
|
117
110
|
|
118
111
|
rubyforge_project: ehcache
|
119
|
-
rubygems_version: 1.
|
112
|
+
rubygems_version: 1.5.1
|
120
113
|
signing_key:
|
121
114
|
specification_version: 3
|
122
115
|
summary: JRuby interface to Ehcache
|
123
|
-
test_files:
|
124
|
-
|
125
|
-
- spec/cache_spec.rb
|
126
|
-
- spec/spec_helper.rb
|
127
|
-
- test/test_cache.rb
|
128
|
-
- test/test_cache_manager.rb
|
129
|
-
- test/test_configuration.rb
|
130
|
-
- test/test_ehcache.rb
|
131
|
-
- test/test_element.rb
|
132
|
-
- test/test_helper.rb
|
133
|
-
- test/test_yaml_config.rb
|
134
|
-
- examples/jruby-ehcache.rb
|
116
|
+
test_files: []
|
117
|
+
|