spark_api 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/History.txt +12 -0
  2. data/README.md +7 -0
  3. data/Rakefile +1 -0
  4. data/VERSION +1 -1
  5. data/lib/spark_api/authentication.rb +0 -3
  6. data/lib/spark_api/authentication/oauth2.rb +1 -1
  7. data/lib/spark_api/configuration.rb +6 -1
  8. data/lib/spark_api/models.rb +6 -2
  9. data/lib/spark_api/models/activity.rb +10 -0
  10. data/lib/spark_api/models/base.rb +25 -5
  11. data/lib/spark_api/models/comment.rb +9 -0
  12. data/lib/spark_api/models/concerns/destroyable.rb +1 -1
  13. data/lib/spark_api/models/concerns/savable.rb +3 -6
  14. data/lib/spark_api/models/contact.rb +38 -1
  15. data/lib/spark_api/models/dirty.rb +1 -1
  16. data/lib/spark_api/models/fields.rb +12 -0
  17. data/lib/spark_api/models/listing_cart.rb +6 -34
  18. data/lib/spark_api/models/portal.rb +37 -0
  19. data/lib/spark_api/models/saved_search.rb +36 -0
  20. data/lib/spark_api/models/vow_account.rb +44 -0
  21. data/lib/spark_api/request.rb +1 -1
  22. data/spec/fixtures/activities/get.json +22 -0
  23. data/spec/fixtures/base.json +2 -2
  24. data/spec/fixtures/comments/get.json +32 -0
  25. data/spec/fixtures/comments/new.json +7 -0
  26. data/spec/fixtures/comments/post.json +19 -0
  27. data/spec/fixtures/contacts/my.json +1 -0
  28. data/spec/fixtures/contacts/vow_accounts/edit.json +5 -0
  29. data/spec/fixtures/contacts/vow_accounts/get.json +15 -0
  30. data/spec/fixtures/contacts/vow_accounts/new.json +12 -0
  31. data/spec/fixtures/contacts/vow_accounts/post.json +10 -0
  32. data/spec/fixtures/fields/order.json +22 -0
  33. data/spec/fixtures/fields/order_a.json +39 -0
  34. data/spec/fixtures/portal/disable.json +5 -0
  35. data/spec/fixtures/portal/enable.json +5 -0
  36. data/spec/fixtures/portal/my.json +15 -0
  37. data/spec/fixtures/portal/my_non_existant.json +6 -0
  38. data/spec/fixtures/portal/new.json +7 -0
  39. data/spec/fixtures/portal/post.json +10 -0
  40. data/spec/fixtures/saved_searches/get.json +4 -1
  41. data/spec/spec_helper.rb +11 -7
  42. data/spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb +2 -2
  43. data/spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb +1 -2
  44. data/spec/unit/spark_api/authentication/oauth2_spec.rb +3 -4
  45. data/spec/unit/spark_api/models/activity_spec.rb +29 -0
  46. data/spec/unit/spark_api/models/base_spec.rb +23 -0
  47. data/spec/unit/spark_api/models/concerns/destroyable_spec.rb +1 -1
  48. data/spec/unit/spark_api/models/concerns/savable_spec.rb +8 -4
  49. data/spec/unit/spark_api/models/contact_spec.rb +144 -21
  50. data/spec/unit/spark_api/models/fields_spec.rb +56 -0
  51. data/spec/unit/spark_api/models/listing_cart_spec.rb +1 -1
  52. data/spec/unit/spark_api/models/portal_spec.rb +50 -0
  53. data/spec/unit/spark_api/models/saved_search_spec.rb +60 -0
  54. data/spec/unit/spark_api/models/shared_listing_spec.rb +1 -1
  55. data/spec/unit/spark_api/models/vow_account_spec.rb +64 -0
  56. data/spec/unit/spark_api/request_spec.rb +1 -1
  57. data/spec/unit/spark_api_spec.rb +1 -1
  58. metadata +362 -360
  59. data/lib/spark_api/models/subscription.rb +0 -52
  60. data/spec/fixtures/subscriptions/get.json +0 -19
  61. data/spec/fixtures/subscriptions/new.json +0 -13
  62. data/spec/fixtures/subscriptions/post.json +0 -10
  63. data/spec/fixtures/subscriptions/put.json +0 -12
  64. data/spec/fixtures/subscriptions/subscribe.json +0 -5
  65. data/spec/fixtures/subscriptions/update.json +0 -6
  66. data/spec/json_hash_test_support.rb +0 -251
  67. data/spec/json_helper.rb +0 -76
  68. data/spec/mock_helper.rb +0 -132
  69. data/spec/oauth2_helper.rb +0 -70
  70. data/spec/unit/spark_api/models/subscription_spec.rb +0 -106
@@ -20,7 +20,7 @@ describe SharedListing do
20
20
  end
21
21
 
22
22
  on_post_it "should fail creating" do
23
- stub_api_post("/#{subject.class.element_name}",{}) do |request|
23
+ stub_api_post("/#{subject.class.element_name}", nil) do |request|
24
24
  request.to_return(:status => 400, :body => fixture('errors/failure.json'))
25
25
  end
26
26
  subject
@@ -0,0 +1,64 @@
1
+ require 'spec_helper'
2
+
3
+ describe VowAccount do
4
+ before :each do
5
+ stub_auth_request
6
+ stub_api_get("/my/contact", 'contacts/my.json')
7
+ @contact = Contact.my
8
+ stub_api_get("/contacts/#{@contact.Id}/portal", 'contacts/vow_accounts/get.json')
9
+ @vow_account = @contact.vow_account
10
+ end
11
+
12
+ context "/contacts/<contact_id>/portal" do
13
+ on_post_it "should create a consumer account" do
14
+ s = stub_api_post("/contacts/20090928182824338901000000/portal", "contacts/vow_accounts/new.json", "contacts/vow_accounts/post.json")
15
+ vow = VowAccount.new({
16
+ :LoginName => "Johnny Everyman",
17
+ :Password => "MyPassw0rd",
18
+ :Settings => {:Enabled => "true"},
19
+ :Locale => {:Language => "en"}
20
+ })
21
+ vow.parent = Contact.new(:Id => "20090928182824338901000000")
22
+ vow.save
23
+ s.should have_been_requested
24
+ end
25
+
26
+ on_post_it "should create an empty consumer account" do
27
+ s = stub_api_post("/contacts/20090928182824338901000000/portal", nil, "contacts/vow_accounts/post.json")
28
+ vow = VowAccount.new
29
+ vow.parent = Contact.new(:Id => "20090928182824338901000000")
30
+ vow.save
31
+ s.should have_been_requested
32
+ end
33
+
34
+ on_put_it "should update a consumer account details" do
35
+ @vow_account.LoginName
36
+ @vow_account.LoginName = "Johnny Newman"
37
+ s = stub_api_put("/contacts/20090928182824338901000000/portal", "contacts/vow_accounts/edit.json", "contacts/vow_accounts/post.json")
38
+ @vow_account.save
39
+ s.should have_been_requested
40
+ end
41
+
42
+ it "should enable the current account" do
43
+ s = stub_api_put("/contacts/20090928182824338901000000/portal", {"Settings" => {"Enabled" => "true"}}, "contacts/vow_accounts/post.json")
44
+ @vow_account.enable
45
+ @vow_account.enabled?.should be_true
46
+ s.should have_been_requested
47
+ end
48
+
49
+ it "should disable the current account" do
50
+ s = stub_api_put("/contacts/20090928182824338901000000/portal", {"Settings" => {"Enabled" => "false"}}, "contacts/vow_accounts/post.json")
51
+ @vow_account.disable
52
+ @vow_account.enabled?.should be_false
53
+ s.should have_been_requested
54
+ end
55
+
56
+ it "should change the password" do
57
+ s = stub_api_put("/contacts/20090928182824338901000000/portal", {"Password" => "NewPassw0rd123"}, "contacts/vow_accounts/post.json")
58
+ @vow_account.change_password("NewPassw0rd123")
59
+ s.should have_been_requested
60
+ end
61
+
62
+ end
63
+
64
+ end
@@ -193,7 +193,7 @@ describe SparkApi do
193
193
  end
194
194
 
195
195
  it "should give me BigDecimal results for large floating point numbers" do
196
- MultiJson.default_adapter.should eq(:yajl)
196
+ MultiJson.default_adapter.should eq(:yajl) unless jruby?
197
197
  result = subject.get('/listings/1000')[0]
198
198
  result["StandardFields"]["BuildingAreaTotal"].should be_a(Float)
199
199
  pending("our JSON parser does not support large decimal types. Anyone feel like writing some c code?") do
@@ -3,7 +3,7 @@ require './spec/spec_helper'
3
3
  describe SparkApi do
4
4
 
5
5
  it "should use 'yajl-ruby' for parsing json" do
6
- MultiJson.engine.should eq(MultiJson::Adapters::Yajl)
6
+ MultiJson.engine.should eq(MultiJson::Adapters::Yajl) unless jruby?
7
7
  end
8
8
 
9
9
  it "should load the version" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 2
9
- - 1
10
- version: 1.2.1
8
+ - 3
9
+ - 0
10
+ version: 1.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Hornseth
@@ -16,9 +16,10 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-11-30 00:00:00 Z
19
+ date: 2013-01-08 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
22
23
  type: :runtime
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
@@ -31,10 +32,10 @@ dependencies:
31
32
  - 8
32
33
  - 1
33
34
  version: 0.8.1
34
- version_requirements: *id001
35
- prerelease: false
36
35
  name: faraday
36
+ version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
+ prerelease: false
38
39
  type: :runtime
39
40
  requirement: &id002 !ruby/object:Gem::Requirement
40
41
  none: false
@@ -46,10 +47,10 @@ dependencies:
46
47
  - 1
47
48
  - 0
48
49
  version: "1.0"
49
- version_requirements: *id002
50
- prerelease: false
51
50
  name: multi_json
51
+ version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
+ prerelease: false
53
54
  type: :runtime
54
55
  requirement: &id003 !ruby/object:Gem::Requirement
55
56
  none: false
@@ -61,28 +62,12 @@ dependencies:
61
62
  - 1
62
63
  - 7
63
64
  version: "1.7"
64
- version_requirements: *id003
65
- prerelease: false
66
65
  name: json
66
+ version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
68
- type: :runtime
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 19
75
- segments:
76
- - 1
77
- - 1
78
- - 0
79
- version: 1.1.0
80
- version_requirements: *id004
81
68
  prerelease: false
82
- name: yajl-ruby
83
- - !ruby/object:Gem::Dependency
84
69
  type: :runtime
85
- requirement: &id005 !ruby/object:Gem::Requirement
70
+ requirement: &id004 !ruby/object:Gem::Requirement
86
71
  none: false
87
72
  requirements:
88
73
  - - ">="
@@ -101,12 +86,12 @@ dependencies:
101
86
  - 0
102
87
  - 0
103
88
  version: 4.0.0
104
- version_requirements: *id005
105
- prerelease: false
106
89
  name: builder
90
+ version_requirements: *id004
107
91
  - !ruby/object:Gem::Dependency
92
+ prerelease: false
108
93
  type: :runtime
109
- requirement: &id006 !ruby/object:Gem::Requirement
94
+ requirement: &id005 !ruby/object:Gem::Requirement
110
95
  none: false
111
96
  requirements:
112
97
  - - ">="
@@ -126,12 +111,12 @@ dependencies:
126
111
  - 0
127
112
  - 0
128
113
  version: 4.0.0
129
- version_requirements: *id006
130
- prerelease: false
131
114
  name: will_paginate
115
+ version_requirements: *id005
132
116
  - !ruby/object:Gem::Dependency
117
+ prerelease: false
133
118
  type: :runtime
134
- requirement: &id007 !ruby/object:Gem::Requirement
119
+ requirement: &id006 !ruby/object:Gem::Requirement
135
120
  none: false
136
121
  requirements:
137
122
  - - ">="
@@ -141,12 +126,12 @@ dependencies:
141
126
  - 1
142
127
  - 0
143
128
  version: "1.0"
144
- version_requirements: *id007
145
- prerelease: false
146
129
  name: highline
130
+ version_requirements: *id006
147
131
  - !ruby/object:Gem::Dependency
132
+ prerelease: false
148
133
  type: :development
149
- requirement: &id008 !ruby/object:Gem::Requirement
134
+ requirement: &id007 !ruby/object:Gem::Requirement
150
135
  none: false
151
136
  requirements:
152
137
  - - ~>
@@ -157,12 +142,12 @@ dependencies:
157
142
  - 9
158
143
  - 2
159
144
  version: 0.9.2
160
- version_requirements: *id008
161
- prerelease: false
162
145
  name: rake
146
+ version_requirements: *id007
163
147
  - !ruby/object:Gem::Dependency
148
+ prerelease: false
164
149
  type: :development
165
- requirement: &id009 !ruby/object:Gem::Requirement
150
+ requirement: &id008 !ruby/object:Gem::Requirement
166
151
  none: false
167
152
  requirements:
168
153
  - - ~>
@@ -173,44 +158,42 @@ dependencies:
173
158
  - 11
174
159
  - 0
175
160
  version: 2.11.0
176
- version_requirements: *id009
177
- prerelease: false
178
161
  name: rspec
162
+ version_requirements: *id008
179
163
  - !ruby/object:Gem::Dependency
164
+ prerelease: false
180
165
  type: :development
181
- requirement: &id010 !ruby/object:Gem::Requirement
166
+ requirement: &id009 !ruby/object:Gem::Requirement
182
167
  none: false
183
168
  requirements:
184
- - - "="
169
+ - - ~>
185
170
  - !ruby/object:Gem::Version
186
- hash: 1
171
+ hash: 29
187
172
  segments:
188
173
  - 1
189
- - 7
190
- - 5
191
- version: 1.7.5
192
- version_requirements: *id010
193
- prerelease: false
174
+ - 9
175
+ version: "1.9"
194
176
  name: webmock
177
+ version_requirements: *id009
195
178
  - !ruby/object:Gem::Dependency
179
+ prerelease: false
196
180
  type: :development
197
- requirement: &id011 !ruby/object:Gem::Requirement
181
+ requirement: &id010 !ruby/object:Gem::Requirement
198
182
  none: false
199
183
  requirements:
200
184
  - - ~>
201
185
  - !ruby/object:Gem::Version
202
- hash: 31
186
+ hash: 13
203
187
  segments:
204
188
  - 0
205
- - 2
206
- - 4
207
- version: 0.2.4
208
- version_requirements: *id011
209
- prerelease: false
189
+ - 3
190
+ version: "0.3"
210
191
  name: typhoeus
192
+ version_requirements: *id010
211
193
  - !ruby/object:Gem::Dependency
194
+ prerelease: false
212
195
  type: :development
213
- requirement: &id012 !ruby/object:Gem::Requirement
196
+ requirement: &id011 !ruby/object:Gem::Requirement
214
197
  none: false
215
198
  requirements:
216
199
  - - ~>
@@ -221,12 +204,12 @@ dependencies:
221
204
  - 7
222
205
  - 0
223
206
  version: 1.7.0
224
- version_requirements: *id012
225
- prerelease: false
226
207
  name: ci_reporter
208
+ version_requirements: *id011
227
209
  - !ruby/object:Gem::Dependency
210
+ prerelease: false
228
211
  type: :development
229
- requirement: &id013 !ruby/object:Gem::Requirement
212
+ requirement: &id012 !ruby/object:Gem::Requirement
230
213
  none: false
231
214
  requirements:
232
215
  - - ~>
@@ -237,12 +220,12 @@ dependencies:
237
220
  - 9
238
221
  - 9
239
222
  version: 0.9.9
240
- version_requirements: *id013
241
- prerelease: false
242
223
  name: rcov
224
+ version_requirements: *id012
243
225
  - !ruby/object:Gem::Dependency
226
+ prerelease: false
244
227
  type: :development
245
- requirement: &id014 !ruby/object:Gem::Requirement
228
+ requirement: &id013 !ruby/object:Gem::Requirement
246
229
  none: false
247
230
  requirements:
248
231
  - - ~>
@@ -253,12 +236,12 @@ dependencies:
253
236
  - 2
254
237
  - 5
255
238
  version: 0.2.5
256
- version_requirements: *id014
257
- prerelease: false
258
239
  name: flexmls_gems
240
+ version_requirements: *id013
259
241
  - !ruby/object:Gem::Dependency
242
+ prerelease: false
260
243
  type: :development
261
- requirement: &id015 !ruby/object:Gem::Requirement
244
+ requirement: &id014 !ruby/object:Gem::Requirement
262
245
  none: false
263
246
  requirements:
264
247
  - - ">="
@@ -267,25 +250,22 @@ dependencies:
267
250
  segments:
268
251
  - 0
269
252
  version: "0"
270
- version_requirements: *id015
271
- prerelease: false
272
253
  name: guard-rspec
254
+ version_requirements: *id014
273
255
  - !ruby/object:Gem::Dependency
256
+ prerelease: false
274
257
  type: :development
275
- requirement: &id016 !ruby/object:Gem::Requirement
258
+ requirement: &id015 !ruby/object:Gem::Requirement
276
259
  none: false
277
260
  requirements:
278
- - - ~>
261
+ - - ">="
279
262
  - !ruby/object:Gem::Version
280
- hash: 57
263
+ hash: 3
281
264
  segments:
282
265
  - 0
283
- - 9
284
- - 1
285
- version: 0.9.1
286
- version_requirements: *id016
287
- prerelease: false
266
+ version: "0"
288
267
  name: rb-fsevent
268
+ version_requirements: *id015
289
269
  description: The spark_api gem handles most of the boilerplate for communicating with the Spark API rest services, including authentication and request parsing.
290
270
  email: api-support@sparkapi.com
291
271
  executables:
@@ -302,221 +282,234 @@ files:
302
282
  - README.md
303
283
  - VERSION
304
284
  - bin/spark_api
305
- - lib/spark_api/authentication/api_auth.rb
306
- - lib/spark_api/authentication/oauth2_impl/faraday_middleware.rb
307
- - lib/spark_api/authentication/oauth2_impl/single_session_provider.rb
308
- - lib/spark_api/authentication/oauth2_impl/grant_type_base.rb
309
- - lib/spark_api/authentication/oauth2_impl/grant_type_code.rb
310
- - lib/spark_api/authentication/oauth2_impl/grant_type_refresh.rb
311
- - lib/spark_api/authentication/oauth2_impl/cli_provider.rb
312
- - lib/spark_api/authentication/oauth2_impl/simple_provider.rb
313
- - lib/spark_api/authentication/oauth2_impl/grant_type_password.rb
314
- - lib/spark_api/authentication/oauth2.rb
315
- - lib/spark_api/authentication/base_auth.rb
316
- - lib/spark_api/faraday_middleware.rb
317
- - lib/spark_api/errors.rb
318
- - lib/spark_api/client.rb
319
- - lib/spark_api/primary_array.rb
320
- - lib/spark_api/version.rb
321
- - lib/spark_api/response.rb
322
- - lib/spark_api/models.rb
285
+ - lib/spark_api/options_hash.rb
323
286
  - lib/spark_api/connection.rb
287
+ - lib/spark_api/request.rb
324
288
  - lib/spark_api/multi_client.rb
325
- - lib/spark_api/models/document.rb
326
- - lib/spark_api/models/rental_calendar.rb
327
- - lib/spark_api/models/finders.rb
328
- - lib/spark_api/models/subresource.rb
329
- - lib/spark_api/models/photo.rb
330
- - lib/spark_api/models/contact.rb
331
289
  - lib/spark_api/models/video.rb
332
- - lib/spark_api/models/idx_link.rb
333
- - lib/spark_api/models/message.rb
334
- - lib/spark_api/models/concerns.rb
290
+ - lib/spark_api/models/account.rb
291
+ - lib/spark_api/models/virtual_tour.rb
292
+ - lib/spark_api/models/connect_prefs.rb
293
+ - lib/spark_api/models/portal.rb
294
+ - lib/spark_api/models/subresource.rb
295
+ - lib/spark_api/models/market_statistics.rb
335
296
  - lib/spark_api/models/system_info.rb
336
297
  - lib/spark_api/models/listing.rb
337
- - lib/spark_api/models/constraint.rb
338
- - lib/spark_api/models/base.rb
298
+ - lib/spark_api/models/contact.rb
339
299
  - lib/spark_api/models/listing_cart.rb
340
- - lib/spark_api/models/saved_search.rb
341
- - lib/spark_api/models/open_house.rb
300
+ - lib/spark_api/models/rental_calendar.rb
301
+ - lib/spark_api/models/concerns/savable.rb
302
+ - lib/spark_api/models/concerns/destroyable.rb
342
303
  - lib/spark_api/models/dirty.rb
343
- - lib/spark_api/models/connect_prefs.rb
304
+ - lib/spark_api/models/custom_fields.rb
344
305
  - lib/spark_api/models/shared_listing.rb
345
- - lib/spark_api/models/concerns/destroyable.rb
346
- - lib/spark_api/models/concerns/savable.rb
306
+ - lib/spark_api/models/activity.rb
307
+ - lib/spark_api/models/comment.rb
308
+ - lib/spark_api/models/saved_search.rb
347
309
  - lib/spark_api/models/standard_fields.rb
