realogy 0.4.9 → 0.5.0

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
  SHA256:
3
- metadata.gz: 7bec6230937a995d57c4111fccefd7b29f63ece731b76293b2cc5b71bda6640a
4
- data.tar.gz: f363406aac4a920473fc2890390e89de2bd3d8019cf383859311369ce60cc756
3
+ metadata.gz: 1956befe99186c0f690a6062cf336f36f3327d74b7c6f0514d7703bc4b420ce7
4
+ data.tar.gz: 1b04a0019d39011bec511cfe33a801efb38f6459e88c9cee566e442e630a173a
5
5
  SHA512:
6
- metadata.gz: a23ff2a809ce77c478d42d3bb4c30737acb5fc3164b66dc4539422a9ba29777dbefb61fda4d013a83804aff6f0611341a02e77dc64546ced8d76ded0079241df
7
- data.tar.gz: 9a1288277a89ad863aeb2e7e5a75db8af9139badd5db6d4e3abac14140cd7db063fa6782b1ab10660cef43e7e6f5f9d24bc6f7bbcba974f5d1ec57adff944f16
6
+ metadata.gz: c4d31c97eba0d008cba5c976a777a2dcaf1f5524fad8d11dc33f5af919d363d7a004f1ad27529ef94a8fa59d8ebe318770b0c2d979b52a0f8ef0e21f340f3f06
7
+ data.tar.gz: ec22c1fa02006a364062d821641a844e34255ffa0dd6bbe70bde0503c3362dd295be946c9fca1920bf9efbcb074c05662a75da36275041ac388b1dbce63f72ce
@@ -96,7 +96,7 @@ namespace :realogy do
96
96
  return unless %w(agents companies listings offices teams).include?(plural = klass.to_s.tableize.split("/").last)
97
97
  call = "get_#{plural}_delta".to_sym
98
98
  Realogy::DataSync.client.send(call, {since: since.to_i.minutes.ago}).each do |hash|
99
- case Hash(hash["action"])
99
+ case hash["action"] rescue nil
100
100
  when "Delete"
101
101
  klass.find_by(entity_id: hash["id"]).try(:destroy)
102
102
  when "Upsert"
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-05 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler