spark_api 1.4.16 → 1.4.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/spark_api/models/listing.rb +1 -1
- data/spec/unit/spark_api/models/listing_spec.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjRjMWMwOTI0Y2RiNGI2ZGM0NWE5YzUyNjdkOTMxOTIwY2FmNWE1YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWI5Y2FjZjY0MTkxZmZhMGI3ZGRhNDJmZjY0YTE4ZjAyYTdiMjViOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDhjZmYwZjlmZDZjN2E2Y2UyMWIxNjQyNzNlMmU4MmY1NWYzNmQ4NWU2YWEx
|
10
|
+
YTUyYmYwNjNiOTgxNTU1N2I1MjYzYTI4MGFmMDYxZWNiNDZkODEzZjJhNmIz
|
11
|
+
MmQ3M2ZkODNmNTQyYWU4MWIzOTIxNTQ0MDk3ZDQxYmY5NDQxYmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTVmOTU3Mjk3MzUxYzVjMDIzZTk4MGIyMWE4Yzg4MzFiMWRiM2M5Yzg2ZDJi
|
14
|
+
OWQ1ZDA2MzlhNmY2MDEwYTA3NDJjYmNiMTdiZjU3YzY0NzA2MTAxODZlNmFm
|
15
|
+
Y2RlYzUzNzU4MDEwYjE1NmFhMjVlOTZmNjQ2NTM3YzZlYTdmNTk=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.17
|
@@ -166,7 +166,7 @@ module SparkApi
|
|
166
166
|
if writable_changed_keys.empty?
|
167
167
|
SparkApi.logger.warn { "No supported listing change detected" }
|
168
168
|
else
|
169
|
-
results = connection.put "#{self.class.path}/#{self.Id}", build_hash(writable_changed_keys), arguments
|
169
|
+
results = connection.put "/flexmls#{self.class.path}/#{self.Id}", build_hash(writable_changed_keys), arguments
|
170
170
|
@contstraints = []
|
171
171
|
results.details.each do |detail|
|
172
172
|
detail.each_pair do |k,v|
|
@@ -197,7 +197,7 @@ describe Listing do
|
|
197
197
|
on_put_it "should save a listing that has modified ListPrice" do
|
198
198
|
list_id = "20060725224713296297000000"
|
199
199
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
200
|
-
stub_api_put("/listings/#{list_id}", 'listings/put.json', 'success.json')
|
200
|
+
stub_api_put("/flexmls/listings/#{list_id}", 'listings/put.json', 'success.json')
|
201
201
|
l = Listing.find(list_id)
|
202
202
|
l.ListPrice = 10000.0
|
203
203
|
l.save.should be(true)
|
@@ -206,7 +206,7 @@ describe Listing do
|
|
206
206
|
on_put_it "should save a listing that has modified ExpirationDate" do
|
207
207
|
list_id = "20060725224713296297000000"
|
208
208
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
209
|
-
stub_api_put("/listings/#{list_id}", 'listings/put_expiration_date.json', 'success.json')
|
209
|
+
stub_api_put("/flexmls/listings/#{list_id}", 'listings/put_expiration_date.json', 'success.json')
|
210
210
|
l = Listing.find(list_id)
|
211
211
|
l.ExpirationDate = "2011-10-04"
|
212
212
|
l.save.should be(true)
|
@@ -215,7 +215,7 @@ describe Listing do
|
|
215
215
|
it "should not save a listing that does not exist", :method => 'PUT' do
|
216
216
|
list_id = "20060725224713296297000000"
|
217
217
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
218
|
-
stub_api_put("/listings/lolwut", 'listings/put.json') do |request|
|
218
|
+
stub_api_put("/flexmls/listings/lolwut", 'listings/put.json') do |request|
|
219
219
|
request.to_return(:status => 400, :body => fixture('errors/failure.json'))
|
220
220
|
end
|
221
221
|
l = Listing.find(list_id)
|
@@ -228,7 +228,7 @@ describe Listing do
|
|
228
228
|
on_put_it "should save a listing with constraints" do
|
229
229
|
list_id = "20060725224713296297000000"
|
230
230
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
231
|
-
stub_api_put("/listings/#{list_id}", 'listings/put.json', 'listings/constraints.json')
|
231
|
+
stub_api_put("/flexmls/listings/#{list_id}", 'listings/put.json', 'listings/constraints.json')
|
232
232
|
l = Listing.find(list_id)
|
233
233
|
l.ListPrice = 10000.0
|
234
234
|
l.save.should be(true)
|
@@ -239,7 +239,7 @@ describe Listing do
|
|
239
239
|
on_put_it "should fail saving a listing with constraints and provide the constraints" do
|
240
240
|
list_id = "20060725224713296297000000"
|
241
241
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
242
|
-
stub_api_put("/listings/#{list_id}", 'listings/put.json') do |request|
|
242
|
+
stub_api_put("/flexmls/listings/#{list_id}", 'listings/put.json') do |request|
|
243
243
|
request.to_return(:status => 400, :body => fixture('errors/failure_with_constraint.json'))
|
244
244
|
end
|
245
245
|
|
@@ -274,7 +274,7 @@ describe Listing do
|
|
274
274
|
on_put_it "should save a listing with constraints" do
|
275
275
|
list_id = "20060725224713296297000000"
|
276
276
|
stub_api_get("/listings/#{list_id}", 'listings/no_subresources.json')
|
277
|
-
stub_api_put("/listings/#{list_id}", 'listings/put.json', 'listings/constraints_with_pagination.json', :_pagination => '1')
|
277
|
+
stub_api_put("/flexmls/listings/#{list_id}", 'listings/put.json', 'listings/constraints_with_pagination.json', :_pagination => '1')
|
278
278
|
l = Listing.find(list_id)
|
279
279
|
l.ListPrice = 10000.0
|
280
280
|
l.save(:_pagination => '1').should be(true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spark_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hornseth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-11-
|
12
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|