rails-rack-session 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01a4451825cb352966c1968a99a8e01f8705f329
4
- data.tar.gz: 7f091b1bf8383fc051a94711943b5b869835651a
3
+ metadata.gz: 6b8dba0ca4bbef8c88cde9f383d173ab20cd7c0a
4
+ data.tar.gz: ae81ec8b063a805a54860e6af0c419eb6468604d
5
5
  SHA512:
6
- metadata.gz: 41867a15599fb9a308ab72b64134577311f8768251e9240c37a05016b71fe784b89ca350a83d65cc75f662a3d9a44ac82d721084bce11c3e284380acbce2bdb9
7
- data.tar.gz: dd40d9084d8a481e2d9e6f595f922943064902be526d40f39b30430f39e0d1c746e19df07cac73cfb87eefe631123d5cd16f4e49a30e9b036463ecf71ce4ee73
6
+ metadata.gz: d941e5af43d561556c8926c5b401c7690a6b11662da496b9ca241fd40d5fec2331cc0e060e73be329d4aba0cdcc82ee3193099269125037e7da486832bc04315
7
+ data.tar.gz: 2414e15e81713e8104481199630a9d38af72c3477b5b23b27f5871f78d7fdc801ca388c0df9ceb017363b9243a74ecd3604a1651a9c642a079d47ca628bffed3
data/README.md CHANGED
@@ -50,6 +50,10 @@ The `:store` key corresponds to the name of a `Rack::Session` class, e.g. `Cooki
50
50
  the `:secret` key is inferred from your app's `secret_key_base`, usually set in
51
51
  `config/secrets.yml`.
52
52
 
53
+ An optional `:coder` key can be given. By default, this is the
54
+ Rack::Session::Cookie::Base64::JSON coder that serializes session data as JSON.
55
+ This is more secure than Rack::Session's default marshalled hash.
56
+
53
57
  Use the same keys used to configure Rack::Session. For cookie store, see
54
58
  http://www.rubydoc.info/gems/rack/Rack/Session/Cookie
55
59
 
@@ -25,6 +25,7 @@ Available options: :cookie, :pool, :memcache
25
25
  end
26
26
 
27
27
  cfg[:secret] ||= app.secrets[:secret_key_base]
28
+ cfg[:coder] ||= Rack::Session::Cookie::Base64::JSON.new
28
29
 
29
30
  session_class = Rack::Session.const_get cfg.delete(:store).to_s.camelize
30
31
 
@@ -1,3 +1,3 @@
1
1
  module RailsRackSession
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-rack-session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kastner