global_session 1.0.16 → 1.0.17
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.
- data/global_session.gemspec +5 -3
- data/lib/global_session.rb +1 -1
- data/lib/global_session/session.rb +1 -12
- metadata +29 -13
data/global_session.gemspec
CHANGED
@@ -7,8 +7,8 @@ spec = Gem::Specification.new do |s|
|
|
7
7
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
|
8
8
|
|
9
9
|
s.name = 'global_session'
|
10
|
-
s.version = '1.0.
|
11
|
-
s.date = '2012-10-
|
10
|
+
s.version = '1.0.17'
|
11
|
+
s.date = '2012-10-30'
|
12
12
|
|
13
13
|
s.authors = ['Tony Spataro']
|
14
14
|
s.email = 'support@rightscale.com'
|
@@ -17,7 +17,9 @@ spec = Gem::Specification.new do |s|
|
|
17
17
|
s.summary = %q{Secure single-domain session sharing plugin for Rails.}
|
18
18
|
s.description = %q{This plugin for Rails 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.}
|
19
19
|
|
20
|
-
s.add_runtime_dependency('
|
20
|
+
s.add_runtime_dependency('right_support', ["~> 2.5"])
|
21
|
+
|
22
|
+
s.add_runtime_dependency('simple_uuid', [">= 0.2.0"])
|
21
23
|
s.add_runtime_dependency('json', ["~> 1.4"])
|
22
24
|
s.add_runtime_dependency('rack-contrib', ["~> 1.0"])
|
23
25
|
|
data/lib/global_session.rb
CHANGED
@@ -23,9 +23,6 @@
|
|
23
23
|
require 'set'
|
24
24
|
require 'zlib'
|
25
25
|
|
26
|
-
# Gem dependencies
|
27
|
-
require 'uuidtools'
|
28
|
-
|
29
26
|
module GlobalSession
|
30
27
|
# Ladies and gentlemen: the one and only, star of the show, GLOBAL SESSION!
|
31
28
|
#
|
@@ -389,15 +386,7 @@ module GlobalSession
|
|
389
386
|
@insecure = {}
|
390
387
|
@created_at = Time.now.utc
|
391
388
|
@authority = @directory.local_authority_name
|
392
|
-
|
393
|
-
if defined?(::UUIDTools) # UUIDTools v2
|
394
|
-
@id = ::UUIDTools::UUID.timestamp_create.to_s
|
395
|
-
elsif defined?(::UUID) # UUIDTools v1
|
396
|
-
@id = ::UUID.timestamp_create.to_s
|
397
|
-
else
|
398
|
-
raise TypeError, "Neither UUIDTools nor UUID defined; unsupported UUIDTools version?"
|
399
|
-
end
|
400
|
-
|
389
|
+
@id = RightSupport::Data::UUID.generate
|
401
390
|
renew!
|
402
391
|
end
|
403
392
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_session
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 53
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 17
|
10
|
+
version: 1.0.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Spataro
|
@@ -15,26 +15,42 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-30 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
23
|
none: false
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash:
|
27
|
+
hash: 9
|
28
28
|
segments:
|
29
|
-
-
|
30
|
-
-
|
31
|
-
version: "
|
29
|
+
- 2
|
30
|
+
- 5
|
31
|
+
version: "2.5"
|
32
32
|
requirement: *id001
|
33
|
-
name:
|
33
|
+
name: right_support
|
34
34
|
prerelease: false
|
35
35
|
type: :runtime
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 23
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 2
|
46
|
+
- 0
|
47
|
+
version: 0.2.0
|
48
|
+
requirement: *id002
|
49
|
+
name: simple_uuid
|
50
|
+
prerelease: false
|
51
|
+
type: :runtime
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
38
54
|
none: false
|
39
55
|
requirements:
|
40
56
|
- - ~>
|
@@ -44,12 +60,12 @@ dependencies:
|
|
44
60
|
- 1
|
45
61
|
- 4
|
46
62
|
version: "1.4"
|
47
|
-
requirement: *
|
63
|
+
requirement: *id003
|
48
64
|
name: json
|
49
65
|
prerelease: false
|
50
66
|
type: :runtime
|
51
67
|
- !ruby/object:Gem::Dependency
|
52
|
-
version_requirements: &
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
53
69
|
none: false
|
54
70
|
requirements:
|
55
71
|
- - ~>
|
@@ -59,7 +75,7 @@ dependencies:
|
|
59
75
|
- 1
|
60
76
|
- 0
|
61
77
|
version: "1.0"
|
62
|
-
requirement: *
|
78
|
+
requirement: *id004
|
63
79
|
name: rack-contrib
|
64
80
|
prerelease: false
|
65
81
|
type: :runtime
|