stormpath-sdk 0.4.0 → 1.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.gitignore +6 -0
  2. data/.ruby-gemset +1 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +27 -0
  5. data/CHANGES.md +21 -1
  6. data/Gemfile +1 -2
  7. data/README.md +457 -11
  8. data/Rakefile +15 -1
  9. data/lib/stormpath-sdk.rb +52 -33
  10. data/lib/stormpath-sdk/{resource/group_list.rb → api_key.rb} +5 -9
  11. data/lib/stormpath-sdk/auth/authentication_result.rb +3 -13
  12. data/lib/stormpath-sdk/auth/basic_authenticator.rb +5 -11
  13. data/lib/stormpath-sdk/auth/basic_login_attempt.rb +6 -8
  14. data/lib/stormpath-sdk/auth/username_password_request.rb +2 -5
  15. data/lib/stormpath-sdk/cache/cache.rb +54 -0
  16. data/lib/stormpath-sdk/cache/cache_entry.rb +33 -0
  17. data/lib/stormpath-sdk/cache/cache_manager.rb +22 -0
  18. data/lib/stormpath-sdk/cache/cache_stats.rb +35 -0
  19. data/lib/stormpath-sdk/cache/memory_store.rb +29 -0
  20. data/lib/stormpath-sdk/cache/redis_store.rb +32 -0
  21. data/lib/stormpath-sdk/client.rb +111 -0
  22. data/lib/stormpath-sdk/data_store.rb +241 -0
  23. data/lib/stormpath-sdk/{client/api_key.rb → error.rb} +16 -10
  24. data/lib/stormpath-sdk/{util → ext}/hash.rb +1 -2
  25. data/lib/stormpath-sdk/http/authc/sauthc1_signer.rb +8 -4
  26. data/lib/stormpath-sdk/http/http_client_request_executor.rb +8 -7
  27. data/lib/stormpath-sdk/http/request.rb +4 -8
  28. data/lib/stormpath-sdk/{util/request_utils.rb → http/utils.rb} +17 -38
  29. data/lib/stormpath-sdk/resource/account.rb +12 -108
  30. data/lib/stormpath-sdk/resource/application.rb +35 -171
  31. data/lib/stormpath-sdk/resource/associations.rb +97 -0
  32. data/lib/stormpath-sdk/resource/base.rb +256 -0
  33. data/lib/stormpath-sdk/resource/collection.rb +94 -0
  34. data/lib/stormpath-sdk/resource/directory.rb +11 -68
  35. data/lib/stormpath-sdk/resource/email_verification_token.rb +3 -9
  36. data/lib/stormpath-sdk/resource/error.rb +4 -38
  37. data/lib/stormpath-sdk/resource/expansion.rb +28 -0
  38. data/lib/stormpath-sdk/resource/group.rb +8 -66
  39. data/lib/stormpath-sdk/resource/group_membership.rb +4 -55
  40. data/lib/stormpath-sdk/resource/{application_list.rb → instance.rb} +7 -13
  41. data/lib/stormpath-sdk/resource/password_reset_token.rb +5 -23
  42. data/lib/stormpath-sdk/resource/status.rb +22 -28
  43. data/lib/stormpath-sdk/resource/tenant.rb +5 -52
  44. data/lib/stormpath-sdk/resource/utils.rb +43 -13
  45. data/lib/stormpath-sdk/util/assert.rb +5 -15
  46. data/lib/stormpath-sdk/version.rb +3 -3
  47. data/spec/api_key_spec.rb +19 -0
  48. data/spec/auth/basic_authenticator_spec.rb +25 -0
  49. data/spec/auth/sauthc1_signer_spec.rb +42 -0
  50. data/spec/cache/cache_entry_spec.rb +157 -0
  51. data/spec/cache/cache_spec.rb +89 -0
  52. data/spec/cache/cache_stats_spec.rb +106 -0
  53. data/spec/client_spec.rb +538 -0
  54. data/spec/data_store_spec.rb +130 -0
  55. data/spec/resource/account_spec.rb +74 -0
  56. data/spec/resource/application_spec.rb +148 -0
  57. data/spec/resource/base_spec.rb +114 -0
  58. data/spec/resource/collection_spec.rb +169 -0
  59. data/spec/resource/directory_spec.rb +30 -0
  60. data/spec/resource/expansion_spec.rb +100 -0
  61. data/spec/resource/group_spec.rb +49 -0
  62. data/spec/spec_helper.rb +135 -0
  63. data/spec/support/resource_factory.rb +48 -0
  64. data/spec/support/resource_matchers.rb +27 -0
  65. data/spec/support/test_cache_stores.rb +9 -0
  66. data/spec/support/test_request_executor.rb +11 -0
  67. data/stormpath-sdk.gemspec +14 -4
  68. data/support/api.rb +55 -0
  69. metadata +214 -44
  70. data/lib/stormpath-sdk/client/client.rb +0 -38
  71. data/lib/stormpath-sdk/client/client_application.rb +0 -38
  72. data/lib/stormpath-sdk/client/client_application_builder.rb +0 -351
  73. data/lib/stormpath-sdk/client/client_builder.rb +0 -305
  74. data/lib/stormpath-sdk/ds/data_store.rb +0 -210
  75. data/lib/stormpath-sdk/ds/resource_factory.rb +0 -37
  76. data/lib/stormpath-sdk/resource/account_list.rb +0 -32
  77. data/lib/stormpath-sdk/resource/collection_resource.rb +0 -91
  78. data/lib/stormpath-sdk/resource/directory_list.rb +0 -30
  79. data/lib/stormpath-sdk/resource/group_membership_list.rb +0 -32
  80. data/lib/stormpath-sdk/resource/instance_resource.rb +0 -28
  81. data/lib/stormpath-sdk/resource/resource.rb +0 -327
  82. data/lib/stormpath-sdk/resource/resource_error.rb +0 -47
  83. data/test/client/client.yml +0 -16
  84. data/test/client/client_application_builder_spec.rb +0 -114
  85. data/test/client/client_builder_spec.rb +0 -176
  86. data/test/client/read_spec.rb +0 -254
  87. data/test/client/write_spec.rb +0 -420
  88. data/test/resource/resource_spec.rb +0 -41
  89. data/test/resource/test_resource.rb +0 -28
@@ -0,0 +1,48 @@
1
+ module Stormpath
2
+ module Test
3
+ class ResourceFactory
4
+ URL_PREFIX = 'https://api.stormpath.com/v1'
5
+
6
+ def initialize
7
+ @id_count = 0
8
+ end
9
+
10
+ def resource(type, depth = 1, associations = [])
11
+ id = id_for type
12
+ plural = "#{type}s"
13
+ resource = { 'href' => "#{URL_PREFIX}/#{plural}/#{id}" }
14
+
15
+ if depth > 0
16
+ resource['name'] = "#{type} #{id}"
17
+ associations.each do |assoc|
18
+ resource[assoc] = if assoc =~ /s$/
19
+ collection type, assoc.sub(/s$/, ''), depth - 1
20
+ else
21
+ resource assoc, depth - 1
22
+ end
23
+ end
24
+ end
25
+
26
+ resource
27
+ end
28
+
29
+ def collection(parent, type, depth = 1, associations = [])
30
+ id = id_for parent
31
+ collection = {
32
+ 'href' => "#{URL_PREFIX}/#{parent}s/#{id}/#{type}s",
33
+ 'items' => [
34
+ resource(type, depth, associations),
35
+ resource(type, depth, associations)
36
+ ]
37
+ }
38
+
39
+ collection
40
+ end
41
+
42
+ def id_for(type)
43
+ @id_count += 1
44
+ "#{type[0, 3]}#{@id_count}"
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,27 @@
1
+ RSpec::Matchers.define :be_link do |expected|
2
+ match do |actual|
3
+ actual.length == 1 && actual['href']
4
+ end
5
+ end
6
+
7
+ RSpec::Matchers.define :be_resource do |expected|
8
+ match do |actual|
9
+ actual.length > 1 && actual['href'] && !actual['items']
10
+ end
11
+ end
12
+
13
+ RSpec::Matchers.define :be_link_collection do |expected|
14
+ match do |actual|
15
+ actual['href'] && actual['items'] && actual['items'].all? do |item|
16
+ item && item.length == 1 && item['href']
17
+ end
18
+ end
19
+ end
20
+
21
+ RSpec::Matchers.define :be_resource_collection do |expected|
22
+ match do |actual|
23
+ actual['href'] && actual['items'] && actual['items'].all? do |item|
24
+ item && item.length > 1 && item['href'] && !item['items']
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,9 @@
1
+ module Stormpath
2
+ module Test
3
+ class FakeStore1 < Stormpath::Cache::MemoryStore
4
+ end
5
+
6
+ class FakeStore2 < Stormpath::Cache::MemoryStore
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ module Stormpath
2
+ module Test
3
+ class TestRequestExecutor
4
+ attr_writer :response
5
+
6
+ def execute_request(request)
7
+ Stormpath::Http::Response.new 200, 'text/json', @response, @response.length
8
+ end
9
+ end
10
+ end
11
+ end
@@ -19,12 +19,22 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency('httpclient', '>= 2.2.5')
20
20
  s.add_dependency('uuidtools', '>= 2.1.3')
21
21
  s.add_dependency('activesupport', '>= 3.2.8')
22
+ s.add_dependency('properties-ruby', "~> 0.0.4")
23
+ s.add_dependency('java_properties')
22
24
 
23
25
  s.add_development_dependency 'rake', '~> 0.9.2'
24
- s.add_development_dependency 'rspec-core', '~> 2.10.1'
25
- s.add_development_dependency 'rspec-expectations', '~> 2.10.0'
26
- s.add_development_dependency 'rspec-mocks', '~> 2.10.1'
26
+ s.add_development_dependency 'rspec-core', '~> 2.14rc1'
27
+ s.add_development_dependency 'rspec-expectations', '~> 2.14rc1'
28
+ s.add_development_dependency 'rspec-mocks', '~> 2.14rc1'
27
29
  s.add_development_dependency 'rack', '~> 1.4.1'
30
+ s.add_development_dependency 'webmock', '~> 1.11.0'
31
+ s.add_development_dependency 'simplecov', '~> 0.7.1'
32
+ s.add_development_dependency 'pry', '~> 0.9.12.1'
33
+ s.add_development_dependency 'pry-debugger', '~> 0.2.2'
34
+ s.add_development_dependency 'pry-stack_explorer', '~> 0.4.9'
35
+ s.add_development_dependency 'vcr', '~> 2.4.0'
36
+ s.add_development_dependency 'timecop', '~> 0.6.1'
37
+ s.add_development_dependency 'redis', '~> 3.0.4'
28
38
 
29
39
  s.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'stormpath-sdk', '--main']
30
- end
40
+ end
@@ -0,0 +1,55 @@
1
+ module Stormpath
2
+ module Support
3
+ class Api
4
+ def self.destroy_resources(
5
+ api_key_id, api_key_secret, application_url,
6
+ directory_url, directory_with_verification_url
7
+ )
8
+
9
+ api_key = Stormpath::ApiKey.new(
10
+ api_key_id, api_key_secret
11
+ )
12
+
13
+ Stormpath::Client.new(api_key: api_key).tap do |client|
14
+ delete_applications client.applications, application_url
15
+
16
+ client.directories.each do |dir|
17
+ delete_accounts dir.accounts
18
+
19
+ unless [directory_url, directory_with_verification_url].include? dir.href
20
+ delete_directory dir
21
+ end
22
+ end
23
+ end
24
+ end
25
+
26
+ def self.delete_applications applications, application_url
27
+ applications.each do |app|
28
+ begin
29
+ app.delete if app.href != application_url
30
+ rescue Stormpath::Error => e
31
+ raise e if e.message != "System Application cannot be deleted!!!"
32
+ end
33
+ end
34
+ end
35
+
36
+ def self.delete_accounts accounts
37
+ accounts.each do |account|
38
+ begin
39
+ account.delete
40
+ rescue Stormpath::Error => e
41
+ raise e if e.message != "The account cannot be deleted because the account is marked as not deletable."
42
+ end
43
+ end
44
+ end
45
+
46
+ def self.delete_directory directory
47
+ begin
48
+ directory.delete
49
+ rescue Stormpath::Error => e
50
+ raise e if e.message != "System Directory cannot be deleted!"
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stormpath-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 1.0.0.beta
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Elder Crisostomo
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
12
+ date: 2013-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -75,6 +75,38 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 3.2.8
78
+ - !ruby/object:Gem::Dependency
79
+ name: properties-ruby
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 0.0.4
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.0.4
94
+ - !ruby/object:Gem::Dependency
95
+ name: java_properties
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
78
110
  - !ruby/object:Gem::Dependency
79
111
  name: rake
80
112
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +130,7 @@ dependencies:
98
130
  requirements:
99
131
  - - ~>
100
132
  - !ruby/object:Gem::Version
101
- version: 2.10.1
133
+ version: 2.14rc1
102
134
  type: :development
103
135
  prerelease: false
104
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +138,7 @@ dependencies:
106
138
  requirements:
107
139
  - - ~>
108
140
  - !ruby/object:Gem::Version
109
- version: 2.10.1
141
+ version: 2.14rc1
110
142
  - !ruby/object:Gem::Dependency
111
143
  name: rspec-expectations
112
144
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +146,7 @@ dependencies:
114
146
  requirements:
115
147
  - - ~>
116
148
  - !ruby/object:Gem::Version
117
- version: 2.10.0
149
+ version: 2.14rc1
118
150
  type: :development
119
151
  prerelease: false
120
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +154,7 @@ dependencies:
122
154
  requirements:
123
155
  - - ~>
124
156
  - !ruby/object:Gem::Version
125
- version: 2.10.0
157
+ version: 2.14rc1
126
158
  - !ruby/object:Gem::Dependency
127
159
  name: rspec-mocks
128
160
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +162,7 @@ dependencies:
130
162
  requirements:
131
163
  - - ~>
132
164
  - !ruby/object:Gem::Version
133
- version: 2.10.1
165
+ version: 2.14rc1
134
166
  type: :development
135
167
  prerelease: false
136
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +170,7 @@ dependencies:
138
170
  requirements:
139
171
  - - ~>
140
172
  - !ruby/object:Gem::Version
141
- version: 2.10.1
173
+ version: 2.14rc1
142
174
  - !ruby/object:Gem::Dependency
143
175
  name: rack
144
176
  requirement: !ruby/object:Gem::Requirement
@@ -155,6 +187,134 @@ dependencies:
155
187
  - - ~>
156
188
  - !ruby/object:Gem::Version
157
189
  version: 1.4.1
190
+ - !ruby/object:Gem::Dependency
191
+ name: webmock
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ version: 1.11.0
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ version: 1.11.0
206
+ - !ruby/object:Gem::Dependency
207
+ name: simplecov
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ~>
212
+ - !ruby/object:Gem::Version
213
+ version: 0.7.1
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ~>
220
+ - !ruby/object:Gem::Version
221
+ version: 0.7.1
222
+ - !ruby/object:Gem::Dependency
223
+ name: pry
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ~>
228
+ - !ruby/object:Gem::Version
229
+ version: 0.9.12.1
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: 0.9.12.1
238
+ - !ruby/object:Gem::Dependency
239
+ name: pry-debugger
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ~>
244
+ - !ruby/object:Gem::Version
245
+ version: 0.2.2
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ~>
252
+ - !ruby/object:Gem::Version
253
+ version: 0.2.2
254
+ - !ruby/object:Gem::Dependency
255
+ name: pry-stack_explorer
256
+ requirement: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ~>
260
+ - !ruby/object:Gem::Version
261
+ version: 0.4.9
262
+ type: :development
263
+ prerelease: false
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ~>
268
+ - !ruby/object:Gem::Version
269
+ version: 0.4.9
270
+ - !ruby/object:Gem::Dependency
271
+ name: vcr
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ~>
276
+ - !ruby/object:Gem::Version
277
+ version: 2.4.0
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ~>
284
+ - !ruby/object:Gem::Version
285
+ version: 2.4.0
286
+ - !ruby/object:Gem::Dependency
287
+ name: timecop
288
+ requirement: !ruby/object:Gem::Requirement
289
+ none: false
290
+ requirements:
291
+ - - ~>
292
+ - !ruby/object:Gem::Version
293
+ version: 0.6.1
294
+ type: :development
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ~>
300
+ - !ruby/object:Gem::Version
301
+ version: 0.6.1
302
+ - !ruby/object:Gem::Dependency
303
+ name: redis
304
+ requirement: !ruby/object:Gem::Requirement
305
+ none: false
306
+ requirements:
307
+ - - ~>
308
+ - !ruby/object:Gem::Version
309
+ version: 3.0.4
310
+ type: :development
311
+ prerelease: false
312
+ version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
314
+ requirements:
315
+ - - ~>
316
+ - !ruby/object:Gem::Version
317
+ version: 3.0.4
158
318
  description: Stormpath SDK used to interact with the Stormpath REST API
159
319
  email: elder@stormpath.com
160
320
  executables: []
@@ -162,58 +322,74 @@ extensions: []
162
322
  extra_rdoc_files: []
163
323
  files:
164
324
  - .gitignore
325
+ - .ruby-gemset
326
+ - .ruby-version
327
+ - .travis.yml
165
328
  - CHANGES.md
166
329
  - Gemfile
167
330
  - README.md
168
331
  - Rakefile
169
332
  - lib/stormpath-sdk.rb
333
+ - lib/stormpath-sdk/api_key.rb
170
334
  - lib/stormpath-sdk/auth/authentication_result.rb
171
335
  - lib/stormpath-sdk/auth/basic_authenticator.rb
172
336
  - lib/stormpath-sdk/auth/basic_login_attempt.rb
173
337
  - lib/stormpath-sdk/auth/username_password_request.rb
174
- - lib/stormpath-sdk/client/api_key.rb
175
- - lib/stormpath-sdk/client/client.rb
176
- - lib/stormpath-sdk/client/client_application.rb
177
- - lib/stormpath-sdk/client/client_application_builder.rb
178
- - lib/stormpath-sdk/client/client_builder.rb
179
- - lib/stormpath-sdk/ds/data_store.rb
180
- - lib/stormpath-sdk/ds/resource_factory.rb
338
+ - lib/stormpath-sdk/cache/cache.rb
339
+ - lib/stormpath-sdk/cache/cache_entry.rb
340
+ - lib/stormpath-sdk/cache/cache_manager.rb
341
+ - lib/stormpath-sdk/cache/cache_stats.rb
342
+ - lib/stormpath-sdk/cache/memory_store.rb
343
+ - lib/stormpath-sdk/cache/redis_store.rb
344
+ - lib/stormpath-sdk/client.rb
345
+ - lib/stormpath-sdk/data_store.rb
346
+ - lib/stormpath-sdk/error.rb
347
+ - lib/stormpath-sdk/ext/hash.rb
181
348
  - lib/stormpath-sdk/http/authc/sauthc1_signer.rb
182
349
  - lib/stormpath-sdk/http/http_client_request_executor.rb
183
350
  - lib/stormpath-sdk/http/request.rb
184
351
  - lib/stormpath-sdk/http/response.rb
352
+ - lib/stormpath-sdk/http/utils.rb
185
353
  - lib/stormpath-sdk/resource/account.rb
186
- - lib/stormpath-sdk/resource/account_list.rb
187
354
  - lib/stormpath-sdk/resource/application.rb
188
- - lib/stormpath-sdk/resource/application_list.rb
189
- - lib/stormpath-sdk/resource/collection_resource.rb
355
+ - lib/stormpath-sdk/resource/associations.rb
356
+ - lib/stormpath-sdk/resource/base.rb
357
+ - lib/stormpath-sdk/resource/collection.rb
190
358
  - lib/stormpath-sdk/resource/directory.rb
191
- - lib/stormpath-sdk/resource/directory_list.rb
192
359
  - lib/stormpath-sdk/resource/email_verification_token.rb
193
360
  - lib/stormpath-sdk/resource/error.rb
361
+ - lib/stormpath-sdk/resource/expansion.rb
194
362
  - lib/stormpath-sdk/resource/group.rb
195
- - lib/stormpath-sdk/resource/group_list.rb
196
363
  - lib/stormpath-sdk/resource/group_membership.rb
197
- - lib/stormpath-sdk/resource/group_membership_list.rb
198
- - lib/stormpath-sdk/resource/instance_resource.rb
364
+ - lib/stormpath-sdk/resource/instance.rb
199
365
  - lib/stormpath-sdk/resource/password_reset_token.rb
200
- - lib/stormpath-sdk/resource/resource.rb
201
- - lib/stormpath-sdk/resource/resource_error.rb
202
366
  - lib/stormpath-sdk/resource/status.rb
203
367
  - lib/stormpath-sdk/resource/tenant.rb
204
368
  - lib/stormpath-sdk/resource/utils.rb
205
369
  - lib/stormpath-sdk/util/assert.rb
206
- - lib/stormpath-sdk/util/hash.rb
207
- - lib/stormpath-sdk/util/request_utils.rb
208
370
  - lib/stormpath-sdk/version.rb
371
+ - spec/api_key_spec.rb
372
+ - spec/auth/basic_authenticator_spec.rb
373
+ - spec/auth/sauthc1_signer_spec.rb
374
+ - spec/cache/cache_entry_spec.rb
375
+ - spec/cache/cache_spec.rb
376
+ - spec/cache/cache_stats_spec.rb
377
+ - spec/client_spec.rb
378
+ - spec/data_store_spec.rb
379
+ - spec/resource/account_spec.rb
380
+ - spec/resource/application_spec.rb
381
+ - spec/resource/base_spec.rb
382
+ - spec/resource/collection_spec.rb
383
+ - spec/resource/directory_spec.rb
384
+ - spec/resource/expansion_spec.rb
385
+ - spec/resource/group_spec.rb
386
+ - spec/spec_helper.rb
387
+ - spec/support/resource_factory.rb
388
+ - spec/support/resource_matchers.rb
389
+ - spec/support/test_cache_stores.rb
390
+ - spec/support/test_request_executor.rb
209
391
  - stormpath-sdk.gemspec
210
- - test/client/client.yml
211
- - test/client/client_application_builder_spec.rb
212
- - test/client/client_builder_spec.rb
213
- - test/client/read_spec.rb
214
- - test/client/write_spec.rb
215
- - test/resource/resource_spec.rb
216
- - test/resource/test_resource.rb
392
+ - support/api.rb
217
393
  homepage: https://github.com/stormpath/stormpath-sdk-ruby
218
394
  licenses: []
219
395
  post_install_message:
@@ -234,19 +410,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
410
  required_rubygems_version: !ruby/object:Gem::Requirement
235
411
  none: false
236
412
  requirements:
237
- - - ! '>='
413
+ - - ! '>'
238
414
  - !ruby/object:Gem::Version
239
- version: '0'
415
+ version: 1.3.1
240
416
  requirements: []
241
417
  rubyforge_project:
242
- rubygems_version: 1.8.24
418
+ rubygems_version: 1.8.23
243
419
  signing_key:
244
420
  specification_version: 3
245
421
  summary: Stormpath SDK
246
- test_files:
247
- - test/client/client_application_builder_spec.rb
248
- - test/client/client_builder_spec.rb
249
- - test/client/read_spec.rb
250
- - test/client/write_spec.rb
251
- - test/resource/resource_spec.rb
252
- - test/resource/test_resource.rb
422
+ test_files: []