global_session 3.2.2 → 3.2.3

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: d83ba1f6c19528e40345cc22eec6ae2563449877
4
- data.tar.gz: f27293a41104efc18b42e50419741ec805ba2d6d
3
+ metadata.gz: 963d6cb25a64471b784029c872d54b566e3294c4
4
+ data.tar.gz: 72ff692d9f0c2006617916f278c3b9a8f9c51733
5
5
  SHA512:
6
- metadata.gz: fa6d5e4bf3e3ced8c5f1377012156ab7102044f6df16d415bebc122bffefaad571318a5f3f0924545463178ae72e605e8b0870d59c2030e9ccab53b7ea1de03d
7
- data.tar.gz: 84e1237cd3e053eee017d4d545630a88c801163c90451d97018ae7f74ad78877773c1bf684cf74bce81f1759ea761b68fa9a75b56c99cb128cab9ca228124aeb
6
+ metadata.gz: 605c83e83fc60a9de1376f82473ef4da7d4e167c8532ef1701a04b9bf512b309e6182da581ae97ab21f092e7251c883fb954a33f1d34934e63c9ff79d9626af5
7
+ data.tar.gz: eba30a2fe91159f20bf00a9eb4cbb45aa7a7d70aeac5bd0f426f66cbaae7998efac96de2ecd0daf4b7e92a3a87be95de0cd2fa89c2858295134cd3e26ad45f66
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.2
1
+ 3.2.3
@@ -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.2 ruby lib
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.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-09-10"
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.3"])
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.3"])
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.3"])
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
- data = YAML.load(File.read(config))
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.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-09-11 00:00:00.000000000 Z
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.3
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.3
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