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 +8 -8
- data/app/models/caboose_rets/rets_importer.rb +5 -2
- data/lib/caboose_rets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDQ5NDRlMWY2ODgxNTJmNTYyNjczN2VmYzRkODljN2ZjYjRhZjVjNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzJjZDJlYjljNjZiN2UyNjg4MTFlYWJhOTNjODI5YTAzN2VkZWU4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzYyOTc4NjkwZTY2ZDI2ODgyNWUxMTU1NWViMDQxMjNiMWFkYzBlNDczOWRl
|
10
|
+
MDExMTlkNzc4YWE4ZWRiMGRjZjhhMGZlNTE4OGRmNGUzMmZjYTVjYWFlYzYw
|
11
|
+
ODgyNTllYjIxNmVlMWE0OTlkZmZjNmE5Yjg4NjMzMmEyMWFkMDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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!(" ", "+")
|
data/lib/caboose_rets/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|