rails_4_session_flash_backport 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +4 -1
- data/lib/rails_4_session_flash_backport.rb +0 -2
- data/lib/rails_4_session_flash_backport/version.rb +1 -1
- data/rails_4_session_flash_backport.gemspec +2 -0
- metadata +24 -12
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8a891f45888bdc2ea5e4f3193d2d61c7e76246c0
|
4
|
+
data.tar.gz: b027627596976b2e99e8a97d31f5a4bfda9c66c7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ffc270cf553b3b6763b620b30259035536372cc94678efbf1279b516e7775f8e9d953d77d0e0f5772fad270c9a1f9481dd2e8caafe0fce495cdae4c0d80a1d36
|
7
|
+
data.tar.gz: d0b9954fb0cc5f68a7fe4053c28cb100bb1b91bf9bde5add4bd0f0d9ac82a5d7531ec2792a4a5563240f9f8c77f6ebd5a2f8b1866572b01db1f5c0b987285b43
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# Rails4SessionFlashBackport
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/rails_4_session_flash_backport.png)](http://badge.fury.io/rb/rails_4_session_flash_backport)
|
3
|
+
[![Build Status](https://travis-ci.org/envato/rails_4_session_flash_backport.png)](https://travis-ci.org/envato/rails_4_session_flash_backport)
|
2
4
|
|
3
5
|
Different versions of Rails have stored flash messages in different objects in
|
4
6
|
the session, making it a pain to upgrade without nuking everyones session. The
|
@@ -31,7 +33,8 @@ Rails 3 servers concurrently with your Rails 2 cluster to verify everything is
|
|
31
33
|
fine and performance is acceptable without
|
32
34
|
having to do the all-in switch.
|
33
35
|
|
34
|
-
|
36
|
+
_Please Note_ this gem is not intended to be loaded in Rails 4. If you're using
|
37
|
+
Rails 4, you've already got all of this gem's functionality!
|
35
38
|
|
36
39
|
## Installation
|
37
40
|
|
@@ -7,8 +7,6 @@ when 2
|
|
7
7
|
require 'rails_4_session_flash_backport/rails2/session_with_indifferent_access'
|
8
8
|
when 3
|
9
9
|
require 'rails_4_session_flash_backport/rails3/flash_hash'
|
10
|
-
when 4
|
11
|
-
Rails.logger.warn "You're on Rails 4 so it's probably safe to remove the rails_4_session_flash_backport gem!"
|
12
10
|
else
|
13
11
|
Rails.logger.warn "rails_4_session_flash_backport doesnt yet do anything on Rails #{Rails.version}"
|
14
12
|
end
|
metadata
CHANGED
@@ -1,16 +1,29 @@
|
|
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.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lucas Parry
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "<"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "<"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
14
27
|
description: Store flash in the session in Rails 4 style on Rails 2/3
|
15
28
|
email:
|
16
29
|
- lparry@gmail.com
|
@@ -18,8 +31,8 @@ executables: []
|
|
18
31
|
extensions: []
|
19
32
|
extra_rdoc_files: []
|
20
33
|
files:
|
21
|
-
- .gitignore
|
22
|
-
- .travis.yml
|
34
|
+
- ".gitignore"
|
35
|
+
- ".travis.yml"
|
23
36
|
- Gemfile
|
24
37
|
- LICENSE.txt
|
25
38
|
- README.md
|
@@ -34,27 +47,26 @@ files:
|
|
34
47
|
- spec/rails3/flash_hash_spec.rb
|
35
48
|
homepage: https://github.com/envato/rails_4_session_flash_backport
|
36
49
|
licenses: []
|
50
|
+
metadata: {}
|
37
51
|
post_install_message:
|
38
52
|
rdoc_options: []
|
39
53
|
require_paths:
|
40
54
|
- lib
|
41
55
|
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
56
|
requirements:
|
44
|
-
- -
|
57
|
+
- - ">="
|
45
58
|
- !ruby/object:Gem::Version
|
46
59
|
version: '0'
|
47
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
61
|
requirements:
|
50
|
-
- -
|
62
|
+
- - ">="
|
51
63
|
- !ruby/object:Gem::Version
|
52
64
|
version: '0'
|
53
65
|
requirements: []
|
54
66
|
rubyforge_project:
|
55
|
-
rubygems_version:
|
67
|
+
rubygems_version: 2.2.2
|
56
68
|
signing_key:
|
57
|
-
specification_version:
|
69
|
+
specification_version: 4
|
58
70
|
summary: Backport of the way Rails 4 stores flash messages in the session to Rails
|
59
71
|
2 & 3, so you can safely take a session betweens Rails versions without things exploding.
|
60
72
|
test_files:
|