adsk_auth_service 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adsk_auth_service.gemspec +1 -1
- data/lib/services/auth_service.rb +1 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a55ab83859f06356d1b19a5e2ac19b3aede8746
|
4
|
+
data.tar.gz: 923e0a23ad353028b393b633174676acfc121be2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d2a579842c7b4b40ed03466535c543ab6d09cc2a7236b75d8f2beb2e18dca4d4ba982e4404a0d29d3ccdc883b1841c3fc086cc246a15cb453d168080fb7382
|
7
|
+
data.tar.gz: f0996543cf958428bde18989e72fd395d301025b6e00bfc6d5e8d9091b6c1476ff0eeec6b03c61422fbefebf79f1f80cdb2a441f84882f0abdcb855fce378ed1
|
data/adsk_auth_service.gemspec
CHANGED
@@ -5,19 +5,7 @@ require_relative '../utils/net_util'
|
|
5
5
|
class AuthService
|
6
6
|
class << self
|
7
7
|
def load_config
|
8
|
-
|
9
|
-
base_path = File.expand_path('.')
|
10
|
-
|
11
|
-
config_file = nil
|
12
|
-
['conf', 'config'].each do |sub_path|
|
13
|
-
if File.exist?("#{base_path}/#{sub_path}/auth_keys.yml")
|
14
|
-
config_file = "#{base_path}/#{sub_path}/auth_keys.yml"
|
15
|
-
break
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
raise("You must have the file auth_keys.yml in either 'conf' or 'config' directory of your application") unless config_file
|
20
|
-
@@config ||= YAML.load_file(config_file)[env]
|
8
|
+
@@config ||= ConfigService.load_config('auth_keys.yml')[ConfigService.environment]
|
21
9
|
end
|
22
10
|
|
23
11
|
def oauth_token
|