has_global_session 0.9.2 → 0.9.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.
- data/has_global_session.gemspec +2 -2
- data/lib/has_global_session/configuration.rb +1 -1
- data/lib/has_global_session/rails/action_controller_instance_methods.rb +1 -1
- data/rails_generators/global_session_authority/USAGE +1 -0
- data/rails_generators/global_session_config/USAGE +1 -2
- data/rails_generators/global_session_config/templates/global_session.yml.erb +0 -2
- metadata +5 -4
data/has_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 = 'has_global_session'
|
|
10
|
-
s.version = '0.9.
|
|
11
|
-
s.date = '2010-07-
|
|
10
|
+
s.version = '0.9.3'
|
|
11
|
+
s.date = '2010-07-19'
|
|
12
12
|
|
|
13
13
|
s.authors = ['Tony Spataro']
|
|
14
14
|
s.email = 'code@tracker.xeger.net'
|
|
@@ -11,7 +11,7 @@ module HasGlobalSession
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def self.validate
|
|
14
|
-
['attributes/signed', 'integrated', 'cookie/name', '
|
|
14
|
+
['attributes/signed', 'integrated', 'cookie/name', 'timeout'].each do |path|
|
|
15
15
|
elements = path.split '/'
|
|
16
16
|
object = get(elements.shift, false)
|
|
17
17
|
elements.each do |element|
|
|
@@ -62,7 +62,7 @@ module HasGlobalSession
|
|
|
62
62
|
|
|
63
63
|
def global_session_update_cookie
|
|
64
64
|
name = Configuration['cookie']['name']
|
|
65
|
-
domain = Configuration['cookie']['domain']
|
|
65
|
+
domain = Configuration['cookie']['domain'] || request.env['SERVER_NAME']
|
|
66
66
|
|
|
67
67
|
begin
|
|
68
68
|
if @global_session && @global_session.valid?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
./script/generate global_session authority <name of authority>
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
./script/generate global_session config <DNS domain for cookie>
|
|
2
|
-
./script/generate global_session authority <name of authority>
|
|
1
|
+
./script/generate global_session config <DNS domain for production cookie>
|
|
@@ -20,7 +20,6 @@ test:
|
|
|
20
20
|
renew: 5 #minutes before expiration
|
|
21
21
|
cookie:
|
|
22
22
|
name: _session_gbl
|
|
23
|
-
domain: localhost
|
|
24
23
|
#the name of the local authority (optional)
|
|
25
24
|
authority: test
|
|
26
25
|
#which authorities this app will trust
|
|
@@ -33,7 +32,6 @@ development:
|
|
|
33
32
|
renew: 15
|
|
34
33
|
cookie:
|
|
35
34
|
name: _session_gbl
|
|
36
|
-
domain: localhost
|
|
37
35
|
authority: development
|
|
38
36
|
trust:
|
|
39
37
|
- development
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_global_session
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 61
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.9.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tony Spataro
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-07-
|
|
18
|
+
date: 2010-07-19 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -120,6 +120,7 @@ files:
|
|
|
120
120
|
- lib/has_global_session/rails.rb
|
|
121
121
|
- lib/has_global_session/rails/action_controller_instance_methods.rb
|
|
122
122
|
- rails/init.rb
|
|
123
|
+
- rails_generators/global_session_authority/USAGE
|
|
123
124
|
- rails_generators/global_session_authority/global_session_authority_generator.rb
|
|
124
125
|
- rails_generators/global_session_config/USAGE
|
|
125
126
|
- rails_generators/global_session_config/global_session_config_generator.rb
|