stormpath-sdk 1.0.0.beta.3.1 → 1.0.0.beta.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +3 -0
- data/CHANGES.md +8 -0
- data/lib/stormpath-sdk/client.rb +2 -0
- data/lib/stormpath-sdk/resource/account.rb +3 -2
- data/lib/stormpath-sdk/resource/account_store.rb +30 -0
- data/lib/stormpath-sdk/resource/account_store_mapping.rb +33 -0
- data/lib/stormpath-sdk/resource/application.rb +8 -3
- data/lib/stormpath-sdk/resource/associations.rb +8 -9
- data/lib/stormpath-sdk/version.rb +2 -2
- data/lib/stormpath-sdk.rb +2 -0
- data/spec/resource/account_spec.rb +22 -0
- data/spec/resource/account_store_mapping_spec.rb +100 -0
- data/spec/resource/account_store_spec.rb +49 -0
- metadata +51 -5
- checksums.yaml +0 -15
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-p429
|
1
|
+
1.9.3-p429
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
stormpath-sdk-ruby Changelog
|
2
2
|
============================
|
3
3
|
|
4
|
+
Version 1.0.0.beta.4
|
5
|
+
--------------------
|
6
|
+
|
7
|
+
Released on December 10, 2013
|
8
|
+
|
9
|
+
- Added the Account Store CRUD (AccountStore and AccountStoreMapping resources)
|
10
|
+
- Added the full_name prop_reader to the Account resource
|
11
|
+
|
4
12
|
Version 1.0.0.beta.3
|
5
13
|
--------------------
|
6
14
|
|
data/lib/stormpath-sdk/client.rb
CHANGED
@@ -75,7 +75,9 @@ module Stormpath
|
|
75
75
|
end
|
76
76
|
has_many :groups, href: '/groups', can: :get
|
77
77
|
has_many :group_memberships, href: '/groupMemberships', can: [:get, :create]
|
78
|
+
has_many :account_store_mappings, href: '/accountStoreMappings', can: [:get, :create]
|
78
79
|
|
80
|
+
|
79
81
|
private
|
80
82
|
|
81
83
|
def load_api_key_file(api_key_file_location, id_property_name, secret_property_name)
|
@@ -16,9 +16,9 @@
|
|
16
16
|
class Stormpath::Resource::Account < Stormpath::Resource::Instance
|
17
17
|
include Stormpath::Resource::Status
|
18
18
|
|
19
|
-
prop_accessor :username, :email, :given_name, :middle_name,
|
20
|
-
:surname
|
19
|
+
prop_accessor :username, :email, :given_name, :middle_name, :surname
|
21
20
|
prop_writer :password
|
21
|
+
prop_reader :full_name
|
22
22
|
prop_non_printable :password
|
23
23
|
|
24
24
|
belongs_to :directory
|
@@ -30,4 +30,5 @@ class Stormpath::Resource::Account < Stormpath::Resource::Instance
|
|
30
30
|
def add_group group
|
31
31
|
client.group_memberships.create group: group, account: self
|
32
32
|
end
|
33
|
+
|
33
34
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2013 Stormpath, Inc.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
class Stormpath::Resource::AccountStore < Stormpath::Resource::Instance
|
17
|
+
|
18
|
+
|
19
|
+
def self.new(*args)
|
20
|
+
href = args.first[HREF_PROP_NAME]
|
21
|
+
if /directories/.match href
|
22
|
+
Stormpath::Resource::Directory.new(*args)
|
23
|
+
elsif /group/.match href
|
24
|
+
Stormpath::Resource::Group.new(*args)
|
25
|
+
else
|
26
|
+
raise "inappropriate type of an account store"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2013 Stormpath, Inc.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
#
|
16
|
+
class Stormpath::Resource::AccountStoreMapping < Stormpath::Resource::Instance
|
17
|
+
include Stormpath::Resource::Status
|
18
|
+
|
19
|
+
prop_accessor :list_index, :is_default_account_store, :is_default_group_store
|
20
|
+
|
21
|
+
belongs_to :application
|
22
|
+
|
23
|
+
has_one :account_store
|
24
|
+
|
25
|
+
alias_method :default_account_store, :is_default_account_store
|
26
|
+
alias_method :default_account_store?, :is_default_account_store
|
27
|
+
alias_method :default_group_store, :is_default_group_store
|
28
|
+
alias_method :default_group_store?, :is_default_group_store
|
29
|
+
alias_method :default_account_store=, :is_default_account_store=
|
30
|
+
alias_method :default_group_store=, :is_default_group_store=
|
31
|
+
|
32
|
+
end
|
33
|
+
|
@@ -23,6 +23,10 @@ class Stormpath::Resource::Application < Stormpath::Resource::Instance
|
|
23
23
|
belongs_to :tenant
|
24
24
|
has_many :accounts, can: [:create]
|
25
25
|
has_many :password_reset_tokens, can: [:get, :create]
|
26
|
+
has_many :account_store_mappings, can: [:get, :create]
|
27
|
+
|
28
|
+
has_one :default_account_store_mapping, class_name: :accountStoreMapping
|
29
|
+
has_one :default_group_store_mapping, class_name: :accountStoreMapping
|
26
30
|
|
27
31
|
def self.load composite_url
|
28
32
|
begin
|
@@ -57,7 +61,8 @@ class Stormpath::Resource::Application < Stormpath::Resource::Instance
|
|
57
61
|
|
58
62
|
private
|
59
63
|
|
60
|
-
|
61
|
-
|
62
|
-
|
64
|
+
def create_password_reset_token email
|
65
|
+
password_reset_tokens.create email: email
|
66
|
+
end
|
67
|
+
|
63
68
|
end
|
@@ -20,14 +20,13 @@ module Stormpath
|
|
20
20
|
|
21
21
|
module ClassMethods
|
22
22
|
|
23
|
-
def resource_prop_reader(
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
def resource_prop_reader(name, options={})
|
24
|
+
options[:class_name] ||= name
|
25
|
+
resource_class = "Stormpath::Resource::#{options[:class_name].to_s.camelize}".constantize
|
26
|
+
property_name = name.to_s.camelize :lower
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
end
|
28
|
+
define_method(name) do
|
29
|
+
get_resource_property property_name, resource_class
|
31
30
|
end
|
32
31
|
end
|
33
32
|
|
@@ -90,8 +89,8 @@ module Stormpath
|
|
90
89
|
if value.is_a? Hash
|
91
90
|
href = get_href_from_hash value
|
92
91
|
end
|
93
|
-
|
94
|
-
|
92
|
+
|
93
|
+
if href
|
95
94
|
data_store.instantiate clazz, value
|
96
95
|
end
|
97
96
|
end
|
data/lib/stormpath-sdk.rb
CHANGED
@@ -38,6 +38,8 @@ module Stormpath
|
|
38
38
|
autoload :Directories, 'stormpath-sdk/resource/directories'
|
39
39
|
autoload :Account, 'stormpath-sdk/resource/account'
|
40
40
|
autoload :Accounts, 'stormpath-sdk/resource/accounts'
|
41
|
+
autoload :AccountStore, 'stormpath-sdk/resource/account_store'
|
42
|
+
autoload :AccountStoreMapping, 'stormpath-sdk/resource/account_store_mapping'
|
41
43
|
autoload :Group, 'stormpath-sdk/resource/group'
|
42
44
|
autoload :Groups, 'stormpath-sdk/resource/groups'
|
43
45
|
autoload :EmailVerificationToken, 'stormpath-sdk/resource/email_verification_token'
|
@@ -1,6 +1,28 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Stormpath::Resource::Account, :vcr do
|
4
|
+
describe "instances" do
|
5
|
+
let(:directory) { test_api_client.directories.create name: 'testDirectory' }
|
6
|
+
subject(:account) do
|
7
|
+
directory.accounts.create email: 'test@example.com',
|
8
|
+
givenName: 'Ruby SDK',
|
9
|
+
password: 'P@$$w0rd',
|
10
|
+
surname: 'SDK',
|
11
|
+
username: 'rubysdk'
|
12
|
+
end
|
13
|
+
|
14
|
+
it { should respond_to :given_name }
|
15
|
+
it { should respond_to :username }
|
16
|
+
it { should respond_to :surname }
|
17
|
+
it { should respond_to :full_name }
|
18
|
+
|
19
|
+
after do
|
20
|
+
account.delete if account
|
21
|
+
directory.delete if directory
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
4
26
|
describe "#add_group" do
|
5
27
|
context "given a group" do
|
6
28
|
let(:directory) do
|
@@ -0,0 +1,100 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stormpath::Resource::AccountStoreMapping, :vcr do
|
4
|
+
|
5
|
+
def create_account_store_mapping(application, account_store, is_default_group_store=false)
|
6
|
+
test_api_client.account_store_mappings.create({
|
7
|
+
application: application,
|
8
|
+
account_store: account_store,
|
9
|
+
list_index: 0,
|
10
|
+
is_default_account_store: true,
|
11
|
+
is_default_group_store: is_default_group_store
|
12
|
+
})
|
13
|
+
end
|
14
|
+
|
15
|
+
let(:directory) { test_api_client.directories.create name: 'testDirectory', description: 'testDirectory for AccountStoreMappings' }
|
16
|
+
|
17
|
+
let(:application) { test_api_client.applications.create name: 'testApplication', description: 'testApplication for AccountStoreMappings' }
|
18
|
+
|
19
|
+
after do
|
20
|
+
application.delete if application
|
21
|
+
directory.delete if directory
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "instances" do
|
25
|
+
subject(:account_store_mapping) {create_account_store_mapping(application,directory)}
|
26
|
+
|
27
|
+
it { should respond_to(:account_store) }
|
28
|
+
it { should respond_to(:list_index) }
|
29
|
+
it { should respond_to(:is_default_group_store) }
|
30
|
+
it { should respond_to(:is_default_account_store) }
|
31
|
+
it { should respond_to(:application) }
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
describe 'given an application' do
|
36
|
+
let!(:account_store_mapping) {create_account_store_mapping(application,directory,true)}
|
37
|
+
let(:reloaded_application) { test_api_client.applications.get application.href}
|
38
|
+
it 'should retrive a default account store mapping' do
|
39
|
+
expect(reloaded_application.default_account_store_mapping).to eq(account_store_mapping)
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'should retrive a default group store mapping' do
|
43
|
+
expect(reloaded_application.default_group_store_mapping).to eq(account_store_mapping)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "given a directory" do
|
48
|
+
before { create_account_store_mapping(application, directory) }
|
49
|
+
|
50
|
+
it 'add an account store mapping' do
|
51
|
+
expect(application.account_store_mappings.count).to eq(1)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe "given a group" do
|
56
|
+
let(:group) { directory.groups.create name: 'testGroup', description: 'testGroup for AccountStoreMappings' }
|
57
|
+
|
58
|
+
before { create_account_store_mapping(application, group) }
|
59
|
+
after { group.delete if group }
|
60
|
+
|
61
|
+
it 'add an account store mapping' do
|
62
|
+
expect(application.account_store_mappings.count).to eq(1)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe "update attribute default_group_store" do
|
67
|
+
let(:account_store_mapping) { create_account_store_mapping(application, directory) }
|
68
|
+
let(:reloaded_mapping){ application.account_store_mappings.get account_store_mapping.href }
|
69
|
+
|
70
|
+
it 'should go from true to false' do
|
71
|
+
expect(account_store_mapping.is_default_account_store).to eq(true)
|
72
|
+
account_store_mapping.default_account_store= false
|
73
|
+
account_store_mapping.save
|
74
|
+
expect(reloaded_mapping.is_default_account_store).to eq(false)
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
describe "given a mapping" do
|
80
|
+
let!(:account_store_mapping) { create_account_store_mapping(application, directory) }
|
81
|
+
let(:reloaded_application) { test_api_client.applications.get application.href}
|
82
|
+
|
83
|
+
it 'function delete should destroy it' do
|
84
|
+
expect(application.account_store_mappings.count).to eq(1)
|
85
|
+
account_store_mapping.delete
|
86
|
+
expect(reloaded_application.account_store_mappings.count).to eq(0)
|
87
|
+
end
|
88
|
+
|
89
|
+
it 'should be able to list its attributes' do
|
90
|
+
reloaded_application.account_store_mappings.each do |account_store_mapping|
|
91
|
+
expect(account_store_mapping.account_store.name).to eq("testDirectory")
|
92
|
+
expect(account_store_mapping.list_index).to eq(0)
|
93
|
+
expect(account_store_mapping.default_account_store?).to eq(true)
|
94
|
+
expect(account_store_mapping.default_group_store?).to eq(false)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Stormpath::Resource::AccountStore, :vcr do
|
4
|
+
|
5
|
+
def create_account_store_mapping(application, account_store, is_default_group_store=false)
|
6
|
+
test_api_client.account_store_mappings.create({
|
7
|
+
application: application,
|
8
|
+
account_store: account_store,
|
9
|
+
list_index: 0,
|
10
|
+
is_default_account_store: true,
|
11
|
+
is_default_group_store: is_default_group_store
|
12
|
+
})
|
13
|
+
end
|
14
|
+
|
15
|
+
let(:application) { test_api_client.applications.create name: 'testApplication', description: 'testApplication for AccountStoreMappings' }
|
16
|
+
|
17
|
+
let(:directory) { test_api_client.directories.create name: 'testDirectory', description: 'testDirectory for AccountStoreMappings' }
|
18
|
+
|
19
|
+
let(:group) { directory.groups.create name: 'testGroup', description: 'testGroup for AccountStoreMappings' }
|
20
|
+
|
21
|
+
after do
|
22
|
+
application.delete if application
|
23
|
+
group.delete if group
|
24
|
+
directory.delete if directory
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'given an account_store_mapping and a directory' do
|
28
|
+
let!(:account_store_mapping) {create_account_store_mapping(application,directory,true)}
|
29
|
+
let(:reloaded_mapping){ application.account_store_mappings.get account_store_mapping.href }
|
30
|
+
|
31
|
+
it 'should return a directory' do
|
32
|
+
expect(reloaded_mapping.account_store.class).to eq(Stormpath::Resource::Directory)
|
33
|
+
expect(reloaded_mapping.account_store).to eq(directory)
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'given an account_store_mapping and a group' do
|
39
|
+
let!(:account_store_mapping) {create_account_store_mapping(application,group)}
|
40
|
+
let(:reloaded_mapping){ application.account_store_mappings.get account_store_mapping.href }
|
41
|
+
|
42
|
+
it 'should return a group' do
|
43
|
+
expect(reloaded_mapping.account_store.class).to eq(Stormpath::Resource::Group)
|
44
|
+
expect(reloaded_mapping.account_store).to eq(group)
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stormpath-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.4
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Elder Crisostomo
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: multi_json
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: httpclient
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: uuidtools
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: activesupport
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: properties-ruby
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ~>
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ~>
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,6 +94,7 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: java_properties
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
99
|
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
@@ -90,6 +102,7 @@ dependencies:
|
|
90
102
|
type: :runtime
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
107
|
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
@@ -97,6 +110,7 @@ dependencies:
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: rake
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
115
|
- - ~>
|
102
116
|
- !ruby/object:Gem::Version
|
@@ -104,6 +118,7 @@ dependencies:
|
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
123
|
- - ~>
|
109
124
|
- !ruby/object:Gem::Version
|
@@ -111,6 +126,7 @@ dependencies:
|
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: rspec-core
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
131
|
- - ~>
|
116
132
|
- !ruby/object:Gem::Version
|
@@ -118,6 +134,7 @@ dependencies:
|
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
139
|
- - ~>
|
123
140
|
- !ruby/object:Gem::Version
|
@@ -125,6 +142,7 @@ dependencies:
|
|
125
142
|
- !ruby/object:Gem::Dependency
|
126
143
|
name: rspec-expectations
|
127
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
128
146
|
requirements:
|
129
147
|
- - ~>
|
130
148
|
- !ruby/object:Gem::Version
|
@@ -132,6 +150,7 @@ dependencies:
|
|
132
150
|
type: :development
|
133
151
|
prerelease: false
|
134
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
135
154
|
requirements:
|
136
155
|
- - ~>
|
137
156
|
- !ruby/object:Gem::Version
|
@@ -139,6 +158,7 @@ dependencies:
|
|
139
158
|
- !ruby/object:Gem::Dependency
|
140
159
|
name: rspec-mocks
|
141
160
|
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
142
162
|
requirements:
|
143
163
|
- - ~>
|
144
164
|
- !ruby/object:Gem::Version
|
@@ -146,6 +166,7 @@ dependencies:
|
|
146
166
|
type: :development
|
147
167
|
prerelease: false
|
148
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
149
170
|
requirements:
|
150
171
|
- - ~>
|
151
172
|
- !ruby/object:Gem::Version
|
@@ -153,6 +174,7 @@ dependencies:
|
|
153
174
|
- !ruby/object:Gem::Dependency
|
154
175
|
name: guard-rspec
|
155
176
|
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
156
178
|
requirements:
|
157
179
|
- - ~>
|
158
180
|
- !ruby/object:Gem::Version
|
@@ -160,6 +182,7 @@ dependencies:
|
|
160
182
|
type: :development
|
161
183
|
prerelease: false
|
162
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
163
186
|
requirements:
|
164
187
|
- - ~>
|
165
188
|
- !ruby/object:Gem::Version
|
@@ -167,6 +190,7 @@ dependencies:
|
|
167
190
|
- !ruby/object:Gem::Dependency
|
168
191
|
name: rack
|
169
192
|
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
170
194
|
requirements:
|
171
195
|
- - ~>
|
172
196
|
- !ruby/object:Gem::Version
|
@@ -174,6 +198,7 @@ dependencies:
|
|
174
198
|
type: :development
|
175
199
|
prerelease: false
|
176
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
177
202
|
requirements:
|
178
203
|
- - ~>
|
179
204
|
- !ruby/object:Gem::Version
|
@@ -181,6 +206,7 @@ dependencies:
|
|
181
206
|
- !ruby/object:Gem::Dependency
|
182
207
|
name: webmock
|
183
208
|
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
184
210
|
requirements:
|
185
211
|
- - ~>
|
186
212
|
- !ruby/object:Gem::Version
|
@@ -188,6 +214,7 @@ dependencies:
|
|
188
214
|
type: :development
|
189
215
|
prerelease: false
|
190
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
191
218
|
requirements:
|
192
219
|
- - ~>
|
193
220
|
- !ruby/object:Gem::Version
|
@@ -195,6 +222,7 @@ dependencies:
|
|
195
222
|
- !ruby/object:Gem::Dependency
|
196
223
|
name: simplecov
|
197
224
|
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
198
226
|
requirements:
|
199
227
|
- - ~>
|
200
228
|
- !ruby/object:Gem::Version
|
@@ -202,6 +230,7 @@ dependencies:
|
|
202
230
|
type: :development
|
203
231
|
prerelease: false
|
204
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
205
234
|
requirements:
|
206
235
|
- - ~>
|
207
236
|
- !ruby/object:Gem::Version
|
@@ -209,6 +238,7 @@ dependencies:
|
|
209
238
|
- !ruby/object:Gem::Dependency
|
210
239
|
name: pry
|
211
240
|
requirement: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
212
242
|
requirements:
|
213
243
|
- - ~>
|
214
244
|
- !ruby/object:Gem::Version
|
@@ -216,6 +246,7 @@ dependencies:
|
|
216
246
|
type: :development
|
217
247
|
prerelease: false
|
218
248
|
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
219
250
|
requirements:
|
220
251
|
- - ~>
|
221
252
|
- !ruby/object:Gem::Version
|
@@ -223,6 +254,7 @@ dependencies:
|
|
223
254
|
- !ruby/object:Gem::Dependency
|
224
255
|
name: pry-debugger
|
225
256
|
requirement: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
226
258
|
requirements:
|
227
259
|
- - ~>
|
228
260
|
- !ruby/object:Gem::Version
|
@@ -230,6 +262,7 @@ dependencies:
|
|
230
262
|
type: :development
|
231
263
|
prerelease: false
|
232
264
|
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
233
266
|
requirements:
|
234
267
|
- - ~>
|
235
268
|
- !ruby/object:Gem::Version
|
@@ -237,6 +270,7 @@ dependencies:
|
|
237
270
|
- !ruby/object:Gem::Dependency
|
238
271
|
name: pry-stack_explorer
|
239
272
|
requirement: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
240
274
|
requirements:
|
241
275
|
- - ~>
|
242
276
|
- !ruby/object:Gem::Version
|
@@ -244,6 +278,7 @@ dependencies:
|
|
244
278
|
type: :development
|
245
279
|
prerelease: false
|
246
280
|
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
247
282
|
requirements:
|
248
283
|
- - ~>
|
249
284
|
- !ruby/object:Gem::Version
|
@@ -251,6 +286,7 @@ dependencies:
|
|
251
286
|
- !ruby/object:Gem::Dependency
|
252
287
|
name: vcr
|
253
288
|
requirement: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
254
290
|
requirements:
|
255
291
|
- - ~>
|
256
292
|
- !ruby/object:Gem::Version
|
@@ -258,6 +294,7 @@ dependencies:
|
|
258
294
|
type: :development
|
259
295
|
prerelease: false
|
260
296
|
version_requirements: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
261
298
|
requirements:
|
262
299
|
- - ~>
|
263
300
|
- !ruby/object:Gem::Version
|
@@ -265,6 +302,7 @@ dependencies:
|
|
265
302
|
- !ruby/object:Gem::Dependency
|
266
303
|
name: timecop
|
267
304
|
requirement: !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
268
306
|
requirements:
|
269
307
|
- - ~>
|
270
308
|
- !ruby/object:Gem::Version
|
@@ -272,6 +310,7 @@ dependencies:
|
|
272
310
|
type: :development
|
273
311
|
prerelease: false
|
274
312
|
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
none: false
|
275
314
|
requirements:
|
276
315
|
- - ~>
|
277
316
|
- !ruby/object:Gem::Version
|
@@ -279,6 +318,7 @@ dependencies:
|
|
279
318
|
- !ruby/object:Gem::Dependency
|
280
319
|
name: redis
|
281
320
|
requirement: !ruby/object:Gem::Requirement
|
321
|
+
none: false
|
282
322
|
requirements:
|
283
323
|
- - ~>
|
284
324
|
- !ruby/object:Gem::Version
|
@@ -286,6 +326,7 @@ dependencies:
|
|
286
326
|
type: :development
|
287
327
|
prerelease: false
|
288
328
|
version_requirements: !ruby/object:Gem::Requirement
|
329
|
+
none: false
|
289
330
|
requirements:
|
290
331
|
- - ~>
|
291
332
|
- !ruby/object:Gem::Version
|
@@ -326,6 +367,8 @@ files:
|
|
326
367
|
- lib/stormpath-sdk/http/response.rb
|
327
368
|
- lib/stormpath-sdk/http/utils.rb
|
328
369
|
- lib/stormpath-sdk/resource/account.rb
|
370
|
+
- lib/stormpath-sdk/resource/account_store.rb
|
371
|
+
- lib/stormpath-sdk/resource/account_store_mapping.rb
|
329
372
|
- lib/stormpath-sdk/resource/application.rb
|
330
373
|
- lib/stormpath-sdk/resource/associations.rb
|
331
374
|
- lib/stormpath-sdk/resource/base.rb
|
@@ -352,6 +395,8 @@ files:
|
|
352
395
|
- spec/client_spec.rb
|
353
396
|
- spec/data_store_spec.rb
|
354
397
|
- spec/resource/account_spec.rb
|
398
|
+
- spec/resource/account_store_mapping_spec.rb
|
399
|
+
- spec/resource/account_store_spec.rb
|
355
400
|
- spec/resource/application_spec.rb
|
356
401
|
- spec/resource/base_spec.rb
|
357
402
|
- spec/resource/collection_spec.rb
|
@@ -367,7 +412,6 @@ files:
|
|
367
412
|
- support/api.rb
|
368
413
|
homepage: https://github.com/stormpath/stormpath-sdk-ruby
|
369
414
|
licenses: []
|
370
|
-
metadata: {}
|
371
415
|
post_install_message:
|
372
416
|
rdoc_options:
|
373
417
|
- --line-numbers
|
@@ -378,19 +422,21 @@ rdoc_options:
|
|
378
422
|
require_paths:
|
379
423
|
- lib
|
380
424
|
required_ruby_version: !ruby/object:Gem::Requirement
|
425
|
+
none: false
|
381
426
|
requirements:
|
382
427
|
- - ! '>='
|
383
428
|
- !ruby/object:Gem::Version
|
384
429
|
version: '0'
|
385
430
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
431
|
+
none: false
|
386
432
|
requirements:
|
387
433
|
- - ! '>'
|
388
434
|
- !ruby/object:Gem::Version
|
389
435
|
version: 1.3.1
|
390
436
|
requirements: []
|
391
437
|
rubyforge_project:
|
392
|
-
rubygems_version:
|
438
|
+
rubygems_version: 1.8.25
|
393
439
|
signing_key:
|
394
|
-
specification_version:
|
440
|
+
specification_version: 3
|
395
441
|
summary: Stormpath SDK
|
396
442
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YjI3MzYxY2JjNDRjN2NiOTUwMjEyNjI1MjBmZjJlYzQxZDFhNGVlNw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ODFkZWE1MTE3ZDAyMmI3ZWY0NTZjYThiNWJiOTNhODA5MzY5NzBjMw==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YjY1ZDMxYTcxMzBjZDNkZmU2NDczMmE5NDIzYWQxMjI0OGVkOGE4ZTFiZmZh
|
10
|
-
ODgxYzNhMDQ4MDE5Y2RmOWZlNGNkNTM5M2YxZTBiZmUwYWRhZjgwODVlZDBk
|
11
|
-
NTYxNTgwMTAyMTc3N2RmYmUyMzM5OWU3MjQ4OGZmOGRkOGUzMjI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OTdiZmE1NGU0MjIwNWZlNDhjZWViYzQ0NDk5NjQ0NTcwYjhlZTNmZGIzMThk
|
14
|
-
ZjBmMDlhODQ2ZDhlNzM3ZDdjNGY0MzdmMTdjNWNmMzA0OGJlMGFjYWUyMTdm
|
15
|
-
NTg3MmVjMjA5ODJlYTE0YWM1MjFlMmFhOTMxNmNhNTIzY2RiOGY=
|