348
- - lib/spark_api/models/market_statistics.rb
349
- - lib/spark_api/models/note.rb
350
- - lib/spark_api/models/custom_fields.rb
351
- - lib/spark_api/models/account.rb
352
- - lib/spark_api/models/notification.rb
353
- - lib/spark_api/models/subscription.rb
354
- - lib/spark_api/models/property_types.rb
355
- - lib/spark_api/models/virtual_tour.rb
310
+ - lib/spark_api/models/document.rb
311
+ - lib/spark_api/models/open_house.rb
312
+ - lib/spark_api/models/vow_account.rb
313
+ - lib/spark_api/models/finders.rb
314
+ - lib/spark_api/models/fields.rb
315
+ - lib/spark_api/models/base.rb
356
316
  - lib/spark_api/models/tour_of_home.rb
317
+ - lib/spark_api/models/property_types.rb
318
+ - lib/spark_api/models/idx_link.rb
319
+ - lib/spark_api/models/notification.rb
320
+ - lib/spark_api/models/message.rb
321
+ - lib/spark_api/models/note.rb
322
+ - lib/spark_api/models/photo.rb
323
+ - lib/spark_api/models/concerns.rb
324
+ - lib/spark_api/models/constraint.rb
325
+ - lib/spark_api/models.rb
326
+ - lib/spark_api/primary_array.rb
357
327
  - lib/spark_api/paginate.rb
358
- - lib/spark_api/cli/api_auth.rb
359
- - lib/spark_api/cli/setup.rb
360
- - lib/spark_api/cli/oauth2.rb
361
- - lib/spark_api/request.rb
362
- - lib/spark_api/options_hash.rb
363
328
  - lib/spark_api/cli.rb
364
- - lib/spark_api/authentication.rb
329
+ - lib/spark_api/response.rb
365
330
  - lib/spark_api/configuration.rb
366
331
  - lib/spark_api/configuration/oauth2_configurable.rb
367
332
  - lib/spark_api/configuration/yaml.rb
333
+ - lib/spark_api/cli/setup.rb
334
+ - lib/spark_api/cli/api_auth.rb
335
+ - lib/spark_api/cli/oauth2.rb
336
+ - lib/spark_api/client.rb
337
+ - lib/spark_api/version.rb
338
+ - lib/spark_api/errors.rb
339
+ - lib/spark_api/authentication/base_auth.rb
340
+ - lib/spark_api/authentication/oauth2_impl/grant_type_base.rb
341
+ - lib/spark_api/authentication/oauth2_impl/grant_type_code.rb
342
+ - lib/spark_api/authentication/oauth2_impl/single_session_provider.rb
343
+ - lib/spark_api/authentication/oauth2_impl/simple_provider.rb
344
+ - lib/spark_api/authentication/oauth2_impl/grant_type_password.rb
345
+ - lib/spark_api/authentication/oauth2_impl/cli_provider.rb
346
+ - lib/spark_api/authentication/oauth2_impl/faraday_middleware.rb
347
+ - lib/spark_api/authentication/oauth2_impl/grant_type_refresh.rb
348
+ - lib/spark_api/authentication/api_auth.rb
349
+ - lib/spark_api/authentication/oauth2.rb
350
+ - lib/spark_api/faraday_middleware.rb
351
+ - lib/spark_api/authentication.rb
368
352
  - lib/spark_api.rb
369
- - script/console
370
- - script/example.rb
371
353
  - script/oauth2_example.rb
354
+ - script/console
372
355
  - script/combined_flow_example.rb
373
- - spec/fixtures/oauth2_error.json
374
- - spec/fixtures/errors/failure_with_constraint.json
375
- - spec/fixtures/errors/expired.json
376
- - spec/fixtures/errors/failure_with_msg.json
377
- - spec/fixtures/errors/failure.json
378
- - spec/fixtures/subscriptions/update.json
379
- - spec/fixtures/subscriptions/new.json
380
- - spec/fixtures/subscriptions/put.json
381
- - spec/fixtures/subscriptions/get.json
382
- - spec/fixtures/subscriptions/post.json
383
- - spec/fixtures/subscriptions/subscribe.json
384
- - spec/fixtures/count.json
385
- - spec/fixtures/notes/new.json
386
- - spec/fixtures/notes/agent_shared.json
387
- - spec/fixtures/notes/add.json
388
- - spec/fixtures/notes/agent_shared_empty.json
389
- - spec/fixtures/base.json
390
- - spec/fixtures/generic_failure.json
356
+ - script/example.rb
357
+ - spec/fixtures/fields/order.json
358
+ - spec/fixtures/fields/order_a.json
391
359
  - spec/fixtures/session.json
392
- - spec/fixtures/generic_delete.json
393
- - spec/fixtures/oauth2/refresh_body.json
394
- - spec/fixtures/oauth2/access_with_refresh.json
395
- - spec/fixtures/oauth2/password_body.json
396
- - spec/fixtures/oauth2/authorization_code_body.json
397
- - spec/fixtures/oauth2/error.json
398
- - spec/fixtures/oauth2/access.json
399
- - spec/fixtures/oauth2/access_with_old_refresh.json
400
- - spec/fixtures/saved_searches/update.json
401
- - spec/fixtures/saved_searches/new.json
402
- - spec/fixtures/saved_searches/get.json
403
- - spec/fixtures/saved_searches/post.json
404
- - spec/fixtures/standardfields/nearby.json
405
- - spec/fixtures/standardfields/city.json
406
- - spec/fixtures/standardfields/stateorprovince.json
407
- - spec/fixtures/standardfields/standardfields.json
360
+ - spec/fixtures/portal/my_non_existant.json
361
+ - spec/fixtures/portal/disable.json
362
+ - spec/fixtures/portal/my.json
363
+ - spec/fixtures/portal/enable.json
364
+ - spec/fixtures/portal/post.json
365
+ - spec/fixtures/portal/new.json
366
+ - spec/fixtures/generic_failure.json
367
+ - spec/fixtures/finders.json
408
368
  - spec/fixtures/property_types/property_types.json
409
- - spec/fixtures/accounts/all.json
369
+ - spec/fixtures/authentication_failure.json
370
+ - spec/fixtures/activities/get.json
410
371
  - spec/fixtures/accounts/password_save.json
411
372
  - spec/fixtures/accounts/office.json
412
- - spec/fixtures/accounts/my.json
413
373
  - spec/fixtures/accounts/my_put.json
414
- - spec/fixtures/accounts/my_save.json
374
+ - spec/fixtures/accounts/my.json
415
375
  - spec/fixtures/accounts/my_portal.json
