adsk_auth_service 1.0.9 → 1.0.10

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: 3f4ace5fdebe4713e83f92866b7bbae6067f4c5a
4
- data.tar.gz: f6a2ae6eb25711ce44f51ce826dbca4ddc3fa825
3
+ metadata.gz: e96a5d67b65cbbc45ea74b9275a5347ebe153073
4
+ data.tar.gz: 925e22e461823f7bcb18faa6701821e016a5ebc8
5
5
  SHA512:
6
- metadata.gz: 5e77710b7e75a8c9fc5baa6813b859a07a7525086d9cb2bb2ced2bdadab721bbad27b2789952b26ec464001b0e48a0a3ae38d1d539d5399e871eb00cd26ffccb
7
- data.tar.gz: 6ebf7a5859c172a9505e268d05b7ebb4c8ae7796031087f82a20d6b6c5671c770925e353b9104edcbe901ab6bab311b54351c06225af6a25aaed0eda29fb4932
6
+ metadata.gz: 85358fe02a0ef537f64077c036bd7ea406febcf53c5677a3980835d0a6cf785e68dc63565a4a0da4808f7fabfc6e0d4124d2e5fdd21bfb39a7631af6cdae23a7
7
+ data.tar.gz: 49dba64082790e573d0011c879623c032612448f7e785af2001254a3b731c90d3808f026549e7e4d953c68f1e545e90ec9a1bc41f0c96fdbf49cbbbf0d2aa83c
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'adsk_auth_service'
3
- s.version = '1.0.9'
3
+ s.version = '1.0.10'
4
4
  s.summary = "Autodesk second phase token retrieval"
5
5
  s.description = "A gem for Autodesk 2-phase authentication service."
6
6
  s.authors = ['Linh Chau']
@@ -9,13 +9,12 @@ class AuthService
9
9
  end
10
10
 
11
11
  def oauth_token
12
- @@token_data ||= ActiveSupport::JSON.decode(
13
- NetUtil.call_webservices(@@config['url'],
14
- 'post',
15
- "client_id=#{@@config['consumer_key']}&client_secret=#{@@config['consumer_secret']}&grant_type=client_credentials",
16
- { headers: {'Content-Type' => 'application/x-www-form-urlencoded'} }).body
17
- )
18
-
12
+ ActiveSupport::JSON.decode(
13
+ NetUtil.call_webservices(@@config['url'],
14
+ 'post',
15
+ "client_id=#{@@config['consumer_key']}&client_secret=#{@@config['consumer_secret']}&grant_type=client_credentials",
16
+ { headers: {'Content-Type' => 'application/x-www-form-urlencoded'} }).body
17
+ )
19
18
  end
20
19
 
21
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsk_auth_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linh Chau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cache_service