openid_connect 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.25
|
@@ -2,7 +2,7 @@ module OpenIDConnect
|
|
2
2
|
class ResponseObject
|
3
3
|
module UserInfo
|
4
4
|
class OpenID < ResponseObject
|
5
|
-
attr_optional :
|
5
|
+
attr_optional :user_id, :name, :given_name, :family_name, :middle_name, :nickname
|
6
6
|
|
7
7
|
attr_optional :phone_number
|
8
8
|
|
@@ -10,7 +10,7 @@ describe OpenIDConnect::ResponseObject::UserInfo::OpenID do
|
|
10
10
|
its(:required_attributes) { should == [] }
|
11
11
|
its(:optional_attributes) do
|
12
12
|
should == [
|
13
|
-
:
|
13
|
+
:user_id, :name, :given_name, :family_name, :middle_name, :nickname,
|
14
14
|
:phone_number,
|
15
15
|
:verified, :gender, :zoneinfo, :locale,
|
16
16
|
:birthday, :updated_time,
|
@@ -88,13 +88,13 @@ describe OpenIDConnect::ResponseObject::UserInfo::OpenID do
|
|
88
88
|
describe '#to_json' do
|
89
89
|
let :attributes do
|
90
90
|
{
|
91
|
-
:
|
91
|
+
:user_id => 'nov.matake#12345',
|
92
92
|
:address => {
|
93
93
|
:formatted => 'Tokyo, Japan'
|
94
94
|
}
|
95
95
|
}
|
96
96
|
end
|
97
|
-
its(:to_json) { should include '"
|
97
|
+
its(:to_json) { should include '"user_id":"nov.matake#12345"'}
|
98
98
|
its(:to_json) { should include '"address":{"formatted":"Tokyo, Japan"}'}
|
99
99
|
end
|
100
100
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: openid_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.25
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- nov matake
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-12 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|