iron_cache_rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_cache_rails (0.1.1)
4
+ iron_cache_rails (0.1.3)
5
5
  iron_cache (>= 1)
6
6
 
7
7
  GEM
@@ -9,13 +9,13 @@ GEM
9
9
  specs:
10
10
  iron_cache (1.3.0)
11
11
  iron_core (>= 0.4.2)
12
- iron_core (0.4.3)
13
- rest (>= 2.0.2)
12
+ iron_core (0.4.4)
13
+ rest (>= 2.1.1)
14
14
  mime-types (1.19)
15
15
  minitest (4.1.0)
16
16
  net-http-persistent (2.8)
17
17
  rake (0.9.2.2)
18
- rest (2.1.0)
18
+ rest (2.1.1)
19
19
  net-http-persistent
20
20
  rest-client (>= 0.3.0)
21
21
  rest-client (1.6.7)
data/README.md CHANGED
@@ -10,7 +10,7 @@ Then add this gem to your Gemfile:
10
10
  gem 'iron_cache_rails'
11
11
  ```
12
12
 
13
- ## Using As Rails Store
13
+ ## Using As Rails Cache Store
14
14
 
15
15
  You can use IronCache as any other rails store. Put iron.json into your project's config dir, add iron_cache_rails to Gemfile and you are ready to go.
16
16
 
@@ -31,7 +31,7 @@ module ActionDispatch
31
31
  [session_id, session_data]
32
32
  end
33
33
 
34
- def set_session(env, session_id, session, options)
34
+ def set_session(env, session_id, session, options={})
35
35
  with_namespace(session_id, options) do |cache, k|
36
36
  cache.put(k, serialize_entry(session, options), options)
37
37
  end
@@ -39,7 +39,7 @@ module ActionDispatch
39
39
  session_id
40
40
  end
41
41
 
42
- def destroy_session(env, session_id, options)
42
+ def destroy_session(env, session_id, options={})
43
43
  with_namespace(session_id, options) do |cache, k|
44
44
  cache.delete(k) rescue nil
45
45
  end
@@ -72,7 +72,7 @@ module ActionDispatch
72
72
  raw_value = ::Base64.decode64(raw_value) rescue raw_value
73
73
  Marshal.load(raw_value) rescue raw_value
74
74
  else
75
- nil
75
+ {}
76
76
  end
77
77
  end
78
78
 
@@ -90,4 +90,4 @@ module ActionDispatch
90
90
 
91
91
  end
92
92
  end
93
- end
93
+ end
@@ -1,3 +1,3 @@
1
1
  module IronCacheRails
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_cache_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-15 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iron_cache