avatax 23.7.0 → 23.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/avatax.gemspec +0 -1
- data/lib/avatax/connection.rb +11 -7
- data/lib/avatax/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4803df5ab046ed468223f5f52dea72fde1fe733b21e7a704b8a4771a6ebed6
|
4
|
+
data.tar.gz: 87be0672dee32b9357777eb907df5a99e3257dcf2bc69ad4d1654b30148e7f95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b974e2df3cc9302313f7647958b43366a76f908b4625a374da1781faa895b84cd839f3161a07f7141c9b04e7e48c0fc75469a0fc27676473b6438ba206fd64
|
7
|
+
data.tar.gz: e5f6cf5f7c731b4fe7aa52d82054584d088a3781dbbf96875ebfb25b22527f52a86d2d358ac88a796d28ba95d84934a9515920af50bc5fcd61548d19fa94ba00
|
data/avatax.gemspec
CHANGED
@@ -5,7 +5,6 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.add_development_dependency('rspec', '~> 3.5.0')
|
6
6
|
s.add_development_dependency('webmock', '>= 2.0.0')
|
7
7
|
s.add_runtime_dependency('faraday', '>= 0.10')
|
8
|
-
s.add_runtime_dependency('faraday_middleware', '>= 0.10')
|
9
8
|
s.add_runtime_dependency('multi_json', '>= 1.0.3')
|
10
9
|
s.add_runtime_dependency('activesupport', '>= 6.1.7')
|
11
10
|
s.authors = ["Marcus Vorwaller"]
|
data/lib/avatax/connection.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'faraday'
|
2
2
|
|
3
3
|
module AvaTax
|
4
4
|
|
@@ -27,12 +27,13 @@ module AvaTax
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
faraday.request :instrumentation
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0.0')
|
31
|
+
# Use the following after upgrading to faraday 2.0
|
32
|
+
# see https://github.com/lostisland/faraday/blob/main/docs/middleware/request/authentication.md
|
33
|
+
faraday.request :authorization, :basic, username, password
|
34
|
+
else
|
35
|
+
faraday.request :basic_auth, username, password
|
36
|
+
end
|
36
37
|
|
37
38
|
default_logger_options = { headers: true, bodies: log_request_and_response_info }
|
38
39
|
if logger
|
@@ -48,6 +49,9 @@ module AvaTax
|
|
48
49
|
end
|
49
50
|
|
50
51
|
faraday.adapter Faraday.default_adapter
|
52
|
+
|
53
|
+
# Use Faraday's built-in response parser
|
54
|
+
faraday.response :json, parser_options: { symbolize_names: false }
|
51
55
|
end
|
52
56
|
end
|
53
57
|
end
|
data/lib/avatax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 23.7.
|
4
|
+
version: 23.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Vorwaller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.10'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: faraday_middleware
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.10'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.10'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: multi_json
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|