jruby-ehcache-rails3 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
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-rails3
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
@@ -67,6 +67,7 @@ files:
67
67
  - lib/ehcache/cache_manager.rb
68
68
  - lib/ehcache/config.rb
69
69
  - lib/ehcache/element.rb
70
+ - lib/ehcache/extensions.rb
70
71
  - lib/ehcache/java.rb
71
72
  - lib/ehcache/version.rb
72
73
  - lib/ehcache/yaml_config.rb
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  requirements: []
119
120
 
120
121
  rubyforge_project: ehcache
121
- rubygems_version: 1.8.24
122
+ rubygems_version: 1.8.9
122
123
  signing_key:
123
124
  specification_version: 3
124
125
  summary: Rails 3 cache store provider using Ehcache