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 +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +2 -2
- data/lib/taxjar/error.rb +5 -1
- data/lib/taxjar/version.rb +1 -1
- metadata +6 -7
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18688d5bc45966595ed15e6d20eef07bd736db1344a901f8314cc290ac120dcf
|
4
|
+
data.tar.gz: 2a3f17b97d09c5e4a5bc2f405884374e29bd0e8a326c29892d461bfe2b8db48e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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/
|
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
|
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
|
data/lib/taxjar/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|