stormpath-sdk 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2840d5f55013463cc18377b9909e1f68840999b
4
- data.tar.gz: fda3ed5eac3265a739fbdce2f05c3968e5527a84
3
+ metadata.gz: 46abd12e70ce4548e31d07ce66c71ba8dab69f2f
4
+ data.tar.gz: 78fad31579495fabac7d82f64116ea20bd2bd6dc
5
5
  SHA512:
6
- metadata.gz: 16c24a217cf341d9b23f38d8c27e68d944e6fb65659d350297f4d6d511dfe8a0ba59ea7b53fb60cd58e5edaf04cae75c38f0df5f9eed9c97742803671ea14f46
7
- data.tar.gz: 842510b773d64d28890ba9f028555e4190592eb860b1f15d513fb6e8d19e2e303a7ed6a22043290e8c02bfd310caaa9a2f620c3c9c6bc186d42cfa6c8ac207f6
6
+ metadata.gz: 9b73fa8bebef8366861da8e42a728d3a08bb505454d54240656cea0e013d5800e414c585ced352ea9bcb77b8f145277d95ac1fba737b11040c5616224afcd33b
7
+ data.tar.gz: ba78d09dfed54133aa832f5853e79258f48216f726d25d4aa3942b7fba1654e4bf7a425f87f3947ca51dc99742061da79fba996970cf44f233a9b51b9e2394b7
data/CHANGES.md CHANGED
@@ -1,6 +1,13 @@
1
1
  stormpath-sdk-ruby Changelog
2
2
  ============================
3
3
 
4
+ Version 1.1.5
5
+ -------------
6
+
7
+ Released on July 13, 2016
8
+
9
+ - Associate resources in VerifyToken class
10
+
4
11
  Version 1.1.4
5
12
  -------------
6
13
 
@@ -1,7 +1,11 @@
1
1
  module Stormpath
2
- module Oauth
2
+ module Oauth
3
3
  class VerifyToken < Stormpath::Resource::Base
4
- prop_reader :href, :account, :application, :jwt, :tenant, :expanded_jwt
4
+ prop_reader :href, :jwt, :expanded_jwt
5
+
6
+ belongs_to :account
7
+ belongs_to :application
8
+ belongs_to :tenant
5
9
  end
6
10
  end
7
11
  end
@@ -14,6 +14,6 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  module Stormpath
17
- VERSION = '1.1.4'
17
+ VERSION = '1.1.5'
18
18
  VERSION_DATE = '2016-05-24'
19
19
  end
@@ -1157,7 +1157,7 @@ describe Stormpath::Resource::Application, :vcr do
1157
1157
  expect(authenticate_oauth.access_token).not_to be_equal(aquire_token.access_token)
1158
1158
  end
1159
1159
 
1160
- it 'returens success with data' do
1160
+ it 'returns success with data' do
1161
1161
  expect(authenticate_oauth.access_token).not_to be_empty
1162
1162
  expect(authenticate_oauth.refresh_token).not_to be_empty
1163
1163
  expect(authenticate_oauth.token_type).not_to be_empty
@@ -1174,12 +1174,15 @@ describe Stormpath::Resource::Application, :vcr do
1174
1174
  expect(authenticate_oauth).to be_kind_of(Stormpath::Oauth::VerifyToken)
1175
1175
  end
1176
1176
 
1177
- it 'returens success on valid token' do
1177
+ it 'returns success on valid token' do
1178
1178
  expect(authenticate_oauth.href).not_to be_empty
1179
- expect(authenticate_oauth.account).not_to be_empty
1180
- expect(authenticate_oauth.application).not_to be_empty
1179
+ expect(authenticate_oauth.account).to be_a(Stormpath::Resource::Account)
1180
+ expect(authenticate_oauth.account).to eq(account)
1181
+ expect(authenticate_oauth.application).to be_a(Stormpath::Resource::Application)
1182
+ expect(authenticate_oauth.application).to eq(application)
1181
1183
  expect(authenticate_oauth.jwt).not_to be_empty
1182
- expect(authenticate_oauth.tenant).not_to be_empty
1184
+ expect(authenticate_oauth.tenant).to be_a(Stormpath::Resource::Tenant)
1185
+ expect(authenticate_oauth.tenant).to eq(test_api_client.tenant)
1183
1186
  expect(authenticate_oauth.expanded_jwt).not_to be_empty
1184
1187
  end
1185
1188
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stormpath, Inc