realogy 0.5.3 → 0.6.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: 0b83f4c2a75ace508128bd9bc77d11d436bf83cc7e2566d20519a64dda0f146f
4
- data.tar.gz: 7ed7fdc9d89b271bdbba9526c01616866a0d17691e675ab4e7fc02a65d90be04
3
+ metadata.gz: cd7ef6df4687d14ecd5f52c86533588c914184f0a9c3d68c78432d2ea5946aca
4
+ data.tar.gz: 5a4ad93bc7453b08427c0de9bce3231809915e6ba2e9d557e62bd5861b3fc266
5
5
  SHA512:
6
- metadata.gz: 2bd83a183edba08db2db4cd9ed37c9c46295c326933f7b97d155b192d2f8a05c2af68023e0d5f8a931a7c66ed8cbc97c3bb3d18fe2d3ca397b6305639d16c65d
7
- data.tar.gz: 384d6daba682980791849a39916f5c5d9e2e3f265b24b4f177d7598b030eaf725e9702875303d05c5c18fef28bc72a50d67d8401eb73670c82fdbb5c7644e175
6
+ metadata.gz: f43e3d9c6bb73e924a74d0788d116b81caee67a42d924a20c7f9f54217fd00b5934486bf618a8b2fb6f1733099881093c302945678ff0a9f034227dc65081372
7
+ data.tar.gz: 7020419b4f767b7ad66cb5a4de2c2624db5f2fd8909d98431032b30da2db3f5f93fe4521c820eb35d2f37d3c1f42b5387bf1a34cd3a9fb06be5cd31611c04e4c
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,70 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ realogy (0.5.9)
5
+ activerecord (>= 5.0)
6
+ oauth2
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (7.0.2.3)
12
+ activesupport (= 7.0.2.3)
13
+ activerecord (7.0.2.3)
14
+ activemodel (= 7.0.2.3)
15
+ activesupport (= 7.0.2.3)
16
+ activesupport (7.0.2.3)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ concurrent-ruby (1.1.9)
22
+ diff-lcs (1.5.0)
23
+ faraday (2.2.0)
24
+ faraday-net_http (~> 2.0)
25
+ ruby2_keywords (>= 0.0.4)
26
+ faraday-net_http (2.0.1)
27
+ i18n (1.10.0)
28
+ concurrent-ruby (~> 1.0)
29
+ jwt (2.3.0)
30
+ minitest (5.15.0)
31
+ multi_json (1.15.0)
32
+ multi_xml (0.6.0)
33
+ oauth2 (1.4.9)
34
+ faraday (>= 0.17.3, < 3.0)
35
+ jwt (>= 1.0, < 3.0)
36
+ multi_json (~> 1.3)
37
+ multi_xml (~> 0.5)
38
+ rack (>= 1.2, < 3)
39
+ rack (2.2.3)
40
+ rake (13.0.6)
41
+ rspec (3.11.0)
42
+ rspec-core (~> 3.11.0)
43
+ rspec-expectations (~> 3.11.0)
44
+ rspec-mocks (~> 3.11.0)
45
+ rspec-core (3.11.0)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-expectations (3.11.0)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-mocks (3.11.0)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.11.0)
53
+ rspec-support (3.11.0)
54
+ ruby2_keywords (0.0.5)
55
+ sqlite3 (1.4.2)
56
+ tzinfo (2.0.4)
57
+ concurrent-ruby (~> 1.0)
58
+
59
+ PLATFORMS
60
+ arm64-darwin-21
61
+
62
+ DEPENDENCIES
63
+ bundler (~> 2.3)
64
+ rake (>= 12.3.3)
65
+ realogy!
66
+ rspec (~> 3.0)
67
+ sqlite3
68
+
69
+ BUNDLED WITH
70
+ 2.3.7
@@ -43,7 +43,7 @@ module Realogy
43
43
 
44
44
  ACTIVE_API_ENDPOINTS.keys.each do |method_name|
45
45
  define_method method_name do |*args|
