taxjar-ruby 1.7.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +2 -2
- data/README.md +1 -1
- data/lib/taxjar/version.rb +3 -3
- data/spec/taxjar/api/request_spec.rb +4 -4
- data/taxjar-ruby.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b7e3dd712773b9ccabcb86e905ecf021c59d9cc
|
4
|
+
data.tar.gz: 514648f0f55fb724aef886ccab636f9c9e40f639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46aa5499f10eb2033f826c2995ee376fe129377b0c829eb8227c161acb54b7d76549f31b738d11df8a09ca8fff7de9badaea8789b92588d0bd6297cfbdc62aa7
|
7
|
+
data.tar.gz: 767079085e61f59a7cf79bcb50f05994c5e7700d7b261012187ee1cfed209b2e3ef9429b0a01b5ea7712dc066c37313369ae39c9b109ea1e98afd85ae8658626
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/lib/taxjar/version.rb
CHANGED
@@ -100,7 +100,7 @@ describe Taxjar::API::Request do
|
|
100
100
|
'Host'=>'api.taxjar.com',
|
101
101
|
'User-Agent'=>"TaxjarRubyGem/#{Taxjar::Version.to_s}"}).
|
102
102
|
to_return(:status => 200, :body => '{"object": {"id": "3"}}',
|
103
|
-
:headers => {content_type: 'application/json; charset
|
103
|
+
:headers => {content_type: 'application/json; charset=UTF-8'})
|
104
104
|
|
105
105
|
|
106
106
|
expect(subject.perform).to eq({id: '3'})
|
@@ -118,11 +118,11 @@ describe Taxjar::API::Request do
|
|
118
118
|
stub_request(:post, "https://api.taxjar.com/api_path").
|
119
119
|
with(:body => "{\"city\":\"New York\"}",
|
120
120
|
:headers => {'Authorization'=>'Bearer AK', 'Connection'=>'close',
|
121
|
-
'Content-Type'=>'application/json',
|
121
|
+
'Content-Type'=>'application/json; charset=UTF-8',
|
122
122
|
'Host'=>'api.taxjar.com',
|
123
123
|
'User-Agent'=>"TaxjarRubyGem/#{Taxjar::Version.to_s}"}).
|
124
124
|
to_return(:status => 200, :body => '{"object": {"id": "3"}}',
|
125
|
-
:headers => {content_type: 'application/json; charset
|
125
|
+
:headers => {content_type: 'application/json; charset=UTF-8'})
|
126
126
|
|
127
127
|
expect(subject.perform).to eq({id: '3'})
|
128
128
|
end
|
@@ -139,7 +139,7 @@ describe Taxjar::API::Request do
|
|
139
139
|
:body => '{"error": "Not Acceptable",
|
140
140
|
"detail": "error explanation",
|
141
141
|
"status": "'+ status.to_s + '"}',
|
142
|
-
:headers => {content_type: 'application/json; charset
|
142
|
+
:headers => {content_type: 'application/json; charset=UTF-8'})
|
143
143
|
expect{subject.perform}.to raise_error(exception, 'error explanation')
|
144
144
|
end
|
145
145
|
end
|
data/taxjar-ruby.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>=
|
21
|
+
spec.required_ruby_version = '>= 2.0'
|
22
22
|
|
23
23
|
spec.add_dependency 'addressable', '~> 2.3'
|
24
|
-
spec.add_dependency 'http', '~>
|
24
|
+
spec.add_dependency 'http', '~> 2.2.2'
|
25
25
|
spec.add_dependency 'memoizable', '~> 0.4.0'
|
26
26
|
spec.add_dependency 'model_attribute', '~> 3.2'
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.7"
|
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:
|
4
|
+
version: 2.0.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-10-
|
11
|
+
date: 2017-10-30 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:
|
33
|
+
version: 2.2.2
|
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:
|
40
|
+
version: 2.2.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: memoizable
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
168
|
requirements:
|
169
169
|
- - ">="
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
171
|
+
version: '2.0'
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
174
|
- - ">="
|