global_session 3.2.7 → 3.2.8

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: 0620d4465d4bc593edc9943d1044c70e9ee3d220
4
- data.tar.gz: b4663a7be3591672e0f28efee65277747268abc0
3
+ metadata.gz: b38238ab7a15ce16b77e388316e79391daeb8c15
4
+ data.tar.gz: c39282f982f39acbcebb816269f6755035db4edf
5
5
  SHA512:
6
- metadata.gz: c1533c197fd40e6c669008f7315d923a5e0644107e15dd5ce6dfe731ef2ae0430e40e2e734f78201938c562f2b8ae80802723e5c8c81778dc46245c182bf10ca
7
- data.tar.gz: 6f12ebcef832098ed0bf3107c7bc9b39d65da720d4db3f811161511983582dd0bdb7dbe8b1116a1e15df187b39b20334b7441e0e6faa40e43723b9d06e1539cc
6
+ metadata.gz: 70e47be4e108ee68cf9a6d826a6138796a1409c85b7bac2c53847ba12276a44aa0e8f47ab3ce80d6ed6092c19616d76d4efc22d406e874dd406e281fe8f3a118
7
+ data.tar.gz: cfe7e8d87eb1008de76ae93cbf970e4c641f321c04e8fed0dea419244116fbf93ed4b6773149d8177c6cc084f149b8266eacfdc31e3cc5717b94ea9aea7434ea
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.7
1
+ 3.2.8
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: global_session 3.2.6 ruby lib
5
+ # stub: global_session 3.2.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "global_session"
9
- s.version = "3.2.6"
9
+ s.version = "3.2.8"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Tony Spataro"]
14
- s.date = "2016-05-19"
14
+ s.date = "2016-08-20"
15
15
  s.description = "This Rack middleware allows several web apps in an authentication domain to share session state, facilitating single sign-on in a distributed web app. It only provides session sharing and does not concern itself with authentication or replication of the user database."
16
16
  s.email = "support@rightscale.com"
17
17
  s.extra_rdoc_files = [
@@ -22,6 +22,9 @@
22
22
  # Standard library dependencies
23
23
  require 'set'
24
24
 
25
+ # Cryptographical Hash
26
+ require 'right_support/crypto'
27
+
25
28
  module GlobalSession::Session
26
29
  # Global session V2 uses msgpack serialization and no compression. Its msgpack structure is an
27
30
  # Array with the following format:
@@ -22,6 +22,9 @@
22
22
  # Standard library dependencies
23
23
  require 'set'
24
24
 
25
+ # Cryptographical Hash
26
+ require 'right_support/crypto'
27
+
25
28
  module GlobalSession::Session
26
29
  # Global session V3 uses JSON serialization, no compression, and a detached signature that is
27
30
  # excluded from the JSON structure for efficiency reasons.
@@ -123,14 +126,14 @@ module GlobalSession::Session
123
126
  @dirty_secure = true if @signed.keys.include? key
124
127
  value = @signed.delete(key)
125
128
  elsif @schema_insecure.include?(key)
126
-
129
+
127
130
  # Only mark dirty if the key actually exists
128
131
  @dirty_insecure = true if @insecure.keys.include? key
129
132
  value = @insecure.delete(key)
130
133
  else
131
134
  raise ArgumentError, "Attribute '#{key}' is not specified in global session configuration"
132
135
  end
133
-
136
+
134
137
  return value
135
138
  end
136
139
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json