global_session 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.3'
11
- s.date = '2011-01-15'
10
+ s.version = '1.0.4'
11
+ s.date = '2011-06-20'
12
12
 
13
13
  s.authors = ['Tony Spataro']
14
14
  s.email = 'code@tracker.xeger.net'
@@ -21,12 +21,6 @@ spec = Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency('json', [">= 1.1.7"])
22
22
  s.add_runtime_dependency('rack-contrib', [">= 1.0"])
23
23
 
24
- s.add_development_dependency('rake', [">= 0.8.7"])
25
- s.add_development_dependency('ruby-debug', [">= 0.10.3"])
26
- s.add_development_dependency('rspec', ["~> 1.3"])
27
- s.add_development_dependency('flexmock', ["~> 0.8"])
28
- s.add_development_dependency('actionpack', ["~> 2.3"])
29
-
30
24
  basedir = File.dirname(__FILE__)
31
25
  candidates = ['global_session.gemspec', 'init.rb', 'MIT-LICENSE', 'README.rdoc'] +
32
26
  Dir['lib/**/*'] +
@@ -131,9 +131,9 @@ module GlobalSession
131
131
  if env['global_session'] && env['global_session'].valid?
132
132
  value = env['global_session'].to_s
133
133
  expires = @configuration['ephemeral'] ? nil : env['global_session'].expired_at
134
- unless env['rack.cookies'].has_key?(@cookie_name) &&
135
- env['rack.cookies'][@cookie_name] == value
136
- env['rack.cookies'][@cookie_name] = {:value => value, :domain => domain, :expires => expires}
134
+ unless env['rack.cookies'].has_key?(@cookie_name) && env['rack.cookies'][@cookie_name] == value
135
+ env['rack.cookies'][@cookie_name] =
136
+ {:value => value, :domain => domain, :expires => expires, :httponly=>true}
137
137
  end
138
138
  else
139
139
  # write an empty cookie
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: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
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: 2011-01-15 00:00:00 -08:00
18
+ date: 2011-06-20 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -65,83 +65,6 @@ dependencies:
65
65
  version: "1.0"
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rake
70
- prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 49
77
- segments:
78
- - 0
79
- - 8
80
- - 7
81
- version: 0.8.7
82
- type: :development
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: ruby-debug
86
- prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
88
- none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 49
93
- segments:
94
- - 0
95
- - 10
96
- - 3
97
- version: 0.10.3
98
- type: :development
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: rspec
102
- prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
104
- none: false
105
- requirements:
106
- - - ~>
107
- - !ruby/object:Gem::Version
108
- hash: 9
109
- segments:
110
- - 1
111
- - 3
112
- version: "1.3"
113
- type: :development
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- name: flexmock
117
- prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ~>
122
- - !ruby/object:Gem::Version
123
- hash: 27
124
- segments:
125
- - 0
126
- - 8
127
- version: "0.8"
128
- type: :development
129
- version_requirements: *id007
130
- - !ruby/object:Gem::Dependency
131
- name: actionpack
132
- prerelease: false
133
- requirement: &id008 !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - ~>
137
- - !ruby/object:Gem::Version
138
- hash: 5
139
- segments:
140
- - 2
141
- - 3
142
- version: "2.3"
143
- type: :development
144
- version_requirements: *id008
145
68
  description: 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.
146
69
  email: code@tracker.xeger.net
147
70
  executables: []