rails_4_session_flash_backport 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -17,9 +17,9 @@ When using this gem on a Rails 2 or 3 app:
|
|
17
17
|
- Flash messages in the Rails 4 format can be successfully decoded.
|
18
18
|
|
19
19
|
Additionally, on Rails 2 we include some patches for the SessionHash and
|
20
|
-
CookieStore
|
21
|
-
|
22
|
-
|
20
|
+
CookieStore in order to make them act more like a HashWithIndifferentAccess,
|
21
|
+
like the versions on Rails 3, so that your session_id can survive a trip to
|
22
|
+
Rails 3 and back.
|
23
23
|
|
24
24
|
This actually makes it possible to bounce requests from a Rails 2 server, to a
|
25
25
|
Rails 3 server and back again so long as both servers are using this gem. Very
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# The SessionHash
|
1
|
+
# The SessionHash acts like a HashWithIndifferentAccess on Rails 3, which causes
|
2
2
|
# problems with the session_id among other things. On Rails 2 the session_id is
|
3
3
|
# stored as session[:session_id], if we take that session to Rails 3 it becomes
|
4
4
|
# session["session_id"], and if we bring it back to Rails 2 it's still
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["lparry@gmail.com"]
|
11
11
|
gem.description = %q{Store flash in the session in Rails 4 style on Rails 2/3}
|
12
12
|
gem.summary = %q{Backport of the way Rails 4 stores flash messages in the session to Rails 2 & 3, so you can safely take a session betweens Rails versions without things exploding.}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/envato/rails_4_session_flash_backport"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_4_session_flash_backport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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:
|
12
|
+
date: 2013-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Store flash in the session in Rails 4 style on Rails 2/3
|
15
15
|
email:
|
@@ -31,7 +31,7 @@ files:
|
|
31
31
|
- rails_4_session_flash_backport.gemspec
|
32
32
|
- spec/rails2/flash_hash_spec.rb
|
33
33
|
- spec/rails3/flash_hash_spec.rb
|
34
|
-
homepage:
|
34
|
+
homepage: https://github.com/envato/rails_4_session_flash_backport
|
35
35
|
licenses: []
|
36
36
|
post_install_message:
|
37
37
|
rdoc_options: []
|