bing_translator 6.0.0.beta.1 → 6.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bing_translator.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9106de975569bef3303a4940318a78b536beaf10
4
- data.tar.gz: e40c556e6f474d185b74f6753635a448720600f6
3
+ metadata.gz: d46d0c11d36adefea9e077d6b8c78fcf6ee8b788
4
+ data.tar.gz: d4dcc6a92b38bbf5c2795eee9876214295c407f2
5
5
  SHA512:
6
- metadata.gz: 8b84d0f6c1b4a405ee631221a961f8e5462c7de1b0ca3eb26b0f0b2dc105e3b0e8ac19c085c8de320191a66895af313fc1b1f718f81b13505a6b31ab8a20108c
7
- data.tar.gz: c22b944db83f5b437b9fa56e8df83da1bd69f7b81f9ef65dedb51a66d82c79714fba29701da46a6bd1b027e56ff69e54f3e5c21bddfccacddfadd3daa252e3a4
6
+ metadata.gz: 82757d3c05fe37868a4b583632e04c0e7c9a5c3e8a47dae99149bf41545a057003deb36bf2e981e28a26c56f4dea5a72166e65c5b9582a546656ac5eae564a7d
7
+ data.tar.gz: bd065f82f1d75f4813c6e13d3a8a3fdd5a06c62d62e4a113b7e0643f202e51fe36dc4fa7d682d795c2cb453ff29bb0f4cb026b9cd09aceaf27df0f1492379851
@@ -70,7 +70,7 @@ class BingTranslator
70
70
  end
71
71
 
72
72
  def access_token
73
- if @access_token.nil? || Time.now < @access_token_expiration_time
73
+ if @access_token.nil? || Time.now >= @access_token_expiration_time
74
74
  @access_token = request_new_access_token
75
75
  end
76
76
  @access_token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bing_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.beta.1
4
+ version: 6.0.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricky Elrod