easy-rack-open-id 0.2.1 → 0.2.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{easy-rack-open-id}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sam Schenkman-Moore"]
12
- s.date = %q{2009-12-30}
12
+ s.date = %q{2010-01-17}
13
13
  s.description = %q{You supply OpenIDs, this keeps anyone but people with access to those ids from getting through. You don't even have to make a form. :)}
14
14
  s.email = %q{samsm@samsm.com}
15
15
  s.extra_rdoc_files = [
@@ -41,7 +41,6 @@ class EasyRackOpenIDProcessing
41
41
  if resp = env["rack.openid.response"]
42
42
  case resp.status
43
43
  when :success
44
-
45
44
  # Load in any registration data gathered
46
45
  profile_data = {}
47
46
  # merge the SReg data and the AX data into a single hash of profile data
@@ -94,7 +93,7 @@ class EasyRackOpenIDProcessing
94
93
  end
95
94
 
96
95
  def forward_to(url)
97
- [302, {'Location' => url}, ["Forwarding to #{url}"]]
96
+ [302, {'Location' => url,'Content-Type' => 'text/html'}, ["Forwarding to #{url}"]]
98
97
  end
99
98
 
100
99
  def allowed?
@@ -156,7 +155,7 @@ class EasyRackOpenIDProcessing
156
155
  uri.normalize.to_s
157
156
  rescue URI::InvalidURIError
158
157
  # raise InvalidOpenId.new("#{url} is not an OpenID URL")
159
- false
158
+ false # Quietly fail for now.
160
159
  end
161
160
 
162
161
  def verified_identity=(hash)
@@ -188,7 +187,7 @@ class EasyRackOpenIDProcessing
188
187
  end
189
188
 
190
189
  def ok(text, content_type = 'text/html')
191
- [200,{"Content-Type" => content_type, 'Content-Length'=> text.length},[text]]
190
+ [200,{"Content-Type" => content_type, 'Content-Length'=> text.length.to_s},[text]]
192
191
  end
193
192
 
194
193
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-rack-open-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Schenkman-Moore
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-30 00:00:00 -05:00
12
+ date: 2010-01-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency