tml 4.3.8 → 4.3.9

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: 48d0f38ec48a97068f472083a436e475acc64755
4
- data.tar.gz: 8877fd7031ff8471a4ea36ed5996c6773d5526c9
3
+ metadata.gz: a766ff87d61d364fb1f5296ee8db8a7bee43a07c
4
+ data.tar.gz: 526bc06c8fc67615ea4367a2a8c271f4fe18d246
5
5
  SHA512:
6
- metadata.gz: 5350c4b99a3301d8534832ba3baf7c0481200ffbf6be6d85180a4c3a93439114be7fd8307a038a357905678371fff099247fa8e561f8504424fccea45f37216a
7
- data.tar.gz: c9861cf3b9ed4c8b416e0a97630005643bfe011e4e02c815f79821705e869a50a5a911f83ce95a562d4ecf12f36aaf573bfe81d17c308f9d5742ca348ec29d3a
6
+ metadata.gz: bf6b37af75c30ca3e074ff60184df0fb187cbaa4bf65c5833c7fa8115b8ecdb66782e404cb82c96feb1eec464ae59f317f4f97242df42dc8d6fde09d499d7fa2
7
+ data.tar.gz: f66818fce6aea3bea1791ca49834202dedbc3520abfafbc98f581b89d6a3d3e58f7486907ffd96a718d53725a597c7800cde1ed7c88af5894150433defc3bba6
@@ -39,19 +39,7 @@ class Tml::Api::Client < Tml::Base
39
39
  attributes :application
40
40
 
41
41
  def access_token
42
- return Tml::Session.access_token if Tml::Session.access_token
43
-
44
- application.access_token ||= begin
45
- token = Tml.cache.fetch("#{application.key}/access_token") do
46
- api('oauth/token', {
47
- :client_id => application.key,
48
- :client_secret => application.secret,
49
- :grant_type => :client_credentials
50
- }, {:method => :post})
51
- end
52
- Tml::Session.access_token = token['access_token']
53
- Tml::Session.access_token
54
- end
42
+ Tml.config.application[:token] || Tml.config.application[:access_token]
55
43
  end
56
44
 
57
45
  def results(path, params = {}, opts = {})
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module Tml
33
- VERSION = '4.3.8'
33
+ VERSION = '4.3.9'
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.8
4
+ version: 4.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich