taxjar-ruby 1.6.2 → 1.7.0

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: 6cc9e160223c601f42dd22ce69d919328ddbecb1
4
- data.tar.gz: 18ed031c988b339e226f2e9f84ea32bb3a9f9bea
3
+ metadata.gz: ef0beb68bc2c8a4918e20e96567d017917657141
4
+ data.tar.gz: '0485c1753a51cb65ccd80af337794ea77d07a3ce'
5
5
  SHA512:
6
- metadata.gz: 664dbd3a33f8b753ad156a4b96c72a853de193570d7400e2c5fdb68ce60b5d94a6a6cfa0814eca6c807f07fe9454ce58503c15bb9ddad206a65ebb8e10de3592
7
- data.tar.gz: 2d62663bd4ae0908ac442b5d6323a258a3dd65a7b368f25f997d044a4ed91d439ac6b0e13a4fdc32a64c3979052de744391249fc92a0712ce09c056e6eac5999
6
+ metadata.gz: e7009cd1589b9c551143d483c05ddc24cfd3e0a2b05782046ef41a4671c8d313f8b1cee4efe61afc8d178903f14bbc2aac18ed8bc523a3a9824487e9b2d9c646
7
+ data.tar.gz: cdb219a9e69e4f27cbb1998b9b1563a3e5dc89028effffe0ee44fa2486be9691fe8d3122535dd50f43bb1e6010184bf3bb0c2868febf378e6934a3355de9a917
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gem 'yard'
4
4
 
5
5
  group :test do
6
6
  gem 'rspec', '~>3'
7
- gem 'webmock', '~>1'
7
+ gem 'webmock', '~>2.3.2'
8
8
  end
9
9
 
10
10
  # Specify your gem's dependencies in taxjar-ruby.gemspec
@@ -25,7 +25,8 @@ module Taxjar
25
25
 
26
26
  def perform
27
27
  options_key = @request_method == :get ? :params : :json
28
- response = HTTP.timeout(@http_timeout).with(headers).public_send(request_method, uri.to_s, options_key => @options)
28
+ response = HTTP.timeout(@http_timeout).headers(headers)
29
+ .request(request_method, uri.to_s, options_key => @options)
29
30
  response_body = symbolize_keys!(response.parse)
30
31
  fail_or_return_response_body(response.code, response_body)
31
32
  end
@@ -6,11 +6,11 @@ module Taxjar
6
6
  end
7
7
 
8
8
  def minor
9
- 6
9
+ 7
10
10
  end
11
11
 
12
12
  def patch
13
- 2
13
+ 0
14
14
  end
15
15
 
16
16
  def pre
@@ -124,7 +124,6 @@ describe Taxjar::API::Request do
124
124
  to_return(:status => 200, :body => '{"object": {"id": "3"}}',
125
125
  :headers => {content_type: 'application/json; charset utf-8'})
126
126
 
127
-
128
127
  expect(subject.perform).to eq({id: '3'})
129
128
  end
130
129
  end
data/taxjar-ruby.gemspec CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 1.9.3'
22
22
 
23
23
  spec.add_dependency 'addressable', '~> 2.3'
24
- spec.add_dependency 'http', '~> 0.9.4'
24
+ spec.add_dependency 'http', '~> 1.0.4'
25
25
  spec.add_dependency 'memoizable', '~> 0.4.0'
26
- spec.add_dependency 'taxjar-model_attribute', '~> 3.1'
26
+ spec.add_dependency 'model_attribute', '~> 3.2'
27
27
  spec.add_development_dependency "bundler", "~> 1.7"
28
- spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rake", "~> 12.0"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taxjar-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TaxJar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.4
33
+ version: 1.0.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.4
40
+ version: 1.0.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: memoizable
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.4.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: taxjar-model_attribute
56
+ name: model_attribute
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '3.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.1'
68
+ version: '3.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '12.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '12.0'
97
97
  description: Ruby wrapper for Taxjar API, more info at developers.taxjar.com
98
98
  email:
99
99
  - support@taxjar.com