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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed77ff9affb7844366896d0dfcf3c3d0d5f01b5a
4
- data.tar.gz: d79cd98d16a3b5e8c74c64dc1c4b4bc6734d0ce1
3
+ metadata.gz: 34ed0cb4afcfb8bb80ce93f922d3aa30813043e1
4
+ data.tar.gz: 70afc406e22df4cfc6d8b75d2840f9b23704b8ec
5
5
  SHA512:
6
- metadata.gz: 87bfaf8c38a124e03f995c11b83e77b92e38f191ae40cbb7d73f0aed79afb351f1dfc365c021ad1a77106c037e361f4fec66c35fa83bc512f36e3f8a489b0e40
7
- data.tar.gz: 522320c21bc0accd72a6fc61ad7250379cf0037dbc86427a56329a65ec0855fab094fe3ec5da5e3ea1e29a5b09daeef1622d0677e9c7508191e8a8be983a243d
6
+ metadata.gz: 8d9e4adfcb8c14f6b88f406a439fb240109ecc5909eafa6d0713ff2bb1610c67db82054e4f1e99c29be7342ac3c5459b3cab47eebbdac4f602bcb797e4b7ae7b
7
+ data.tar.gz: ba90d61d95ee11e22f7ca5ebac3872688cc6967ef05e0eba9bf5f9d04cca28d27603af9bf4fd3ff7abc986013d093a7daaddf26395298024ab033621ba0a1179
@@ -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, :typhoeus)
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)
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = "0.1.11"
2
+ VERSION = '0.1.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi