taxjar-ruby 1.7.1 → 2.0.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: b9eb2e7131efcdba8714c438b63ef315fcca25ef
4
- data.tar.gz: c7b76ae3a307b72a1d0a6c330deb4c5c1a62ac00
3
+ metadata.gz: 1b7e3dd712773b9ccabcb86e905ecf021c59d9cc
4
+ data.tar.gz: 514648f0f55fb724aef886ccab636f9c9e40f639
5
5
  SHA512:
6
- metadata.gz: 985a2137521594703c2b5cdcad7e83ed4e7a49d7a9c8045daa9cbe771dc0fe5c9366bd62b50aab3a118124bbf7292355d79264db1cadf510a57242b7ece06ff4
7
- data.tar.gz: 05d505aa344cf7547232121239e4c10e3f07b520839fc25a1f75984458d8bb90c9d40db71b290308f9fce49f0e5605dd36722bb5ead753701c06af19621ba35b
6
+ metadata.gz: 46aa5499f10eb2033f826c2995ee376fe129377b0c829eb8227c161acb54b7d76549f31b738d11df8a09ca8fff7de9badaea8789b92588d0bd6297cfbdc62aa7
7
+ data.tar.gz: 767079085e61f59a7cf79bcb50f05994c5e7700d7b261012187ee1cfed209b2e3ef9429b0a01b5ea7712dc066c37313369ae39c9b109ea1e98afd85ae8658626
@@ -1,10 +1,11 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - "1.9.3"
5
4
  - "2.0"
6
5
  - "2.1"
7
6
  - "2.2"
7
+ - "2.3"
8
+ - "2.4"
8
9
 
9
10
  script: bundle exec rspec
10
11
 
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
3
3
  gem 'yard'
4
4
 
5
5
  group :test do
6
- gem 'rspec', '~>3'
7
- gem 'webmock', '~>2.3.2'
6
+ gem 'rspec', '~> 3'
7
+ gem 'webmock', '~> 3.0.1'
8
8
  end
9
9
 
10
10
  # Specify your gem's dependencies in taxjar-ruby.gemspec
data/README.md CHANGED
@@ -10,7 +10,7 @@ See local jurisdictional tax reports, get payment reminders, and more. You can u
10
10
 
11
11
  ## Supported Ruby Versions
12
12
 
13
- Ruby 1.9.3 or greater
13
+ Ruby 2.0 or greater
14
14
 
15
15
  ## Gem Dependencies
16
16
 
@@ -2,15 +2,15 @@ module Taxjar
2
2
  module Version
3
3
  module_function
4
4
  def major
5
- 1
5
+ 2
6
6
  end
7
7
 
8
8
  def minor
9
- 7
9
+ 0
10
10
  end
11
11
 
12
12
  def patch
13
- 1
13
+ 0
14
14
  end
15
15
 
16
16
  def pre
@@ -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 utf-8'})
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 utf-8'})
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 utf-8'})
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
@@ -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 = '>= 1.9.3'
21
+ spec.required_ruby_version = '>= 2.0'
22
22
 
23
23
  spec.add_dependency 'addressable', '~> 2.3'
24
- spec.add_dependency 'http', '~> 1.0.4'
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: 1.7.1
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-03 00:00:00.000000000 Z
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: 1.0.4
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: 1.0.4
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: 1.9.3
171
+ version: '2.0'
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - ">="