reso_api 0.5.2 → 0.5.5

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: bb4efcbd6e142b91dc5db82ab6391f768acfe72018c3a6a1f28f94add767aeb6
4
- data.tar.gz: 196b5b3ae73192acb4c6d30f974c6a232487115ba4eaa146c2c9b5d1a610328f
3
+ metadata.gz: 7ed9347d7eb406dabae26687fe46f0bfc933fe3b3b8ed192a149ba22e864a763
4
+ data.tar.gz: f6b49eb08938c136cbb10d0f01c70d8e7412c4f2e8fe63d2773ef52e53b224c2
5
5
  SHA512:
6
- metadata.gz: 53f38b2ab327a82f32ab5296ffad4698f8f3e304557becda120c3010ab40e52a4db923d49ef26e914366e0d210d749baa84b7f3a1b7300d0bedfb43d8c7ca8e2
7
- data.tar.gz: 3ab0add11e6b7b6adbf25c8cebe4203cead5e74b5276f83fe121df34d100224aefb05ababbcb5f9eb7c20a1f64c38e0ee669b908ce90b24cd446081a5d74c07c
6
+ metadata.gz: 26d274666242b196d8fae5e6d8b53533fc07e68d6b5c8165b675a99f977b7cca7f8fb135fcba9742bf11bfe8f6f43c48e7ca11d867ce24f10ce2955f7a941402
7
+ data.tar.gz: 444b122035ff51ea71014b9f09e6400572d6262b89f24dd98f30cebda3faf8b62a418382ed982b032c3d63ad354d5806edcfe6787a73d20bdd4b9364f778d5e2
@@ -61,6 +61,7 @@ module RESO
61
61
  "$skiptoken": hash[:skiptoken],
62
62
  "$expand": hash[:expand],
63
63
  "$count": hash[:count].to_s.presence,
64
+ "$ignorenulls": hash[:ignorenulls],
64
65
  "$debug": hash[:debug]
65
66
  }.compact
66
67
  if !block.nil?
@@ -85,6 +86,7 @@ module RESO
85
86
  end
86
87
  end
87
88
  end
89
+ threads.each(&:join)
88
90
  else
89
91
  return perform_call(endpoint, params)
90
92
  end
@@ -129,7 +131,7 @@ module RESO
129
131
  end
130
132
 
131
133
  def fresh_oauth2_payload
132
- @oauth2_payload = oauth2_client.client_credentials.get_token
134
+ @oauth2_payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret)
133
135
  File.write(oauth2_token_path, @oauth2_payload.to_hash.to_json)
134
136
  return @oauth2_payload
135
137
  end
@@ -147,7 +149,7 @@ module RESO
147
149
  persisted = File.read(oauth2_token_path)
148
150
  payload = OAuth2::AccessToken.from_hash(oauth2_client, JSON.parse(persisted))
149
151
  else
150
- payload = oauth2_client.client_credentials.get_token
152
+ payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret)
151
153
  File.write(oauth2_token_path, payload.to_hash.to_json)
152
154
  end
153
155
  return payload
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler