caboose-rets 0.0.72 → 0.0.73

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
- MmM1YTNiYmFhODI2ZjdkZTQ2ZmFhMzY5ZGJjNDQ1ZWMzMDAzZDA3Mg==
4
+ NjRhODE0MzQ0ZTk4MGYwMjFjYjlkYzJiMTc2NjBlZWExMTZkOGI2Ng==
5
5
  data.tar.gz: !binary |-
6
- ZTRjMDc1M2ExODFjNmQzN2FmNTU1MTVmMzIwYjU1YjA3MTE4YWU5YQ==
6
+ ZGQ0NTdmOGQ2NmQ0ZWYwMDZiZmI0ZjIwOTE0ZDY1YmIxNTc2NjUwMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWM4NGE1YjIyMDYzN2Y0MmMzZjZkZjJjODI5YjdiYWI3MzEzODFmZmUxZDNm
10
- NDM2ODQ5ZTQxNjlkOTEzMGQxZmFkMGI5NTkxYWZmM2NhYWMzMDRkOGE0NDIy
11
- YzA1OWVlMjg4ODU2MGY3ZGExZjk0YzFmNDAwY2M5OTBlOTFhM2E=
9
+ ZDNjMTNjZjM1NDk5NjRmNzQzYzE3ZDI3ODk0OTE2MzNlYTE5MDMxNDcxYjNj
10
+ Y2EyMGRhMmM0ZDkyODFlMjZkYjc0OGQ4NWU5YmVmNWRkNTBjYTY1MWYwOGQ5
11
+ MzM3MzIyOTAzMTA3ODc0MzI2ZDZlMDIxZTdlYTE4YThkMWUwNTM=
12
12
  data.tar.gz: !binary |-
13
- M2NlNmJhMDg4ZDVmN2IyNDRjYzI1MDEyYzk1ZDgxN2RiNjJjMDU2MWU5YWVm
14
- YzUyMDI1NTljZmNjNzJhZjc2ZTcwYzFlNzY1M2YwMjIzOGI1MDNhMmFlZDE2
15
- MTEyZTUwODVkNDlhNTRjYjg3ZDU4MzA3YjcxNWNjNThkODI2M2Y=
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
 
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.72'
2
+ VERSION = '0.0.73'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.72
4
+ version: 0.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry