you_got_listed 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 423ab00128d1ff55c76e7ac8d99951ffe2024471
4
- data.tar.gz: b5bbfa538ebb3be2c3bae92ccfa93e0db76c5a7c
3
+ metadata.gz: 66466382b41ee880d81644e4a372b1b96601215c
4
+ data.tar.gz: 371bc364115c8edc7204b156c0723dcbf7ca12be
5
5
  SHA512:
6
- metadata.gz: 86b53b015d6935ea48baf7558c25c723edbaff937080fce0b811e3e5998af48a9c3bc6db87a9976da896bd890b49a30bb07bf589fb72e271f8fd6fc82f9cf20f
7
- data.tar.gz: fc3d69472c3ef8da166553526336f23640ebb7bc2c1a7396ddec320bc35a0c3df87ac7a8a9890c7162af315bdab18cc59925ad9805c408054d947475b399c921
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
- params = {:listing_id => listing_id, :detail_level => 2}
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
@@ -1,3 +1,3 @@
1
1
  module YouGotListed
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  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.5
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.2.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