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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openid_connect (0.0.23)
4
+ openid_connect (0.0.24)
5
5
  activemodel (>= 3)
6
6
  attr_required (>= 0.0.3)
7
7
  json (>= 1.4.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.24
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 :id, :name, :given_name, :family_name, :middle_name, :nickname
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
- :id, :name, :given_name, :family_name, :middle_name, :nickname,
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
- :id => 'http://example.com/nov.matake#12345',
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 '"id":"http://example.com/nov.matake#12345"'}
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.24
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-11 00:00:00 Z
13
+ date: 2011-09-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json