inter_api 0.1.0 → 0.1.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: c1b557a668eb322c52dae171a4ac52b78b098ef1f9b3a18583f1d67d4e6bf526
4
- data.tar.gz: 2935946dd4574822ad03916624143a04d773e0c9eeca0c96abb25effedd1fb85
3
+ metadata.gz: e75b105e99c1775c30079e2a9ce4effe000e705a21d7d1c60bc2ebd27c9c7d1c
4
+ data.tar.gz: 9e568d8e45786a71c413a536d731bd40f0d091b7807747a487d598ef5d35d34e
5
5
  SHA512:
6
- metadata.gz: 61449b97f533dfe179d2814b461709a424ca0b2e48fe9595eacb831601170d46ee797e7e4d51a3a915731a797bd816cd5d949b908550e1beda096c72319a7964
7
- data.tar.gz: f8ecbf9148def1ebab3f402a0e9d6881c6cdd6157f82f4900fe4bf02e2ab1b98c7af3ca61370a3055f3cb3891dc447acd2ec14ecab99704d1fdd006363504411
6
+ metadata.gz: e8fc8c8435f0b5b1e739629909d640efb5722464b0ed1c636e161d558b6272ab73b1b39b7959332c08aa29f8da764577533fffc75838cfef69bc44fb3913f029
7
+ data.tar.gz: fbe1956363c1327892c8393a01ce54da67fb43e9b64221a48bf663d5af7a8ad14e68e8e2d8cec0e5659b827b9f9b859d795622c8e46120cbc5765290dbdbb505
@@ -12,7 +12,7 @@ module InterApi
12
12
  @conta_corrente = conta_corrente
13
13
  @token = token
14
14
  @token_expires_at = token_expires_at
15
- if @token.nil? || @token_expires_at.nil?
15
+ if @token.nil? || @token_expires_at < Time.now
16
16
  authenticate!
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InterApi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.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: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses