duty_calculator 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/duty_calculator.gemspec +1 -0
- data/lib/duty_calculator/client.rb +8 -2
- data/lib/duty_calculator/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a26a378b62505e0268914de037be70047333a5ae
|
4
|
+
data.tar.gz: 1cf600b6a527b1f644d4e7f5a15c26d2a7f187eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 699a7a157618aa477ce0153f6456422d98f5b7d0d75cd9c0ce37b9eec1deb1f45d0d1924eb781151cc48612033de441a355f5e5b373f94c0a40654514ae9559d
|
7
|
+
data.tar.gz: c16de097b95833332d16781ab15144c523b1035d849b7388e300e70871a987637105aaab3f57d915046ac13b3ee9f06b79e1f5d6fc0a93cfbb5760e10b65c534
|
data/Gemfile
CHANGED
data/duty_calculator.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
require
|
1
|
+
require "duty_calculator"
|
2
|
+
require "faraday/detailed_logger"
|
3
|
+
|
2
4
|
module DutyCalculator
|
3
5
|
class Client
|
4
6
|
def self.new
|
@@ -10,7 +12,11 @@ module DutyCalculator
|
|
10
12
|
faraday.use Faraday::Response::ParseXml
|
11
13
|
faraday.use Faraday::Response::Mashify
|
12
14
|
faraday.use Faraday::Response::RaiseError unless DutyCalculator.configuration.debug
|
13
|
-
|
15
|
+
if DutyCalculator.configuration.debug
|
16
|
+
faraday.response :detailed_logger, DutyCalculator.configuration.logger
|
17
|
+
else
|
18
|
+
faraday.response :logger, DutyCalculator.configuration.logger
|
19
|
+
end
|
14
20
|
|
15
21
|
faraday.adapter ::Faraday.default_adapter
|
16
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duty_calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Hanley
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -137,6 +137,20 @@ dependencies:
|
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '2.3'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: faraday-detailed_logger
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '1.0'
|
147
|
+
type: :runtime
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1.0'
|
140
154
|
description: API documentation http://www.dutycalculator.com/api-center/dutycalculator-api-2-1-documentation/
|
141
155
|
email:
|
142
156
|
- tom@walkerandcompany.com
|