caboose-rets 0.0.85 → 0.0.86

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTdiZmZhOTlkMGYxNjU2NjExYzM5MDU5YmVkOTk3YTUwYmM5MDQzYQ==
4
+ NDQ5NDRlMWY2ODgxNTJmNTYyNjczN2VmYzRkODljN2ZjYjRhZjVjNA==
5
5
  data.tar.gz: !binary |-
6
- ZTBhZDM2Y2ZmZDI4YzQ3ZjExZDFjYjMyM2VkZDYzMzEzYWViOTZiYQ==
6
+ NzJjZDJlYjljNjZiN2UyNjg4MTFlYWJhOTNjODI5YTAzN2VkZWU4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjFkMzU3YzhhNjdjMGZmYmQ3ZTY4YTUyYmE1ZTMyMjYwMTI1Mjk3MmZiZDNh
10
- YmUxNjkyYzg3YzI0ZTkzMTk0Y2FkZDVjZjhiODA0N2JmMjAwMjhhOTk5ZDc2
11
- Nzc4MjIyZWM0NTIyMjliMWUyM2E4Y2Y4YTQyZDU2YjFiMjBhOTc=
9
+ MzYyOTc4NjkwZTY2ZDI2ODgyNWUxMTU1NWViMDQxMjNiMWFkYzBlNDczOWRl
10
+ MDExMTlkNzc4YWE4ZWRiMGRjZjhhMGZlNTE4OGRmNGUzMmZjYTVjYWFlYzYw
11
+ ODgyNTllYjIxNmVlMWE0OTlkZmZjNmE5Yjg4NjMzMmEyMWFkMDM=
12
12
  data.tar.gz: !binary |-
13
- YmE1ZmFiMTk5YTM0NGY4NDE2OTJlYmU1ZDY1YTZhY2M3NjUwODJlMTZlZDFk
14
- YWM5NjNkMGI5NTkxMTE1MzY1ODQ0ZjE2NzUxMjFjZjhkMjQwMDIxM2YyYTM0
15
- MzFmODQzZTVhNmYxNGFmODI5MmJkZmM1MmIwZDc2ZDAwZmM4MTY=
13
+ OTJlYTJjNGNjNWI5MjhhZWVhNGIzZWU5ZmI2ODU0NGY1NTkyYWQwNWRkNmUx
14
+ ZmFlYjlhZTViYmFlMmE5MmE0YTlhOTkwZDAxOGY2ZTgwYTEwNmIxOWYxZWJl
15
+ NWFiOGM0OWU4MWI5YjdkNjcxMzRmYjBjODViYWVhNDUxY2RiNmI=
@@ -303,7 +303,10 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
303
303
 
304
304
  self.log "Getting coords for mls_acct #{p.mls_acct}..."
305
305
  coords = self.coords_from_address(CGI::escape "#{p.street_num} #{p.street_name}, #{p.city}, #{p.state} #{p.zip}")
306
- return if coords.nil? || coords == false
306
+ if coords.nil? || coords == false
307
+ self.log "Can't set coords for mls acct #{p.mls_acct}..."
308
+ return
309
+ end
307
310
 
308
311
  p.latitude = coords['lat']
309
312
  p.longitude = coords['lng']
@@ -311,7 +314,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
311
314
  end
312
315
 
313
316
  def self.coords_from_address(address)
314
- return false
317
+ #return false
315
318
  begin
316
319
  uri = "https://maps.googleapis.com/maps/api/geocode/json?address=#{address}&sensor=false"
317
320
  uri.gsub!(" ", "+")
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.85'
2
+ VERSION = '0.0.86'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.85
4
+ version: 0.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-17 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms