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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acd45bb6bd3eb0e883c0661940510ecd5ca4eb69
4
- data.tar.gz: d266474849fcd13a2bf9f133e3ccdccbc992fe32
3
+ metadata.gz: a26a378b62505e0268914de037be70047333a5ae
4
+ data.tar.gz: 1cf600b6a527b1f644d4e7f5a15c26d2a7f187eb
5
5
  SHA512:
6
- metadata.gz: ecc1d5b1e5dbdb6415bd948f61b54ccef4a2401b68bdf89169bc86a18002a2e1c0aacf52ff5057019082ca40015c1d64d80688f92524fa60b5f95b13fe1e48a3
7
- data.tar.gz: 51e901b315355add0af9686f533f4f893790fede47c5c8e8183a9fa929a71e6106e40c88ad2f2bccfde4256385c01987b0eb405f2fe3a56c2ba9627e590972b7
6
+ metadata.gz: 699a7a157618aa477ce0153f6456422d98f5b7d0d75cd9c0ce37b9eec1deb1f45d0d1924eb781151cc48612033de441a355f5e5b373f94c0a40654514ae9559d
7
+ data.tar.gz: c16de097b95833332d16781ab15144c523b1035d849b7388e300e70871a987637105aaab3f57d915046ac13b3ee9f06b79e1f5d6fc0a93cfbb5760e10b65c534
data/Gemfile CHANGED
@@ -10,3 +10,4 @@ gem 'multi_xml'
10
10
  gem 'addressable'
11
11
  gem 'vcr'
12
12
  gem 'webmock'
13
+ gem "faraday-detailed_logger"
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency "hashie", "~> 3.3"
28
28
  spec.add_runtime_dependency "multi_xml", "~> 0.5"
29
29
  spec.add_runtime_dependency "addressable", "~> 2.3"
30
+ spec.add_runtime_dependency "faraday-detailed_logger", "~> 1.0"
30
31
  end
@@ -1,4 +1,6 @@
1
- require 'duty_calculator'
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
- faraday.response :logger, DutyCalculator.configuration.logger
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
@@ -1,3 +1,3 @@
1
1
  module DutyCalculator
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  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.7
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-01 00:00:00.000000000 Z
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