reso_api 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/reso_api/app/models/reso/api/client.rb +3 -3
- data/lib/reso_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e12a31adb8cbc929ae74c0bac420887da8012d1a2b9383a4559dbf23b1bfd448
|
|
4
|
+
data.tar.gz: '09c9ef38dc896767bfd6078bab372a9f3408a5ddda293690324122c28b7abfa0'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74c3d7f5312b9aed8f39887a4e63f40e4a8a15026d50f4571015682c1932387a0836ff49c061c50f927e445a90411c08559c31bfaa34c5c5f2d4592e73d46275
|
|
7
|
+
data.tar.gz: abf99e623fc41c01d3725c4ac5cdddc0b3ffdd3e1f81024196ea48504a3ae4281109b0227626225d85533535e865506cf77557e8b2d4056f84dafa8446288b7f
|
|
@@ -112,7 +112,7 @@ module RESO
|
|
|
112
112
|
client_id,
|
|
113
113
|
client_secret,
|
|
114
114
|
token_url: auth_url,
|
|
115
|
-
scope: scope.presence
|
|
115
|
+
scope: scope.presence,
|
|
116
116
|
grant_type: "client_credentials"
|
|
117
117
|
)
|
|
118
118
|
end
|
|
@@ -131,7 +131,7 @@ module RESO
|
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
def fresh_oauth2_payload
|
|
134
|
-
@oauth2_payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope
|
|
134
|
+
@oauth2_payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope.presence)
|
|
135
135
|
File.write(oauth2_token_path, @oauth2_payload.to_hash.to_json)
|
|
136
136
|
return @oauth2_payload
|
|
137
137
|
end
|
|
@@ -149,7 +149,7 @@ module RESO
|
|
|
149
149
|
persisted = File.read(oauth2_token_path)
|
|
150
150
|
payload = OAuth2::AccessToken.from_hash(oauth2_client, JSON.parse(persisted))
|
|
151
151
|
else
|
|
152
|
-
payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope
|
|
152
|
+
payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope.presence)
|
|
153
153
|
File.write(oauth2_token_path, payload.to_hash.to_json)
|
|
154
154
|
end
|
|
155
155
|
return payload
|
data/lib/reso_api/version.rb
CHANGED
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: 1.7.
|
|
4
|
+
version: 1.7.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: 2024-04-
|
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|