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.
@@ -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
- ## Status [![Build Status](https://travis-ci.org/envato/rails_4_session_flash_backport.png?branch=travis_ci)](https://travis-ci.org/envato/rails_4_session_flash_backport)
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
@@ -1,3 +1,3 @@
1
1
  module Rails4SessionFlashBackport
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -16,4 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+
20
+ gem.add_runtime_dependency 'rails', '< 4.0.0'
19
21
  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.3
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: 2014-03-13 00:00:00.000000000 Z
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: 1.8.23
67
+ rubygems_version: 2.2.2
56
68
  signing_key:
57
- specification_version: 3
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: