global_session 3.2.2 → 3.2.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/global_session.gemspec +6 -6
- data/lib/global_session/configuration.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 963d6cb25a64471b784029c872d54b566e3294c4
|
4
|
+
data.tar.gz: 72ff692d9f0c2006617916f278c3b9a8f9c51733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 605c83e83fc60a9de1376f82473ef4da7d4e167c8532ef1701a04b9bf512b309e6182da581ae97ab21f092e7251c883fb954a33f1d34934e63c9ff79d9626af5
|
7
|
+
data.tar.gz: eba30a2fe91159f20bf00a9eb4cbb45aa7a7d70aeac5bd0f426f66cbaae7998efac96de2ecd0daf4b7e92a3a87be95de0cd2fa89c2858295134cd3e26ad45f66
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.3
|
data/global_session.gemspec
CHANGED
@@ -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
|
+
# stub: global_session 3.2.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "global_session"
|
9
|
-
s.version = "3.2.
|
9
|
+
s.version = "3.2.3"
|
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 = "2015-
|
14
|
+
s.date = "2015-12-07"
|
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 = [
|
@@ -66,7 +66,7 @@ Gem::Specification.new do |s|
|
|
66
66
|
s.add_development_dependency(%q<ruby-debug>, ["~> 0.10"])
|
67
67
|
s.add_development_dependency(%q<pry>, ["~> 0.10"])
|
68
68
|
s.add_development_dependency(%q<pry-byebug>, ["~> 2.0"])
|
69
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8
|
69
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
|
70
70
|
else
|
71
71
|
s.add_dependency(%q<json>, ["~> 1.4"])
|
72
72
|
s.add_dependency(%q<rack-contrib>, ["~> 1.0"])
|
@@ -75,7 +75,7 @@ Gem::Specification.new do |s|
|
|
75
75
|
s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
|
76
76
|
s.add_dependency(%q<pry>, ["~> 0.10"])
|
77
77
|
s.add_dependency(%q<pry-byebug>, ["~> 2.0"])
|
78
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
78
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
79
79
|
end
|
80
80
|
else
|
81
81
|
s.add_dependency(%q<json>, ["~> 1.4"])
|
@@ -85,7 +85,7 @@ Gem::Specification.new do |s|
|
|
85
85
|
s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
|
86
86
|
s.add_dependency(%q<pry>, ["~> 0.10"])
|
87
87
|
s.add_dependency(%q<pry-byebug>, ["~> 2.0"])
|
88
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
88
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -20,6 +20,7 @@
|
|
20
20
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
21
|
|
22
22
|
require 'yaml'
|
23
|
+
require 'erb'
|
23
24
|
|
24
25
|
module GlobalSession
|
25
26
|
# Central point of access for GlobalSession configuration information. This is
|
@@ -97,7 +98,8 @@ module GlobalSession
|
|
97
98
|
if config.is_a?(Hash)
|
98
99
|
@config = config
|
99
100
|
elsif File.file?(config)
|
100
|
-
|
101
|
+
yaml = ERB.new(File.read(config)).result
|
102
|
+
data = YAML.load(yaml)
|
101
103
|
unless data.is_a?(Hash)
|
102
104
|
raise TypeError, "Configuration file #{File.basename(config)} must contain a hash as its top-level element"
|
103
105
|
end
|
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.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Spataro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 1.8
|
123
|
+
version: '1.8'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.8
|
130
|
+
version: '1.8'
|
131
131
|
description: This Rack middleware allows several web apps in an authentication domain
|
132
132
|
to share session state, facilitating single sign-on in a distributed web app. It
|
133
133
|
only provides session sharing and does not concern itself with authentication or
|