global_session 3.2.5 → 3.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cf0f0c904f527bf182584e926bd80e8b98afcaa
4
- data.tar.gz: eddd6c5e8c9fea9175dfeb3059737757196f5f76
3
+ metadata.gz: 57c8340209a64a81da8fc74cf16013d796838c71
4
+ data.tar.gz: 2384406755bf65f8cdc1fbdf697e3618de32c605
5
5
  SHA512:
6
- metadata.gz: 83c3cfd4461a9c17a30e4881cfe9bd33e0468de8410e38cb740e8a70e415c1aa382be43adf3650d33676cf45e04ec39b4ec3d7cc581d4ee262d1dcbd86334b73
7
- data.tar.gz: 8fdba2a31e228e3eac3cf1dc72e39190a3e51089882523b5b2ef1949710c2807ede4fbc4714b6a1a6bfc2f28885ed138335ebce550ef6414c1fd50372bdba5a3
6
+ metadata.gz: f11ff4132f86bba1adb8b6b11987cbc68c01f616c629c025d95e51cbbf1ac36c7118e583541c6a945ff7e15a16b58845fbc614f4dbb654cd62c7091e3fd24364
7
+ data.tar.gz: d258b70f16fbb381082cc8f2bbb11e4a2aef0ba562304b002606d22be75e70e8e6a97f736b63b0bd8777748efb3d01d8e3003721d45326dfaaddb9230fe7cebc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.5
1
+ 3.2.6
@@ -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.5 ruby lib
5
+ # stub: global_session 3.2.6 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "global_session"
9
- s.version = "3.2.5"
9
+ s.version = "3.2.6"
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-04-07"
14
+ s.date = "2016-05-19"
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 = [
@@ -69,9 +69,15 @@ module GlobalSession
69
69
  "Specified directory class '#{dir_name}' does not inherit from GlobalSession::Directory"
70
70
  end
71
71
 
72
- authorities_dir = File.join(::Rails.root, 'config', 'authorities')
73
- self.directory = dir_klass.new(self.configuration, authorities_dir)
74
- self.keystore = self.directory.keystore
72
+ if self.configuration['keystore'].blank? || self.configuration['keystore']['public'].blank?
73
+ # Support legacy behavior (config/authorities dir always contains pub keys)
74
+ authorities_dir = File.join(::Rails.root, 'config', 'authorities')
75
+ self.directory = dir_klass.new(self.configuration, authorities_dir)
76
+ self.keystore = self.directory.keystore
77
+ else
78
+ # Prefer modern behavior (configuration tells us where to find pub keys)
79
+ self.directory = dir_klass.new(self.configuration)
80
+ end
75
81
 
76
82
  # Add our middleware to the stack.
77
83
  rails_config.middleware.insert_before(ActionController::Base.session_store, ::Rack::Cookies)
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.5
4
+ version: 3.2.6
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-04-07 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json