toke 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 281ff314c6511cbb27781fa356002af02717c842
4
- data.tar.gz: d8ebc9bd4a38134c121a357876dd13d5685934f6
3
+ metadata.gz: 42957361adcf8f61417fbdfe47967d4627d38d4f
4
+ data.tar.gz: 1827400b48c93a1d90ba7433cf2cc325ded06c99
5
5
  SHA512:
6
- metadata.gz: acb6086480e2f1aabb853e0464d6accdb16f51336a468cb57f155405decfe291b883c7cd099ee24635f61223659ab21373709c903d350b271b1223f6b880d9ca
7
- data.tar.gz: 2bc737a73d5d49df8901ebdf22600d54f79fe3988c9c23866ca0554db884bdab585d2623738f0bc0abacab755cea4f34e91501c540c1a676fb5eb3d2b21b32a9
6
+ metadata.gz: a6bbea6d2dd4b21c21bb6cb09462fa9a9d3e76f3c87615fa9628e12eda33a9cbd9b94104974709f975b8dd29f26e3597135123059d4aaa3d16389d6cb9647427
7
+ data.tar.gz: 6778765b132c7fa45f7ccba07566c5438f5f11a39fcc3535e38190f8c434f17268f15f67e1e9f9f5852db743377d9fb4be94987dd0427fb19e32cbbecc663925
data/README.md CHANGED
@@ -18,23 +18,12 @@ Run Specs
18
18
 
19
19
  ### Regenerating VCR Cassettes
20
20
 
21
- In order to regenerate vcr cassettes, the following items must be provided:
21
+ Check `config/dotenv/test.env` for the required keys.
22
22
 
23
- * client id
24
- * client secret
25
- * refresh token
23
+ Follow the instructions [here][atv-wiki-google-api-key]
24
+ to find the required values.
26
25
 
27
- Follow the instructions [here][atv-wiki-google-api-key] to find these values.
28
-
29
- Place them in a file named `.env` in the root of the project
30
-
31
- The `.env` contents should look something like this:
32
-
33
- ```
34
- REFRESH_TOKEN= [refresh token]
35
- CLIENT_ID= [client id]
36
- CLIENT_SECRET= [client secret]
37
- ```
26
+ Place them in `config/dotenv/integration.env`.
38
27
 
39
28
 
40
29
  Interface
@@ -9,7 +9,7 @@ module Toke
9
9
  end
10
10
 
11
11
  def expired?
12
- Time.now > @created_at + expires - 1
12
+ Time.now > @created_at + expires - (expires / 12)
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Herrick
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-10 00:00:00.000000000 Z
12
+ date: 2015-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: reverb