rails_4_session_flash_backport 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bec082af8784a5cfbe67965d2b61f16fd39e324
4
- data.tar.gz: 4c99d009b9753f05b04f9cd1a541215f1aa1ef61
3
+ metadata.gz: b91606904ba3394999c9ee6b94e247aea048ae62
4
+ data.tar.gz: c8e57ed713e1b6498db11d9fd3062b7d92bf36fb
5
5
  SHA512:
6
- metadata.gz: 28bcbea323dfe7f6c54ecadfb4d1e79f0d1eded87dca7963fcc5b5008beb725c45a0dee82f9899ac5e96b851f4a76f23f69a024f118ff5ec727eb94d6a1e8278
7
- data.tar.gz: 224b6591d14db906d8909422cbea3087eaf0d36cf6d36b3af7b391bd0cf90717e5a5465ed8adca4322b6237bd4457938c6713fbc381abd8a292bb571f587bad6
6
+ metadata.gz: '0086b1c10ae14db49ac4dbf9521d7ec715577468cef07e1e239e3c464cdec61d4ba808a6977fddf8f4c27d272b2147ae254a8a187961e597763a5116521214aa'
7
+ data.tar.gz: 24f36abb2d2a94350a386085f54dcf505f29d70dc3818922c815ee259ed2a61da98c98fa249324a88f6ee8f0964f7a313bbbfedd27e68718133e3a84a745c85d
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
+ before_install:
3
+ - gem install bundler -v '~> 1.13'
2
4
  rvm:
3
5
  - 1.9.3
4
6
  - 2.0.0
data/README.md CHANGED
@@ -80,3 +80,16 @@ Or install it yourself as:
80
80
 
