jruby-ehcache 1.3.0 → 1.3.1

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/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.DS_Store
2
2
  pkg/*
3
+ *.gem
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -53,9 +53,9 @@ def process_init_args(*args)
53
53
  args.compact!
54
54
  if args.empty?
55
55
  # First, look relative to the file that is creating the CacheManager.
56
- # The expression caller[2] finds the entry in the call stack where
56
+ # The expression caller[1] finds the entry in the call stack where
57
57
  # CacheManager.new or CacheManager.create was called.
58
- creator = /^(.+?):\d/.match(caller[2])[1]
58
+ creator = /^\s*(.+?):\d/.match(caller[1])[1]
59
59
  if ehcache_config = Java::NetSfEhcacheConfig::Configuration.find(File.dirname(creator))
60
60
  yield(ehcache_config)
61
61
  else
@@ -0,0 +1,9 @@
1
+ class Array
2
+ def extract_options!
3
+ if last.is_a?(Hash)
4
+ pop
5
+ else
6
+ {}
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Ehcache
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  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.3.0
5
+ version: 1.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dylan Stamat
@@ -57,6 +57,7 @@ files:
57
57
  - lib/ehcache/cache_manager.rb
58
58
  - lib/ehcache/config.rb
59
59
  - lib/ehcache/element.rb
60
+ - lib/ehcache/extensions.rb
60
61
  - lib/ehcache/java.rb
61
62
  - lib/ehcache/version.rb
62
63
  - lib/ehcache/yaml_config.rb
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  requirements: []
109
110
 
110
111
  rubyforge_project: ehcache
111
- rubygems_version: 1.8.24
112
+ rubygems_version: 1.8.9
112
113
  signing_key:
113
114
  specification_version: 3
114
115
  summary: JRuby interface to Ehcache