devise_openid_authenticatable 1.0.0.alpha4 → 1.0.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,21 @@
1
+ == 1.0.0.alpha5
2
+
3
+ * GH-5: Don't try to convert returned values to strings from AX providers
4
+ * This requires application developers to check whether the value is an array in openid_fields= method; see updated README for details.
5
+
6
+ == 1.0.0.alpha4
7
+
8
+ * GH-4: Support for SReg and AX extensions
9
+
10
+ == 1.0.0.alpha3
11
+
12
+ * Compatibility with Devise 1.1 and 1.1.1
13
+
14
+ == 1.0.0.alpha2
15
+
16
+ * Compatibility with pre-release versions of Devise 1.1
17
+ * Design fix: find_by_identity_url needs to be a class method
18
+
19
+ == 1.0.0.alpha1
20
+
21
+ * Initial version, basically just a packaged-up version of my OpenID strategy for Devise
data/README.md CHANGED
@@ -64,7 +64,7 @@ aren't using database_authenticatable:
64
64
 
65
65
  Finally, you'll need to add the following in your Rails configuration:
66
66
 
67
- config.middleware.use Rack::OpenID
67
+ config.middleware.insert_before(Warden::Manager, Rack::OpenID)
68
68
 
69
69
  which is the Rack middleware that actually does most of the heavy lifting here.
70
70
 
@@ -121,6 +121,11 @@ maps each returned field to a string value. For example:
121
121
 
122
122
  def openid_fields=(fields)
123
123
  fields.each do |key, value|
124
+ # Some AX providers can return multiple values per key
125
+ if value.is_a? Array
126
+ value = value.first
127
+ end
128
+
124
129
  case key.to_s
125
130
  when "fullname", "http://axschema.org/namePerson"
126
131
  self.name = value
data/Rakefile CHANGED
@@ -30,7 +30,7 @@ begin
30
30
  gemspec.summary = "OpenID authentication module for Devise"
31
31
  gemspec.description = "OpenID authentication module for Devise using Rack::OpenID"
32
32
  gemspec.email = "natbudin@gmail.com"
33
- gemspec.homepage = "http://github.com/nbudin/devise_cas_authenticatable"
33
+ gemspec.homepage = "http://github.com/nbudin/devise_openid_authenticatable"
34
34
  gemspec.authors = ["Nat Budin"]
35
35
  gemspec.add_runtime_dependency "devise", ">= 1.0.6"
36
36
  gemspec.add_runtime_dependency "rack-openid", ">= 1.0.3"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha4
1
+ 1.0.0.alpha5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{devise_openid_authenticatable}
8
- s.version = "1.0.0.alpha4"
8
+ s.version = "1.0.0.alpha5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nat Budin"]
12
- s.date = %q{2010-07-29}
12
+ s.date = %q{2010-08-09}
13
13
  s.description = %q{OpenID authentication module for Devise using Rack::OpenID}
14
14
  s.email = %q{natbudin@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  ]
18
18
  s.files = [
19
19
  ".gitignore",
20
+ "CHANGELOG.rdoc",
20
21
  "README.md",
21
22
  "Rakefile",
22
23
  "VERSION",
@@ -28,7 +29,7 @@ Gem::Specification.new do |s|
28
29
  "lib/devise_openid_authenticatable/strategy.rb",
29
30
  "rails/init.rb"
30
31
  ]
31
- s.homepage = %q{http://github.com/nbudin/devise_cas_authenticatable}
32
+ s.homepage = %q{http://github.com/nbudin/devise_openid_authenticatable}
32
33
  s.rdoc_options = ["--charset=UTF-8"]
33
34
  s.require_paths = ["lib"]
34
35
  s.rubygems_version = %q{1.3.7}
@@ -66,11 +66,6 @@ module Devise
66
66
  end
67
67
  end
68
68
 
69
- # Make sure everything is a string
70
- openid_fields.each do |k, v|
71
- openid_fields[k] = v.to_s
72
- end
73
-
74
69
  return openid_fields
75
70
  end
76
71
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_openid_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1710980386
5
4
  prerelease: true
6
5
  segments:
7
6
  - 1
8
7
  - 0
9
8
  - 0
10
- - alpha4
11
- version: 1.0.0.alpha4
9
+ - alpha5
10
+ version: 1.0.0.alpha5
12
11
  platform: ruby
13
12
  authors:
14
13
  - Nat Budin
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-07-29 00:00:00 -04:00
18
+ date: 2010-08-09 00:00:00 -04:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,7 +26,6 @@ dependencies:
27
26
  requirements:
28
27
  - - ">="
29
28
  - !ruby/object:Gem::Version
30
- hash: 27
31
29
  segments:
32
30
  - 1
33
31
  - 0
@@ -43,7 +41,6 @@ dependencies:
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
46
- hash: 17
47
44
  segments:
48
45
  - 1
49
46
  - 0
@@ -61,6 +58,7 @@ extra_rdoc_files:
61
58
  - README.md
62
59
  files:
63
60
  - .gitignore
61
+ - CHANGELOG.rdoc
64
62
  - README.md
65
63
  - Rakefile
66
64
  - VERSION
@@ -72,7 +70,7 @@ files:
72
70
  - lib/devise_openid_authenticatable/strategy.rb
73
71
  - rails/init.rb
74
72
  has_rdoc: true
75
- homepage: http://github.com/nbudin/devise_cas_authenticatable
73
+ homepage: http://github.com/nbudin/devise_openid_authenticatable
76
74
  licenses: []
77
75
 
78
76
  post_install_message:
@@ -85,7 +83,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
83
  requirements:
86
84
  - - ">="
87
85
  - !ruby/object:Gem::Version
88
- hash: 3
89
86
  segments:
90
87
  - 0
91
88
  version: "0"
@@ -94,7 +91,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
91
  requirements:
95
92
  - - ">"
96
93
  - !ruby/object:Gem::Version
97
- hash: 25
98
94
  segments:
99
95
  - 1
100
96
  - 3