81
81
  Copyright (c) 2012 [Envato](http://envato.com), [Lucas Parry](http://github.com/lparry), [chendo](http://github.com/chendo), [sj26](http://github.com/sj26). See LICENSE.txt for further details.
82
82
 
83
+
84
+ ## About
85
+
86
+ This project is maintained by the [Envato engineering team][webuild] and funded by [Envato][envato].
87
+
88
+ [<img src="http://opensource.envato.com/images/envato-oss-readme-logo.png" alt="Envato logo">][envato]
89
+
90
+ Encouraging the use and creation of open source software is one of the ways we serve our community. See [our other projects][oss] or [come work with us][careers] where you'll find an incredibly diverse, intelligent and capable group of people who help make our company succeed and make our workplace fun, friendly and happy.
91
+
92
+ [webuild]: http://webuild.envato.com?utm_source=github
93
+ [envato]: https://envato.com?utm_source=github
94
+ [oss]: http://opensource.envato.com//?utm_source=github
95
+ [careers]: http://careers.envato.com/?utm_source=github
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_4_session_flash_backport (0.1.0)
4
+ rails_4_session_flash_backport (0.2.0)
5
5
  rails (>= 2.0, < 4.3)
6
6
 
7
7
  GEM
@@ -31,10 +31,18 @@ module ActionController #:nodoc:
31
31
 
32
32
  def to_session_value
33
33
  return nil if empty?
34
- discard = @used.select { |key, used| used }.keys
34
+ discard = hashify(@used.select { |_, used| used }).keys
35
35
  {'flashes' => Hash[to_a].except(*discard)}
36
36
  end
37
37
 
38
+ def hashify(selected)
39
+ if selected.respond_to?(:to_h)
40
+ selected.to_h
41
+ else
42
+ selected
43
+ end
44
+ end
45
+
38
46
  def store(session, key = "flash")
39
47
  session[key] = to_session_value
40
48
  end
@@ -1,3 +1,3 @@
1
1
  module Rails4SessionFlashBackport
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -6,8 +6,8 @@ require 'rails_4_session_flash_backport/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "rails_4_session_flash_backport"
8
8
  gem.version = Rails4SessionFlashBackport::VERSION
9
- gem.authors = ["Lucas Parry", "Samuel Cochran"]
10
- gem.email = ["lparry@gmail.com", "sj26@sj26.com"]
9
+ gem.authors = ["Lucas Parry", "Samuel Cochran", "Pete Johns"]
10
+ gem.email = ["lparry@gmail.com", "sj26@sj26.com", "paj+rubygems@johnsy.com"]
11
11
  gem.description = %q{Store flash in the session in Rails 4 style on Rails 2/3/4}
12
12
  gem.summary = %q{Backport of the way Rails 4 stores flash messages in the session to Rails 2/3/4, so you can safely take a session betweens Rails versions without things exploding.}
13
13
  gem.homepage = "https://github.com/envato/rails_4_session_flash_backport"
metadata CHANGED
@@ -1,35 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_4_session_flash_backport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Parry
8
8
  - Samuel Cochran
9
+ - Pete Johns
9
10
  autorequire:
10
11
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
14
- MIIDKDCCAhCgAwIBAgIBAjANBgkqhkiG9w0BAQUFADA6MQ0wCwYDVQQDDARzajI2
15
- MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0x
16
- NDAzMTUwNDM2MTZaFw0xNTAzMTUwNDM2MTZaMDoxDTALBgNVBAMMBHNqMjYxFDAS
17
- BgoJkiaJk/IsZAEZFgRzajI2MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkq
18
- hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr60Eo/ttCk8GMTMFiPr3GoYMIMFvLak
19
- xSmTk9YGCB6UiEePB4THSSA5w6IPyeaCF/nWkDp3/BAam0eZMWG1IzYQB23TqIM0
20
- 1xzcNRvFsn0aQoQ00k+sj+G83j3T5OOV5OZIlu8xAChMkQmiPd1NXc6uFv+Iacz7
21
- kj+CMsI9YUFdNoU09QY0b+u+Rb6wDYdpyvN60YC30h0h1MeYbvYZJx/iZK4XY5zu
22
- 4O/FL2ChjL2CPCpLZW55ShYyrzphWJwLOJe+FJ/ZBl6YXwrzQM9HKnt4titSNvyU
23
- KzE3L63A3PZvExzLrN9u09kuWLLJfXB2sGOlw3n9t72rJiuBr3/OQQIDAQABozkw
24
- NzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU99dfRjEKFyczTeIz
25
- m3ZsDWrNC80wDQYJKoZIhvcNAQEFBQADggEBAFVYjABGprFHcomF60jQZojPyBVj
26
- IBUmAKQ2UEserCwV8GbzxKn9/C+cqO109m1KckeGvFDSvUToBUIEzj5xKNMLJCYJ
27
- xjH30ex7X0LDgqI4z4Z9eXiIR61d9haKEDpqVRKrERMcf4HAyvQoNmYtVTesVNJr
28
- rWOeOPhl1Is+NdYcm1c99Y1ltcstn762ROxVCFk9c6Xe9mrDgB5oBW+LKOY2YCjD
29
- HLacq0o6ejD7AFG3HPAVFeYEnrwCYd6siMnzpVrt3pHfZJxsuhbNnteASNcnk9Uk
30
- YIxHmqJUGGnmqwuBfXe8LZHC5ETJLuZlzO2odzNueQlhukD4wdNa/r4pD1o=
31
- -----END CERTIFICATE-----
32
- date: 2015-02-16 00:00:00.000000000 Z
12
+ cert_chain: []
13
+ date: 2017-02-16 00:00:00.000000000 Z
33
14
  dependencies:
34
15
  - !ruby/object:Gem::Dependency
35
16
  name: rails
@@ -97,6 +78,7 @@ description: Store flash in the session in Rails 4 style on Rails 2/3/4
97
78
  email:
98
79
  - lparry@gmail.com
99
80
  - sj26@sj26.com
81
+ - paj+rubygems@johnsy.com
100
82
  executables: []
101
83
  extensions: []
102
84
  extra_rdoc_files: []
@@ -152,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
134
  version: '0'
153
135
  requirements: []
154
136
  rubyforge_project:
155
- rubygems_version: 2.2.2
137
+ rubygems_version: 2.6.8
156
138
  signing_key:
157
139
  specification_version: 4
158
140
  summary: Backport of the way Rails 4 stores flash messages in the session to Rails
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file