firebug 1.4.1 → 1.4.2

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
  SHA256:
3
- metadata.gz: 723ca34f5c52ba133295ff0529508893c801b6f0d67af2bab2657797b0e72c85
4
- data.tar.gz: 9c395c36fb4d4b571cb37f5795065820a760f08a1710f1195df401b8f63e728a
3
+ metadata.gz: d65fd3b75a4aa0f879d00b233901b875fb66386c5b183573592e57d26e666846
4
+ data.tar.gz: f816a2292a86d4cfea778e46ea091c61a56a46833cddf90f730afdb3728de203
5
5
  SHA512:
6
- metadata.gz: 54ee4af5d4aa349d4a5bb3c76191b24d61a4ecf9d77109f36e1807e234ead43b2e9ba843ce693cf7d7f5437fd7096875bc3dae9f7830702ea61295e8fb64ff51
7
- data.tar.gz: ee3b4de06fcea2f610b3ea37f043b56e58b3a1a41d33cee149e68dea0c00da6c1784f27535be43752508f839552f06236935a8714fda417474c01b4945d24a52
6
+ metadata.gz: 719d8bcbed085ff6d53087ed8a1945a63c8ff49e2fe7072386b3f58c68fd440cd09e7a356affe904390a0cc2f813aedf94a6aff2a859dc8a04e4d97e10568501
7
+ data.tar.gz: 4e8200ae3a85ec5ceb9bc94158bd18969a84fb6cb874b1e25ccfc7667cf3039ccfe3f05be6137ebb51e417aec794f7dea9b0df0f26a5a07fff2b925fa04ca1eb
@@ -1,3 +1,11 @@
1
+ # 1.4.2
2
+
3
+ * Use the `Rack::Session::SessionId#public_id` for the session_id before updating the user_data.
4
+
5
+ # 1.4.1
6
+
7
+ * Fix for the update to rack session IDs.
8
+
1
9
  # 1.4.0
2
10
 
3
11
  * Updated to work with Rails 6.
@@ -9,7 +9,7 @@ module ActionDispatch # :nodoc:
9
9
  class CodeIgniterStore < AbstractStore
10
10
  # The key name used to store the session model in the request env.
11
11
  SESSION_RECORD_KEY = 'rack.session.record'
12
- # The request env hash key that has the logger instance.
12
+ # The request env hash key has the logger instance.
13
13
  ACTION_DISPATCH_LOGGER_KEY = 'action_dispatch.logger'
14
14
 
15
15
  # @param [Object] app
@@ -84,7 +84,7 @@ module ActionDispatch # :nodoc:
84
84
  return false unless model.update(model_params)
85
85
 
86
86
  req.env[SESSION_RECORD_KEY] = model
87
- # Return the encrypted cookie format of the data. Rack sets this value as the cookie in the response
87
+ # Return the encrypted cookie format of the data. Rack sets this value as the cookie in the response.
88
88
  model.cookie_data
89
89
  end
90
90
  end
@@ -106,7 +106,7 @@ module ActionDispatch # :nodoc:
106
106
  return if options[:drop]
107
107
 
108
108
  req.env[SESSION_RECORD_KEY] = nil
109
- # Generate a new one and return it's ID
109
+ # Generate a new one and return its ID
110
110
  find_session_model(req).tap { |s| s.save if options[:renew] }.session_id
111
111
  end
112
112
  end
@@ -7,13 +7,14 @@ module Firebug
7
7
  class Session < ActiveRecord::Base
8
8
  self.table_name = 'default_ci_sessions'
9
9
 
10
- # @return [Object]
10
+ # @return [Hash, Array]
11
11
  def user_data
12
12
  Firebug.unserialize(super || '')
13
13
  end
14
14
 
15
- # @param [Object] value
15
+ # @param [Hash] value
16
16
  def user_data=(value)
17
+ value.transform_values! { |v| v.respond_to?(:public_id) ? v.public_id : v }
17
18
  super(Firebug.serialize(value))
18
19
  end
19
20
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Firebug
4
4
  # The current version of Firebug
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Frase
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-06 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack