you_got_listed 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/you_got_listed/listings.rb +2 -1
- data/lib/you_got_listed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66466382b41ee880d81644e4a372b1b96601215c
|
|
4
|
+
data.tar.gz: 371bc364115c8edc7204b156c0723dcbf7ca12be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f6e88a245403d0fbbd79dd1ea888a7084c1f8e5f17619e796365f45d4aa73b10cb1ce9419fd5d257e8127bb79d84940c732281a4e6095d98d482f8622efd78a
|
|
7
|
+
data.tar.gz: 66a1c390fe2f7bfd5919a4f91a8410895632d2bb934c1081dd6a0da309c3e75e907315fdd8cc7d19b69fb6b676335a65165675de5abda3fe8a78a0f67e207291
|
|
@@ -20,7 +20,8 @@ module YouGotListed
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def find_by_id(listing_id)
|
|
23
|
-
|
|
23
|
+
listing_id_key = listing_id.to_s.match(/7\d{7}/) ? :external_id : :listing_id
|
|
24
|
+
params = {listing_id_key => listing_id, :detail_level => 2}
|
|
24
25
|
response = SearchResponse.new(self.client.perform_request(:get, '/rentals/search.php', params), self.client, 20)
|
|
25
26
|
(response.success? && response.properties.size > 0) ? response.properties.first : nil
|
|
26
27
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: you_got_listed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Cocca
|
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
188
|
version: '0'
|
|
189
189
|
requirements: []
|
|
190
190
|
rubyforge_project:
|
|
191
|
-
rubygems_version: 2.
|
|
191
|
+
rubygems_version: 2.4.8
|
|
192
192
|
signing_key:
|
|
193
193
|
specification_version: 4
|
|
194
194
|
summary: ruby api wrapper for you got listings
|