inter_api 1.0.0 → 1.0.1

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: 7d5f6fc8f0c865245fb46a56496a0e07fb84ed9356eba8d8e2c1452328f9b31c
4
- data.tar.gz: 52fe4344029ddad08bf03b37d1447a205ffcf15df42bf6c0ee273c2da08bcd8f
3
+ metadata.gz: '00359604a49c1e13d27dc95669f21d4de43530b5d1101d0945cb5c33d90517f0'
4
+ data.tar.gz: 6c7565195e26b407c1a0bb08a0a2188da5fe1f04b20c85319b4a9aca5ef16cd6
5
5
  SHA512:
6
- metadata.gz: 2be3f61081009a61c397ad83dda3b4f8eb1aa5c29d44a72adcc6349183cb3b3134db20df9239b3e7f213bfbaab602d6846ed5b5e91db53ed0f69a8ab689c3cad
7
- data.tar.gz: 58c3a068df908ab197bd58f4a153235a7dee9d53a56ee78324e92e4f3963a171ab5dd612f7cee31f2b683c3c6e064588955a2ebfea7d0d205ffabebe3ce86fa6
6
+ metadata.gz: 0b91d9df2cd30a8c8109f02fe4676618c817df5599cefceb25178656565dc8da277766f9196ba633760c4f918c6ef350c2cba7e6906857b8dc34f515a4184af1
7
+ data.tar.gz: c5f479d4773e988e80a5de2eaa8565c45142b8a062e44c073f09a43b0622ae02590964af25857c929f49dc33a78a236a99f26906cf3b6c199c2298b1e2ec2a0c
@@ -30,7 +30,7 @@ module InterApi
30
30
  grant_type: "client_credentials",
31
31
  scope: @scopes
32
32
  }
33
- response = post("/oauth/v2/token", headers: headers, sslcert: @crt, sslkey: @key, body: body)
33
+ response = post("/oauth/v2/token", headers: headers, sslcert: @crt, sslkey: @key, body: body) { |response| validate_response(response, "access_token") }
34
34
  @token = response.json["access_token"]
35
35
  @token_expires_at = Time.now + response.json["expires_in"]
36
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InterApi
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inter_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses