flash_hash_request_uuid 0.0.2 → 0.0.3

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aa38f1e39d7d52c22f288a7f87b1ee8f4c58f45a
4
+ data.tar.gz: 3cd9115fd920106ab7f3b36dba36bfdfe0413d16
5
+ SHA512:
6
+ metadata.gz: 12cb5248ae28d9ee3cd3c2da3b9e79d395a2b74b8e5937c887233bd47262a7e27e609dcf9f81c5b63b23db768a5fb68c1ef0348d4153448f6e912c5441e45cda
7
+ data.tar.gz: fdcf2863fd924bfeede5c9a42f1443906530f4cca35bdb66dbe6d0066c9971569821907b4544b6b58ca1328258d5affafea40f42f2b13ad3637c394bbdcfd8a2
@@ -5,7 +5,13 @@ module FlashHashRequestUuid
5
5
  def flash
6
6
  unless request.env[ActionDispatch::Flash::KEY]
7
7
  if session['flash']
8
- request.env[ActionDispatch::Flash::KEY] = session['flash']
8
+ session_flash = session['flash']
9
+
10
+ if session_flash.is_a?(FlashHashRequestUuid::FlashHash)
11
+ session_flash.request_uuid = request.uuid
12
+ end
13
+
14
+ request.env[ActionDispatch::Flash::KEY] = session_flash
9
15
  else
10
16
  flash_hash = FlashHashRequestUuid::FlashHash.new
11
17
  flash_hash.request_uuid = request.uuid
@@ -1,3 +1,3 @@
1
1
  module FlashHashRequestUuid
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_hash_request_uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Vaughan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
11
+ date: 2013-10-10 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! 'Overrides setting flash messages to automatically wrap them in a hash.
13
+ description: 'Overrides setting flash messages to automatically wrap them in a hash.
15
14
  The original message is stored in the :message key and the request UUID is stored
16
15
  in the :request_uuid key. '
17
16
  email:
@@ -32,27 +31,26 @@ files:
32
31
  - lib/flash_hash_request_uuid/version.rb
33
32
  homepage: ''
34
33
  licenses: []
34
+ metadata: {}
35
35
  post_install_message:
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
- none: false
41
40
  requirements:
42
- - - ! '>='
41
+ - - '>='
43
42
  - !ruby/object:Gem::Version
44
43
  version: '0'
45
44
  required_rubygems_version: !ruby/object:Gem::Requirement
46
- none: false
47
45
  requirements:
48
- - - ! '>='
46
+ - - '>='
49
47
  - !ruby/object:Gem::Version
50
48
  version: '0'
51
49
  requirements: []
52
50
  rubyforge_project:
53
- rubygems_version: 1.8.23
51
+ rubygems_version: 2.1.1
54
52
  signing_key:
55
- specification_version: 3
53
+ specification_version: 4
56
54
  summary: Overrides setting flash messages to automatically wrap them in a hash. The
57
55
  original message is stored in the :message key and the request UUID is stored in
58
56
  the :request_uuid key.