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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02afc50318c3e6ad4a1e47c74e9064713202ce44fbc620378d0c06630603b456
4
- data.tar.gz: 4dfaaea59f47f37f0795fb61b5dc03fc183720101e4ed3c95bfed6c0b0b625c0
3
+ metadata.gz: cc4803df5ab046ed468223f5f52dea72fde1fe733b21e7a704b8a4771a6ebed6
4
+ data.tar.gz: 87be0672dee32b9357777eb907df5a99e3257dcf2bc69ad4d1654b30148e7f95
5
5
  SHA512:
6
- metadata.gz: 7adc544695c4d8c51a80a97cef57031ae055234b08dbf1bfe5fe6baca31132c6a4c91de2a7f2a3928c393ec1b0dbf0455c8253b51234d9bafe22256458f2fe28
7
- data.tar.gz: 75d522128e56119a88d55d81017bd6aa34e2b99f4ae27dfef97fa8c97cd0f360c030527cb1ed1cf259eef865d42719eebc00bbeb102007ce2edee05d90cbb7d0
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"]
@@ -1,4 +1,4 @@
1
- require 'faraday_middleware'
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
- faraday.response :json, content_type: /\bjson$/
31
- faraday.request :basic_auth, username, password
32
-
33
- # TODO: use the following after upgrading to faraday 2.0
34
- # see https://github.com/lostisland/faraday/blob/main/docs/middleware/request/authentication.md
35
- # faraday.request :authorization, :basic, username, password
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
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '23.7.0'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '23.7.1'.freeze unless defined?(::AvaTax::VERSION)
3
3
  end
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.0
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-07-14 00:00:00.000000000 Z
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