46
- hash = args.first.is_a?(Hash) ? args.first : {}
46
+ hash = args.first.is_a?(::Hash) ? args.first : {}
47
47
  endpoint = ACTIVE_API_ENDPOINTS[method_name]
48
48
  params = {
49
49
  'brandCode': hash[:brandCode],
@@ -56,7 +56,7 @@ module Realogy
56
56
  DELTA_API_ENDPOINTS.keys.each do |method_name|
57
57
  define_method method_name do |*args|
58
58
  entities = []
59
- hash = args.first.is_a?(Hash) ? args.first : {since: 15.minutes.ago}
59
+ hash = args.first.is_a?(::Hash) ? args.first : {since: 15.minutes.ago}
60
60
  params = {'since': JSON[hash[:since].to_json]}
61
61
  endpoint = DELTA_API_ENDPOINTS[method_name]
62
62
  response = perform_api_call(endpoint, params)
@@ -163,7 +163,7 @@ class Realogy::Agent < Realogy::Entity
163
163
  # lastUpdateOn : DateTime
164
164
  # The date/time that the Agent record was last updated in the system (UTC)
165
165
 
166
- def last_update_on
166
+ def last_updated
167
167
  self.dig_for_datetime("lastUpdateOn")
168
168
  end
169
169
 
@@ -58,7 +58,7 @@ class Realogy::Company < Realogy::Entity
58
58
  # lastUpdateOn : DateTime
59
59
  # The date/time that the Company record was last updated in the system (UTC)
60
60
 
61
- def last_update_on
61
+ def last_updated
62
62
  self.dig_for_datetime("companySummary", "lastUpdateOn")
63
63
  end
64
64
 
@@ -887,7 +887,7 @@ class Realogy::Listing < Realogy::Entity
887
887
  # lastUpdateOn : DateTime
888
888
  # Timestamp when the listing was last updated at Realogy system
889
889
 
890
- def last_update_on
890
+ def last_updated
891
891
  self.dig_for_datetime("listingSummary", "lastUpdateOn")
892
892
  end
893
893
 
@@ -136,7 +136,7 @@ class Realogy::Office < Realogy::Entity
136
136
  # lastUpdateOn : DateTime
137
137
  # The date/time that the Office record was last updated in the system (UTC)
138
138
 
139
- def last_update_on
139
+ def last_updated
140
140
  self.dig_for_datetime("lastUpdateOn")
141
141
  end
142
142
 
@@ -44,7 +44,7 @@ class Realogy::Team < Realogy::Entity
44
44
  # lastUpdateOn : Datetime
45
45
  # The date/time in UTC when the team was last updated
46
46
 
47
- def last_update_on
47
+ def last_updated
48
48
  self.dig_for_datetime("lastUpdateOn")
49
49
  end
50
50
 
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.5.3"
2
+ VERSION = "0.6.0"
3
3
  end
data/realogy.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.14"
25
+ spec.add_development_dependency "bundler", "~> 2.3"
26
26
  spec.add_development_dependency "rake", ">= 12.3.3"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
  spec.add_development_dependency 'sqlite3'
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.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '2.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - ".travis.yml"
108
108
  - CODE_OF_CONDUCT.md
109
109
  - Gemfile
110
+ - Gemfile.lock
110
111
  - LICENSE.txt
111
112
  - README.md
112
113
  - Rakefile
@@ -134,7 +135,7 @@ homepage: https://github.com/arcticleo/realogy
134
135
  licenses:
135
136
  - MIT
136
137
  metadata: {}
137
- post_install_message:
138
+ post_install_message:
138
139
  rdoc_options: []
139
140
  require_paths:
140
141
  - lib
@@ -149,8 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
150
  - !ruby/object:Gem::Version
150
151
  version: '0'
151
152
  requirements: []
152
- rubygems_version: 3.0.6
153
- signing_key:
153
+ rubygems_version: 3.3.7
154
+ signing_key:
154
155
  specification_version: 4
155
156
  summary: Encapsulation of Realogy's DataSync API.
156
157
  test_files: []