reso_api 1.7.1 → 1.7.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: 5babf97fd51193ebd80b33651871b83e12749395760c5d4db13d3232ebee4548
4
- data.tar.gz: dfd4f7f31c5273d01d6b5084ed42aadeb9784903891074c9adaaed26ab3e3a52
3
+ metadata.gz: e12a31adb8cbc929ae74c0bac420887da8012d1a2b9383a4559dbf23b1bfd448
4
+ data.tar.gz: '09c9ef38dc896767bfd6078bab372a9f3408a5ddda293690324122c28b7abfa0'
5
5
  SHA512:
6
- metadata.gz: 756f59ac0272091ee42faa06cd76d4ddfa3212cf07cbe0ec373f0a523afe9aaeb659b0a83496863f77473aa89a0dc3185f67dd3de3c18fb5dacff685837e7a2b
7
- data.tar.gz: ace0e14e850638bb71741290fc48dea35210d8102b65fda5f01e1b710c2ebae705ea43a6b7c4a726a559e584fb946b707ff52aa73aebbdb571bf9fd0a0f224ca
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 || "api",
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 || "api")
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 || "api")
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
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
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: 1.7.1
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-17 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler