taric 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/taric/configuration.rb +1 -2
- data/lib/taric/version.rb +1 -1
- 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: 34ed0cb4afcfb8bb80ce93f922d3aa30813043e1
|
4
|
+
data.tar.gz: 70afc406e22df4cfc6d8b75d2840f9b23704b8ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d9e4adfcb8c14f6b88f406a439fb240109ecc5909eafa6d0713ff2bb1610c67db82054e4f1e99c29be7342ac3c5459b3cab47eebbdac4f602bcb797e4b7ae7b
|
7
|
+
data.tar.gz: ba90d61d95ee11e22f7ca5ebac3872688cc6967ef05e0eba9bf5f9d04cca28d27603af9bf4fd3ff7abc986013d093a7daaddf26395298024ab033621ba0a1179
|
data/lib/taric/configuration.rb
CHANGED
@@ -7,7 +7,6 @@ module Taric
|
|
7
7
|
}.curry
|
8
8
|
|
9
9
|
DEFAULT_RESPONSE_HANDLER = -> response {
|
10
|
-
raise "#{response.status}" if response.status >= 400
|
11
10
|
response.body
|
12
11
|
}
|
13
12
|
|
@@ -15,7 +14,7 @@ module Taric
|
|
15
14
|
@api_key = options.fetch(:api_key, ENV.fetch('RIOT_API_KEY'.freeze, nil))
|
16
15
|
@format = options.fetch(:format, :json)
|
17
16
|
@user_agent = options.fetch(:user_agent, 'Taric Gem')
|
18
|
-
@adapter = options.fetch(:adapter,
|
17
|
+
@adapter = options.fetch(:adapter, Faraday.default_adapter)
|
19
18
|
@region = options.fetch(:region, ENV.fetch('RIOT_API_REGION'.freeze, 'na').to_sym)
|
20
19
|
@connection_opts = options.fetch(:connection_opts, {})
|
21
20
|
@requestor = options.fetch(:requestor, DEFAULT_REQUESTOR)
|
data/lib/taric/version.rb
CHANGED