caboose-rets 0.0.72 → 0.0.73
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 +8 -8
- data/app/models/caboose_rets/rets_importer.rb +2 -1
- data/lib/caboose_rets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjRhODE0MzQ0ZTk4MGYwMjFjYjlkYzJiMTc2NjBlZWExMTZkOGI2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGQ0NTdmOGQ2NmQ0ZWYwMDZiZmI0ZjIwOTE0ZDY1YmIxNTc2NjUwMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDNjMTNjZjM1NDk5NjRmNzQzYzE3ZDI3ODk0OTE2MzNlYTE5MDMxNDcxYjNj
|
10
|
+
Y2EyMGRhMmM0ZDkyODFlMjZkYjc0OGQ4NWU5YmVmNWRkNTBjYTY1MWYwOGQ5
|
11
|
+
MzM3MzIyOTAzMTA3ODc0MzI2ZDZlMDIxZTdlYTE4YThkMWUwNTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmUyMmE1MDc3MGMwYTE2NTg3ZDRmM2Q2NTQ5YzllYzc5NjM4MDZlMWIyOGVj
|
14
|
+
ODQ5NDJlMzVmNThkY2Y3M2JiM2M5NWU1MDBhM2JmOTBmZTNkMTY3MzIyM2Rj
|
15
|
+
NWQ3MmJkNDJkN2RjOGUyYTE2NmQxNWVhMzMyY2YyZmVlNTJiOGE=
|
@@ -269,12 +269,13 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
269
269
|
def self.download_agent_image(agent)
|
270
270
|
self.log "Saving image for #{agent.first_name} #{agent.last_name}..."
|
271
271
|
begin
|
272
|
-
self.client.get_object(:resource => :Agent, :type => :Photo, :location => true, :id => agent.la_code) do |headers, content|
|
272
|
+
self.client.get_object(:resource => :Agent, :type => :Photo, :location => true, :id => agent.la_code) do |headers, content|
|
273
273
|
agent.image_location = headers['location']
|
274
274
|
agent.save
|
275
275
|
end
|
276
276
|
rescue RETS::APIError => err
|
277
277
|
self.log "No image for #{agent.first_name} #{agent.last_name}."
|
278
|
+
self.log err
|
278
279
|
end
|
279
280
|
end
|
280
281
|
|
data/lib/caboose_rets/version.rb
CHANGED