realogy 0.5.1 → 0.5.2

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: 679a0fa71df27228dd89afcc6f0c209c9dbb8eeffe4bcedcf6cc6304083f209b
4
- data.tar.gz: 1d904f39b5acb5ed5a7498d8e3d9456dbccf9c2a470942ed0f6e5970fb94ce4f
3
+ metadata.gz: 641b9d5743a20c9aada4bba5ded41e428ad382485d89117c236b19f2469cf719
4
+ data.tar.gz: 2801ddf610d5067aedbe40d8b5cde1c15810cdbd7cb66e565a7894cf7f746b60
5
5
  SHA512:
6
- metadata.gz: b5506401e89993ccf2228fbaa424bbe2db7412505e9b4426c9edf7ce176d5dd66306a76d325aadd0cd0363ac0e6cb2985c863c841b1bc3fd3bb625b8cc178dd1
7
- data.tar.gz: 65214da3db7cd0f672ae0f27208574713eeccf181b811db77b0198b7053db7eef66362b382ad87adbc77f230696c6d84003db302c1cac2ec94ef02433922ba59
6
+ metadata.gz: 0f68fbb1982147d8f1ec201826f333e6a8b4e16bc1c02e4b5cfad481863a8a4f372e409d6013774c845a7bdf1d5bfc09258ab481d7d0decd0043d4b0d02fabb2
7
+ data.tar.gz: 89042357d716ad59572b3916f67ca7dd3bac839e615eb89a2719c19423c1243a183d8248daf96413c41198977c0712c4317e72471f71ad39b586e83144c6d837
@@ -96,13 +96,13 @@ 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["action"] rescue nil
99
+ case hash["action"]
100
100
  when "Delete"
101
101
  klass.find_by(entity_id: hash["id"]).try(:destroy)
102
102
  when "Upsert"
103
103
  hash["class"] = klass.to_s
104
104
  active_job_configured? ? PopulateRealogyEntityJob.perform_later(hash) : klass::triage(hash)
105
- end
105
+ end rescue nil
106
106
  end
107
107
  end
108
108
 
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -15,15 +15,6 @@ Gem::Specification.new do |spec|
15
15
  spec.license = "MIT"
16
16
  spec.required_ruby_version = '>= 2.4.3'
17
17
 
18
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
- # to allow pushing to a single host or delete this section to allow pushing to any host.
20
- # if spec.respond_to?(:metadata)
21
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
22
- # else
23
- # raise "RubyGems 2.0 or newer is required to protect against " \
24
- # "public gem pushes."
25
- # end
26
-
27
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
28
19
  f.match(%r{^(test|spec|features)/})
29
20
  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.5.1
4
+ version: 0.5.2
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-07 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.7.6
152
+ rubygems_version: 3.0.3
154
153
  signing_key:
155
154
  specification_version: 4
156
155
  summary: Encapsulation of Realogy's DataSync API.