416
- - spec/fixtures/success.json
417
- - spec/fixtures/empty.json
418
- - spec/fixtures/listing_carts/remove_listing.json
419
- - spec/fixtures/listing_carts/add_listing_post.json
420
- - spec/fixtures/listing_carts/listing_cart.json
421
- - spec/fixtures/listing_carts/empty.json
422
- - spec/fixtures/listing_carts/new.json
423
- - spec/fixtures/listing_carts/post.json
424
- - spec/fixtures/listing_carts/add_listing.json
425
- - spec/fixtures/authentication_failure.json
426
- - spec/fixtures/listings/put_expiration_date.json
427
- - spec/fixtures/listings/no_subresources.json
428
- - spec/fixtures/listings/rental_calendar.json
429
- - spec/fixtures/listings/shared_listing_get.json
430
- - spec/fixtures/listings/constraints_with_pagination.json
431
- - spec/fixtures/listings/with_rental_calendar.json
432
- - spec/fixtures/listings/multiple.json
376
+ - spec/fixtures/accounts/my_save.json
377
+ - spec/fixtures/accounts/all.json
378
+ - spec/fixtures/contacts/vow_accounts/edit.json
379
+ - spec/fixtures/contacts/vow_accounts/get.json
380
+ - spec/fixtures/contacts/vow_accounts/post.json
381
+ - spec/fixtures/contacts/vow_accounts/new.json
382
+ - spec/fixtures/contacts/contacts.json
383
+ - spec/fixtures/contacts/my.json
384
+ - spec/fixtures/contacts/tags.json
385
+ - spec/fixtures/contacts/post.json
386
+ - spec/fixtures/contacts/new.json
387
+ - spec/fixtures/contacts/new_notify.json
388
+ - spec/fixtures/contacts/new_empty.json
433
389
  - spec/fixtures/listings/open_houses.json
434
- - spec/fixtures/listings/photos/new.json
435
- - spec/fixtures/listings/photos/post.json
436
- - spec/fixtures/listings/photos/index.json
437
- - spec/fixtures/listings/with_videos.json
390
+ - spec/fixtures/listings/constraints.json
438
391
  - spec/fixtures/listings/with_documents.json
439
- - spec/fixtures/listings/put.json
440
- - spec/fixtures/listings/with_permissions.json
441
- - spec/fixtures/listings/with_vtour.json
442
- - spec/fixtures/listings/tour_of_homes_search.json
392
+ - spec/fixtures/listings/shared_listing_post.json
393
+ - spec/fixtures/listings/rental_calendar.json
394
+ - spec/fixtures/listings/no_subresources.json
443
395
  - spec/fixtures/listings/with_photos.json
396
+ - spec/fixtures/listings/put_expiration_date.json
397
+ - spec/fixtures/listings/photos/index.json
398
+ - spec/fixtures/listings/photos/post.json
399
+ - spec/fixtures/listings/photos/new.json
400
+ - spec/fixtures/listings/multiple.json
401
+ - spec/fixtures/listings/with_videos.json
402
+ - spec/fixtures/listings/tour_of_homes.json
403
+ - spec/fixtures/listings/shared_listing_get.json
444
404
  - spec/fixtures/listings/shared_listing_new.json
445
- - spec/fixtures/listings/videos_index.json
446
405
  - spec/fixtures/listings/with_supplement.json
447
- - spec/fixtures/listings/tour_of_homes.json
448
- - spec/fixtures/listings/shared_listing_post.json
449
- - spec/fixtures/listings/virtual_tours_index.json
406
+ - spec/fixtures/listings/with_rental_calendar.json
407
+ - spec/fixtures/listings/constraints_with_pagination.json
450
408
  - spec/fixtures/listings/document_index.json
451
- - spec/fixtures/listings/constraints.json
452
- - spec/fixtures/finders.json
409
+ - spec/fixtures/listings/virtual_tours_index.json
410
+ - spec/fixtures/listings/with_vtour.json
411
+ - spec/fixtures/listings/tour_of_homes_search.json
412
+ - spec/fixtures/listings/videos_index.json
413
+ - spec/fixtures/listings/with_permissions.json
414
+ - spec/fixtures/listings/put.json
415
+ - spec/fixtures/success.json
416
+ - spec/fixtures/standardfields/standardfields.json
417
+ - spec/fixtures/standardfields/nearby.json
418
+ - spec/fixtures/standardfields/stateorprovince.json
419
+ - spec/fixtures/standardfields/city.json
420
+ - spec/fixtures/notes/agent_shared_empty.json
421
+ - spec/fixtures/notes/agent_shared.json
422
+ - spec/fixtures/notes/add.json
423
+ - spec/fixtures/notes/new.json
424
+ - spec/fixtures/generic_delete.json
425
+ - spec/fixtures/oauth2/access_with_refresh.json
426
+ - spec/fixtures/oauth2/password_body.json
427
+ - spec/fixtures/oauth2/refresh_body.json
428
+ - spec/fixtures/oauth2/error.json
429
+ - spec/fixtures/oauth2/access_with_old_refresh.json
430
+ - spec/fixtures/oauth2/authorization_code_body.json
431
+ - spec/fixtures/oauth2/access.json
432
+ - spec/fixtures/oauth2_error.json
433
+ - spec/fixtures/errors/failure_with_msg.json
434
+ - spec/fixtures/errors/failure.json
435
+ - spec/fixtures/errors/expired.json
436
+ - spec/fixtures/errors/failure_with_constraint.json
437
+ - spec/fixtures/comments/get.json
438
+ - spec/fixtures/comments/post.json
439
+ - spec/fixtures/comments/new.json
440
+ - spec/fixtures/count.json
441
+ - spec/fixtures/saved_searches/update.json
442
+ - spec/fixtures/saved_searches/get.json
443
+ - spec/fixtures/saved_searches/post.json
444
+ - spec/fixtures/saved_searches/new.json
445
+ - spec/fixtures/logo_fbs.png
446
+ - spec/fixtures/listing_carts/listing_cart.json
447
+ - spec/fixtures/listing_carts/add_listing.json
448
+ - spec/fixtures/listing_carts/add_listing_post.json
449
+ - spec/fixtures/listing_carts/remove_listing.json
450
+ - spec/fixtures/listing_carts/empty.json
451
+ - spec/fixtures/listing_carts/post.json
452
+ - spec/fixtures/listing_carts/new.json
453
+ - spec/fixtures/empty.json
454
+ - spec/fixtures/messages/new_with_recipients.json
455
+ - spec/fixtures/messages/post.json
456
+ - spec/fixtures/messages/new.json
457
+ - spec/fixtures/messages/new_empty.json
458
+ - spec/fixtures/base.json
453
459
  - spec/fixtures/notifications/notifications.json
454
- - spec/fixtures/notifications/new_empty.json
455
460
  - spec/fixtures/notifications/unread.json
456
461
  - spec/fixtures/notifications/mark_read.json
457
- - spec/fixtures/notifications/new.json
458
462
  - spec/fixtures/notifications/post.json
459
- - spec/fixtures/contacts/tags.json
460
- - spec/fixtures/contacts/my.json
461
- - spec/fixtures/contacts/new_empty.json
462
- - spec/fixtures/contacts/contacts.json
463
- - spec/fixtures/contacts/new_notify.json
464
- - spec/fixtures/contacts/new.json
465
- - spec/fixtures/contacts/post.json
466
- - spec/fixtures/messages/new_with_recipients.json
467
- - spec/fixtures/messages/new_empty.json
468
- - spec/fixtures/messages/new.json
469
- - spec/fixtures/messages/post.json
470
- - spec/fixtures/logo_fbs.png
463
+ - spec/fixtures/notifications/new.json
464
+ - spec/fixtures/notifications/new_empty.json
471
465
  - spec/unit/spark_api_spec.rb
472
- - spec/unit/spark_api/authentication/base_auth_spec.rb
473
- - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
474
- - spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb
475
- - spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
476
- - spec/unit/spark_api/authentication/oauth2_spec.rb
477
- - spec/unit/spark_api/authentication/api_auth_spec.rb
478
- - spec/unit/spark_api/authentication_spec.rb
479
- - spec/unit/spark_api/models/open_house_spec.rb
480
- - spec/unit/spark_api/models/account_spec.rb
481
- - spec/unit/spark_api/models/virtual_tour_spec.rb
482
- - spec/unit/spark_api/models/constraint_spec.rb
483
- - spec/unit/spark_api/models/notification_spec.rb
466
+ - spec/unit/spark_api/primary_array_spec.rb
467
+ - spec/unit/spark_api/options_hash_spec.rb
468
+ - spec/unit/spark_api/models/finders_spec.rb
484
469
  - spec/unit/spark_api/models/saved_search_spec.rb
485
- - spec/unit/spark_api/models/contact_spec.rb
486
- - spec/unit/spark_api/models/listing_cart_spec.rb
487
470
  - spec/unit/spark_api/models/video_spec.rb
488
- - spec/unit/spark_api/models/rental_calendar_spec.rb
489
- - spec/unit/spark_api/models/document_spec.rb
490
- - spec/unit/spark_api/models/property_types_spec.rb
491
- - spec/unit/spark_api/models/dirty_spec.rb
471
+ - spec/unit/spark_api/models/listing_cart_spec.rb
472
+ - spec/unit/spark_api/models/subresource_spec.rb
473
+ - spec/unit/spark_api/models/vow_account_spec.rb
492
474
  - spec/unit/spark_api/models/message_spec.rb
493
- - spec/unit/spark_api/models/listing_spec.rb
494
- - spec/unit/spark_api/models/subscription_spec.rb
495
475
  - spec/unit/spark_api/models/shared_listing_spec.rb
476
+ - spec/unit/spark_api/models/dirty_spec.rb
477
+ - spec/unit/spark_api/models/listing_spec.rb
478
+ - spec/unit/spark_api/models/base_spec.rb
496
479
  - spec/unit/spark_api/models/note_spec.rb
497
- - spec/unit/spark_api/models/connect_prefs_spec.rb
498
- - spec/unit/spark_api/models/concerns/destroyable_spec.rb
480
+ - spec/unit/spark_api/models/portal_spec.rb
481
+ - spec/unit/spark_api/models/system_info_spec.rb
482
+ - spec/unit/spark_api/models/account_spec.rb
483
+ - spec/unit/spark_api/models/rental_calendar_spec.rb
484
+ - spec/unit/spark_api/models/document_spec.rb
485
+ - spec/unit/spark_api/models/contact_spec.rb
486
+ - spec/unit/spark_api/models/property_types_spec.rb
499
487
  - spec/unit/spark_api/models/concerns/savable_spec.rb
500
- - spec/unit/spark_api/models/subresource_spec.rb
501
- - spec/unit/spark_api/models/photo_spec.rb
502
- - spec/unit/spark_api/models/base_spec.rb
488
+ - spec/unit/spark_api/models/concerns/destroyable_spec.rb
489
+ - spec/unit/spark_api/models/activity_spec.rb
490
+ - spec/unit/spark_api/models/virtual_tour_spec.rb
491
+ - spec/unit/spark_api/models/fields_spec.rb
503
492
  - spec/unit/spark_api/models/tour_of_home_spec.rb
504
- - spec/unit/spark_api/models/finders_spec.rb
505
- - spec/unit/spark_api/models/system_info_spec.rb
493
+ - spec/unit/spark_api/models/notification_spec.rb
494
+ - spec/unit/spark_api/models/connect_prefs_spec.rb
495
+ - spec/unit/spark_api/models/constraint_spec.rb
496
+ - spec/unit/spark_api/models/photo_spec.rb
506
497
  - spec/unit/spark_api/models/standard_fields_spec.rb
498
+ - spec/unit/spark_api/models/open_house_spec.rb
499
+ - spec/unit/spark_api/authentication_spec.rb
507
500
  - spec/unit/spark_api/faraday_middleware_spec.rb
508
- - spec/unit/spark_api/options_hash_spec.rb
509
- - spec/unit/spark_api/paginate_spec.rb
510
- - spec/unit/spark_api/primary_array_spec.rb
511
501
  - spec/unit/spark_api/configuration_spec.rb
512
- - spec/unit/spark_api/request_spec.rb
513
502
  - spec/unit/spark_api/configuration/yaml_spec.rb
514
503
  - spec/unit/spark_api/multi_client_spec.rb
504
+ - spec/unit/spark_api/authentication/base_auth_spec.rb
505
+ - spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb
506
+ - spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
507
+ - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
508
+ - spec/unit/spark_api/authentication/api_auth_spec.rb
509
+ - spec/unit/spark_api/authentication/oauth2_spec.rb
510
+ - spec/unit/spark_api/request_spec.rb
511
+ - spec/unit/spark_api/paginate_spec.rb
515
512
  - spec/spec_helper.rb
516
- - spec/oauth2_helper.rb
517
- - spec/json_helper.rb
518
- - spec/json_hash_test_support.rb
519
- - spec/mock_helper.rb
520
513
  homepage: https://github.com/sparkapi/spark_api
521
514
  licenses: []
522
515
 
@@ -547,155 +540,164 @@ required_rubygems_version: !ruby/object:Gem::Requirement
547
540
  requirements: []
548
541
 
549
542
  rubyforge_project: spark_api
550
- rubygems_version: 1.8.24
543
+ rubygems_version: 1.8.15
551
544
  signing_key:
552
545
  specification_version: 3
553
546
  summary: A library for interacting with the Spark web services.
554
547
  test_files:
555
- - spec/fixtures/oauth2_error.json
556
- - spec/fixtures/errors/failure_with_constraint.json
557
- - spec/fixtures/errors/expired.json
558
- - spec/fixtures/errors/failure_with_msg.json
559
- - spec/fixtures/errors/failure.json
560
- - spec/fixtures/subscriptions/update.json
561
- - spec/fixtures/subscriptions/new.json
562
- - spec/fixtures/subscriptions/put.json
563
- - spec/fixtures/subscriptions/get.json
564
- - spec/fixtures/subscriptions/post.json
565
- - spec/fixtures/subscriptions/subscribe.json
566
- - spec/fixtures/count.json
567
- - spec/fixtures/notes/new.json
548
+ - spec/fixtures/fields/order.json
549
+ - spec/fixtures/fields/order_a.json
550
+ - spec/fixtures/session.json
551
+ - spec/fixtures/portal/my_non_existant.json
552
+ - spec/fixtures/portal/disable.json
553
+ - spec/fixtures/portal/my.json
554
+ - spec/fixtures/portal/enable.json
555
+ - spec/fixtures/portal/post.json
556
+ - spec/fixtures/portal/new.json
557
+ - spec/fixtures/generic_failure.json
558
+ - spec/fixtures/finders.json
559
+ - spec/fixtures/property_types/property_types.json
560
+ - spec/fixtures/authentication_failure.json
561
+ - spec/fixtures/activities/get.json
562
+ - spec/fixtures/accounts/password_save.json
563
+ - spec/fixtures/accounts/office.json
564
+ - spec/fixtures/accounts/my_put.json
565
+ - spec/fixtures/accounts/my.json
566
+ - spec/fixtures/accounts/my_portal.json
567
+ - spec/fixtures/accounts/my_save.json
568
+ - spec/fixtures/accounts/all.json
569
+ - spec/fixtures/contacts/vow_accounts/edit.json
570
+ - spec/fixtures/contacts/vow_accounts/get.json
571
+ - spec/fixtures/contacts/vow_accounts/post.json
572
+ - spec/fixtures/contacts/vow_accounts/new.json
573
+ - spec/fixtures/contacts/contacts.json
574
+ - spec/fixtures/contacts/my.json
575
+ - spec/fixtures/contacts/tags.json
576
+ - spec/fixtures/contacts/post.json
577
+ - spec/fixtures/contacts/new.json
578
+ - spec/fixtures/contacts/new_notify.json
579
+ - spec/fixtures/contacts/new_empty.json
580
+ - spec/fixtures/listings/open_houses.json
581
+ - spec/fixtures/listings/constraints.json
582
+ - spec/fixtures/listings/with_documents.json
583
+ - spec/fixtures/listings/shared_listing_post.json
584
+ - spec/fixtures/listings/rental_calendar.json
585
+ - spec/fixtures/listings/no_subresources.json
586
+ - spec/fixtures/listings/with_photos.json
587
+ - spec/fixtures/listings/put_expiration_date.json
588
+ - spec/fixtures/listings/photos/index.json
589
+ - spec/fixtures/listings/photos/post.json
590
+ - spec/fixtures/listings/photos/new.json
591
+ - spec/fixtures/listings/multiple.json
592
+ - spec/fixtures/listings/with_videos.json
593
+ - spec/fixtures/listings/tour_of_homes.json
594
+ - spec/fixtures/listings/shared_listing_get.json
595
+ - spec/fixtures/listings/shared_listing_new.json
596
+ - spec/fixtures/listings/with_supplement.json
597
+ - spec/fixtures/listings/with_rental_calendar.json
598
+ - spec/fixtures/listings/constraints_with_pagination.json
599
+ - spec/fixtures/listings/document_index.json
600
+ - spec/fixtures/listings/virtual_tours_index.json
601
+ - spec/fixtures/listings/with_vtour.json
602
+ - spec/fixtures/listings/tour_of_homes_search.json
603
+ - spec/fixtures/listings/videos_index.json
604
+ - spec/fixtures/listings/with_permissions.json
605
+ - spec/fixtures/listings/put.json
606
+ - spec/fixtures/success.json
607
+ - spec/fixtures/standardfields/standardfields.json
608
+ - spec/fixtures/standardfields/nearby.json
609
+ - spec/fixtures/standardfields/stateorprovince.json
610
+ - spec/fixtures/standardfields/city.json
611
+ - spec/fixtures/notes/agent_shared_empty.json
568
612
  - spec/fixtures/notes/agent_shared.json
569
613
  - spec/fixtures/notes/add.json
570
- - spec/fixtures/notes/agent_shared_empty.json
571
- - spec/fixtures/base.json
572
- - spec/fixtures/generic_failure.json
573
- - spec/fixtures/session.json
614
+ - spec/fixtures/notes/new.json
574
615
  - spec/fixtures/generic_delete.json
575
- - spec/fixtures/oauth2/refresh_body.json
576
616
  - spec/fixtures/oauth2/access_with_refresh.json
577
617
  - spec/fixtures/oauth2/password_body.json
578
- - spec/fixtures/oauth2/authorization_code_body.json
618
+ - spec/fixtures/oauth2/refresh_body.json
579
619
  - spec/fixtures/oauth2/error.json
580
- - spec/fixtures/oauth2/access.json
581
620
  - spec/fixtures/oauth2/access_with_old_refresh.json
621
+ - spec/fixtures/oauth2/authorization_code_body.json
622
+ - spec/fixtures/oauth2/access.json
623
+ - spec/fixtures/oauth2_error.json
624
+ - spec/fixtures/errors/failure_with_msg.json
625
+ - spec/fixtures/errors/failure.json
626
+ - spec/fixtures/errors/expired.json
627
+ - spec/fixtures/errors/failure_with_constraint.json
628
+ - spec/fixtures/comments/get.json
629
+ - spec/fixtures/comments/post.json
630
+ - spec/fixtures/comments/new.json
631
+ - spec/fixtures/count.json
582
632
  - spec/fixtures/saved_searches/update.json
583
- - spec/fixtures/saved_searches/new.json
584
633
  - spec/fixtures/saved_searches/get.json
585
634
  - spec/fixtures/saved_searches/post.json
586
- - spec/fixtures/standardfields/nearby.json
587
- - spec/fixtures/standardfields/city.json
588
- - spec/fixtures/standardfields/stateorprovince.json
589
- - spec/fixtures/standardfields/standardfields.json
590
- - spec/fixtures/property_types/property_types.json
591
- - spec/fixtures/accounts/all.json
592
- - spec/fixtures/accounts/password_save.json
593
- - spec/fixtures/accounts/office.json
594
- - spec/fixtures/accounts/my.json
595
- - spec/fixtures/accounts/my_put.json
596
- - spec/fixtures/accounts/my_save.json
597
- - spec/fixtures/accounts/my_portal.json
598
- - spec/fixtures/success.json
599
- - spec/fixtures/empty.json
600
- - spec/fixtures/listing_carts/remove_listing.json
601
- - spec/fixtures/listing_carts/add_listing_post.json
635
+ - spec/fixtures/saved_searches/new.json
636
+ - spec/fixtures/logo_fbs.png
602
637
  - spec/fixtures/listing_carts/listing_cart.json
638
+ - spec/fixtures/listing_carts/add_listing.json
639
+ - spec/fixtures/listing_carts/add_listing_post.json
640
+ - spec/fixtures/listing_carts/remove_listing.json
603
641
  - spec/fixtures/listing_carts/empty.json
604
- - spec/fixtures/listing_carts/new.json
605
642
  - spec/fixtures/listing_carts/post.json
606
- - spec/fixtures/listing_carts/add_listing.json
607
- - spec/fixtures/authentication_failure.json
608
- - spec/fixtures/listings/put_expiration_date.json
609
- - spec/fixtures/listings/no_subresources.json
610
- - spec/fixtures/listings/rental_calendar.json
611
- - spec/fixtures/listings/shared_listing_get.json
612
- - spec/fixtures/listings/constraints_with_pagination.json
613
- - spec/fixtures/listings/with_rental_calendar.json
614
- - spec/fixtures/listings/multiple.json
615
- - spec/fixtures/listings/open_houses.json
616
- - spec/fixtures/listings/photos/new.json
617
- - spec/fixtures/listings/photos/post.json
618
- - spec/fixtures/listings/photos/index.json
619
- - spec/fixtures/listings/with_videos.json
620
- - spec/fixtures/listings/with_documents.json
621
- - spec/fixtures/listings/put.json
622
- - spec/fixtures/listings/with_permissions.json
623
- - spec/fixtures/listings/with_vtour.json
624
- - spec/fixtures/listings/tour_of_homes_search.json
625
- - spec/fixtures/listings/with_photos.json
626
- - spec/fixtures/listings/shared_listing_new.json
627
- - spec/fixtures/listings/videos_index.json
628
- - spec/fixtures/listings/with_supplement.json
629
- - spec/fixtures/listings/tour_of_homes.json
630
- - spec/fixtures/listings/shared_listing_post.json
631
- - spec/fixtures/listings/virtual_tours_index.json
632
- - spec/fixtures/listings/document_index.json
633
- - spec/fixtures/listings/constraints.json
634
- - spec/fixtures/finders.json
643
+ - spec/fixtures/listing_carts/new.json
644
+ - spec/fixtures/empty.json
645
+ - spec/fixtures/messages/new_with_recipients.json
646
+ - spec/fixtures/messages/post.json
647
+ - spec/fixtures/messages/new.json
648
+ - spec/fixtures/messages/new_empty.json
649
+ - spec/fixtures/base.json
635
650
  - spec/fixtures/notifications/notifications.json
636
- - spec/fixtures/notifications/new_empty.json
637
651
  - spec/fixtures/notifications/unread.json
638
652
  - spec/fixtures/notifications/mark_read.json
639
- - spec/fixtures/notifications/new.json
640
653
  - spec/fixtures/notifications/post.json
641
- - spec/fixtures/contacts/tags.json
642
- - spec/fixtures/contacts/my.json
643
- - spec/fixtures/contacts/new_empty.json
644
- - spec/fixtures/contacts/contacts.json
645
- - spec/fixtures/contacts/new_notify.json
646
- - spec/fixtures/contacts/new.json
647
- - spec/fixtures/contacts/post.json
648
- - spec/fixtures/messages/new_with_recipients.json
649
- - spec/fixtures/messages/new_empty.json
650
- - spec/fixtures/messages/new.json
651
- - spec/fixtures/messages/post.json
652
- - spec/fixtures/logo_fbs.png
654
+ - spec/fixtures/notifications/new.json
655
+ - spec/fixtures/notifications/new_empty.json
653
656
  - spec/unit/spark_api_spec.rb
654
- - spec/unit/spark_api/authentication/base_auth_spec.rb
655
- - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
656
- - spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb
657
- - spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
658
- - spec/unit/spark_api/authentication/oauth2_spec.rb
659
- - spec/unit/spark_api/authentication/api_auth_spec.rb
660
- - spec/unit/spark_api/authentication_spec.rb
661
- - spec/unit/spark_api/models/open_house_spec.rb
662
- - spec/unit/spark_api/models/account_spec.rb
663
- - spec/unit/spark_api/models/virtual_tour_spec.rb
664
- - spec/unit/spark_api/models/constraint_spec.rb
665
- - spec/unit/spark_api/models/notification_spec.rb
657
+ - spec/unit/spark_api/primary_array_spec.rb
658
+ - spec/unit/spark_api/options_hash_spec.rb
659
+ - spec/unit/spark_api/models/finders_spec.rb
666
660
  - spec/unit/spark_api/models/saved_search_spec.rb
667
- - spec/unit/spark_api/models/contact_spec.rb
668
- - spec/unit/spark_api/models/listing_cart_spec.rb
669
661
  - spec/unit/spark_api/models/video_spec.rb
670
- - spec/unit/spark_api/models/rental_calendar_spec.rb
671
- - spec/unit/spark_api/models/document_spec.rb
672
- - spec/unit/spark_api/models/property_types_spec.rb
673
- - spec/unit/spark_api/models/dirty_spec.rb
662
+ - spec/unit/spark_api/models/listing_cart_spec.rb
663
+ - spec/unit/spark_api/models/subresource_spec.rb
664
+ - spec/unit/spark_api/models/vow_account_spec.rb
674
665
  - spec/unit/spark_api/models/message_spec.rb
675
- - spec/unit/spark_api/models/listing_spec.rb
676
- - spec/unit/spark_api/models/subscription_spec.rb
677
666
  - spec/unit/spark_api/models/shared_listing_spec.rb
667
+ - spec/unit/spark_api/models/dirty_spec.rb
668
+ - spec/unit/spark_api/models/listing_spec.rb
669
+ - spec/unit/spark_api/models/base_spec.rb
678
670
  - spec/unit/spark_api/models/note_spec.rb
679
- - spec/unit/spark_api/models/connect_prefs_spec.rb
680
- - spec/unit/spark_api/models/concerns/destroyable_spec.rb
671
+ - spec/unit/spark_api/models/portal_spec.rb
672
+ - spec/unit/spark_api/models/system_info_spec.rb
673
+ - spec/unit/spark_api/models/account_spec.rb
674
+ - spec/unit/spark_api/models/rental_calendar_spec.rb
675
+ - spec/unit/spark_api/models/document_spec.rb
676
+ - spec/unit/spark_api/models/contact_spec.rb
677
+ - spec/unit/spark_api/models/property_types_spec.rb
681
678
  - spec/unit/spark_api/models/concerns/savable_spec.rb
682
- - spec/unit/spark_api/models/subresource_spec.rb
683
- - spec/unit/spark_api/models/photo_spec.rb
684
- - spec/unit/spark_api/models/base_spec.rb
679
+ - spec/unit/spark_api/models/concerns/destroyable_spec.rb
680
+ - spec/unit/spark_api/models/activity_spec.rb
681
+ - spec/unit/spark_api/models/virtual_tour_spec.rb
682
+ - spec/unit/spark_api/models/fields_spec.rb
685
683
  - spec/unit/spark_api/models/tour_of_home_spec.rb
686
- - spec/unit/spark_api/models/finders_spec.rb
687
- - spec/unit/spark_api/models/system_info_spec.rb
684
+ - spec/unit/spark_api/models/notification_spec.rb
685
+ - spec/unit/spark_api/models/connect_prefs_spec.rb
686
+ - spec/unit/spark_api/models/constraint_spec.rb
687
+ - spec/unit/spark_api/models/photo_spec.rb
688
688
  - spec/unit/spark_api/models/standard_fields_spec.rb
689
+ - spec/unit/spark_api/models/open_house_spec.rb
690
+ - spec/unit/spark_api/authentication_spec.rb
689
691
  - spec/unit/spark_api/faraday_middleware_spec.rb
690
- - spec/unit/spark_api/options_hash_spec.rb
691
- - spec/unit/spark_api/paginate_spec.rb
692
- - spec/unit/spark_api/primary_array_spec.rb
693
692
  - spec/unit/spark_api/configuration_spec.rb
694
- - spec/unit/spark_api/request_spec.rb
695
693
  - spec/unit/spark_api/configuration/yaml_spec.rb
696
694
  - spec/unit/spark_api/multi_client_spec.rb
695
+ - spec/unit/spark_api/authentication/base_auth_spec.rb
696
+ - spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb
697
+ - spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
698
+ - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
699
+ - spec/unit/spark_api/authentication/api_auth_spec.rb
700
+ - spec/unit/spark_api/authentication/oauth2_spec.rb
701
+ - spec/unit/spark_api/request_spec.rb
702
+ - spec/unit/spark_api/paginate_spec.rb
697
703
  - spec/spec_helper.rb
698
- - spec/oauth2_helper.rb
699
- - spec/json_helper.rb
700
- - spec/json_hash_test_support.rb
701
- - spec/mock_helper.rb