taxjar-ruby 3.0.2 → 3.0.3

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
  SHA256:
3
- metadata.gz: 59f7440e50a1552f055f03501341b8883c960d9e85d50de6817ec7b7ca3908a1
4
- data.tar.gz: 74712431ab3d1ad24fdfd064aa61cbdf53f5b47061d6eb61e032405ca9e2a539
3
+ metadata.gz: 18688d5bc45966595ed15e6d20eef07bd736db1344a901f8314cc290ac120dcf
4
+ data.tar.gz: 2a3f17b97d09c5e4a5bc2f405884374e29bd0e8a326c29892d461bfe2b8db48e
5
5
  SHA512:
6
- metadata.gz: 73aa9395d63a8b078699b23dcac7e97555831de2846db337e5ea32861fc6f3722589c6c0437eb7c8349d2f53614227f54cb11506d94370dbbac15f8c49fd7ea5
7
- data.tar.gz: 95d3fb22ef2bcbf85fd5e256eb628765f8f1698ebedd5527b9f3fbc952357aa0fe6b3e04f87727dc4493c5feb7741ca309e73d3d93d1337c780083fc0cd6f8eb
6
+ metadata.gz: 5346c3672896ea11c88c741513003d4567ccc13cc33e7055abcae9529999a227bfc058c0d98a841881cc550c99b87ec0cacfe438f6e2f795c75c0a309e371992
7
+ data.tar.gz: afd508979ce8b8cce3a0700170b6fb13acfea108faae1caf5fdcdbce173f0f62c18bfb17646e54f68d2bdc86c4713ce5115a3a0f197fdcf82aa20981941b2f0a
data/CHANGELOG.md CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.0.3] - 2022-02-07
11
+ - Throw a `Taxjar::Error::GatewayTimeout` exception when receiving a 504 HTTP status code
12
+
10
13
  ## [3.0.2] - 2021-03-18
11
14
  - Re-classify `HTTP::ConnectionError` and other `HTTP::Error` types as `Taxjar::Error`
12
15
 
@@ -49,7 +52,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
49
52
  - Update minimum required Ruby version to 2.0
50
53
  - Update HTTP (The Gem) to 2.2
51
54
 
52
- [Unreleased]: https://github.com/taxjar/taxjar-ruby/compare/v3.0.2...HEAD
55
+ [Unreleased]: https://github.com/taxjar/taxjar-ruby/compare/v3.0.3...HEAD
56
+ [3.0.3]: https://github.com/taxjar/taxjar-ruby/compare/v3.0.2...v3.0.3
53
57
  [3.0.2]: https://github.com/taxjar/taxjar-ruby/compare/v3.0.1...v3.0.2
54
58
  [3.0.1]: https://github.com/taxjar/taxjar-ruby/compare/v3.0.0...v3.0.1
55
59
  [3.0.0]: https://github.com/taxjar/taxjar-ruby/compare/v2.6.1...v3.0.0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TaxJar Sales Tax API for Ruby [![RubyGems](https://img.shields.io/gem/v/taxjar-ruby.svg?style=flat-square)](https://rubygems.org/gems/taxjar-ruby) [![Build Status](https://img.shields.io/travis/taxjar/taxjar-ruby.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-ruby)
2
2
 
3
- <a href="https://developers.taxjar.com"><img src="https://www.taxjar.com/img/TJ_logo_color_office_png.png" alt="TaxJar" width="220"></a>
3
+ <a href="https://developers.taxjar.com"><img src="https://www.taxjar.com/wp-content/uploads/TaxJar__Wordmark_Black.svg" alt="TaxJar" width="220"></a>
4
4
 
5
5
  A Ruby interface to the TaxJar [Sales Tax API](https://developers.taxjar.com/api/reference/?ruby). TaxJar makes sales tax filing easier for online sellers and merchants. See local jurisdictional tax reports, get payment reminders, and more. You can use our API to access TaxJar API endpoints, which can get information on sales tax rates, categories or upload transactions.
6
6
 
@@ -1188,7 +1188,7 @@ nexus_regions = client.nexus_regions
1188
1188
 
1189
1189
  ### Validate an address <small>_([API docs](https://developers.taxjar.com/api/reference/?ruby#post-validate-an-address))_</small>
1190
1190
 
1191
- > Validates a customer address and returns back a collection of address matches. **Address validation requires a [TaxJar Plus](https://www.taxjar.com/plus/) subscription.**
1191
+ > Validates a customer address and returns back a collection of address matches. **Address validation requires a [TaxJar Professional](https://www.taxjar.com/pricing) subscription.**
1192
1192
 
1193
1193
  #### Definition
1194
1194
 
data/lib/taxjar/error.rb CHANGED
@@ -39,6 +39,9 @@ module Taxjar
39
39
  # Raised when Taxjar endpoint returns the HTTP status code 503
40
40
  ServiceUnavailable = Class.new(ServerError)
41
41
 
42
+ # Raised when Taxjar endpoint returns the HTTP status code 504
43
+ GatewayTimeout = Class.new(ServerError)
44
+
42
45
  ERRORS = {
43
46
  400 => Taxjar::Error::BadRequest,
44
47
  401 => Taxjar::Error::Unauthorized,
@@ -50,7 +53,8 @@ module Taxjar
50
53
  422 => Taxjar::Error::UnprocessableEntity,
51
54
  429 => Taxjar::Error::TooManyRequests,
52
55
  500 => Taxjar::Error::InternalServerError,
53
- 503 => Taxjar::Error::ServiceUnavailable
56
+ 503 => Taxjar::Error::ServiceUnavailable,
57
+ 504 => Taxjar::Error::GatewayTimeout
54
58
  }
55
59
 
56
60
  class << self
@@ -10,7 +10,7 @@ module Taxjar
10
10
  end
11
11
 
12
12
  def patch
13
- 2
13
+ 3
14
14
  end
15
15
 
16
16
  def pre
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: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TaxJar
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -116,7 +116,6 @@ files:
116
116
  - ".editorconfig"
117
117
  - ".gitignore"
118
118
  - ".rspec"
119
- - ".ruby-version"
120
119
  - ".travis.yml"
121
120
  - CHANGELOG.md
122
121
  - Gemfile
@@ -187,7 +186,7 @@ metadata:
187
186
  changelog_uri: https://github.com/taxjar/taxjar-ruby/blob/master/CHANGELOG.md
188
187
  source_code_uri: https://github.com/taxjar/taxjar-ruby
189
188
  bug_tracker_uri: https://github.com/taxjar/taxjar-ruby/issues
190
- post_install_message:
189
+ post_install_message:
191
190
  rdoc_options: []
192
191
  require_paths:
193
192
  - lib
@@ -202,8 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
201
  - !ruby/object:Gem::Version
203
202
  version: '0'
204
203
  requirements: []
205
- rubygems_version: 3.2.14
206
- signing_key:
204
+ rubygems_version: 3.3.3
205
+ signing_key:
207
206
  specification_version: 4
208
207
  summary: Ruby wrapper for Taxjar API
209
208
  test_files:
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p0