Skip to content

Commit e0b87e2

Browse files
svc-developerJonathan Wenger
andauthored
25.6.0 (#3)
* 25.6.0 - Added A1099 to SDK - refactored Request object for SDK naming * Update ruby with tests * Tweak ruby versions * Fix versions * Fix versiuon * FFix version * Ruby adjust version support --------- Co-authored-by: Jonathan Wenger <[email protected]>
1 parent fff2e17 commit e0b87e2

File tree

302 files changed

+61084
-2184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+61084
-2184
lines changed

.github/workflows/gem-push.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [ubuntu-latest]
14-
ruby: ["2.7"]
14+
ruby: ["3.2", "3.3"]
1515
runs-on: ${{ matrix.os }}
1616
permissions:
1717
contents: write
1818
packages: write
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- name: Set env
2323
run: |
2424
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -32,21 +32,33 @@ jobs:
3232
ruby-version: ${{ matrix.ruby }}
3333
bundler-cache: true
3434

35-
- name: Retrieve bearer token
36-
id: get_bearer_token
35+
- name: Retrieve bearer token for EInvoicing
36+
id: get_bearer_token_einvoicing
3737
run: |
3838
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
3939
-H "Content-Type: application/x-www-form-urlencoded" \
4040
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
4141
token=$(echo $response | jq -r '.access_token')
42-
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
42+
echo "BEARER_TOKEN_EINVOICING=${token}" >> $GITHUB_ENV
43+
44+
- name: Retrieve bearer token for A1099
45+
id: get_bearer_token_a1099
46+
run: |
47+
response=$(curl -X POST ${{secrets.AI_SBX_URL}}/connect/token \
48+
-H "Content-Type: application/x-www-form-urlencoded" \
49+
-d "grant_type=client_credentials&client_id=${{secrets.AI_CLIENT_ID_A1099}}&client_secret=${{secrets.AI_CLIENT_SECRET_A1099}}")
50+
token=$(echo $response | jq -r '.access_token')
51+
echo "BEARER_TOKEN_A1099=${token}" >> $GITHUB_ENV
4352
4453
- name: Run Integration Tests
4554
run: |
4655
gem install bundler:2.3.6
4756
bundle config set --local path 'vendor/bundle'
4857
bundle install
4958
bundle exec rspec
59+
env:
60+
BEARER_TOKEN_EINVOICING: ${{ env.BEARER_TOKEN_EINVOICING }}
61+
BEARER_TOKEN_A1099: ${{ env.BEARER_TOKEN_A1099 }}
5062

5163
- name: Update Ruby SDK version
5264
run: |

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,38 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest]
16-
ruby: ["2.7"]
16+
ruby: ["3.2", "3.3"]
17+
1718
runs-on: ${{ matrix.os }}
1819
permissions:
1920
contents: read
2021
packages: write
2122

2223
steps:
23-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2425
- name: Set up Ruby Versions
2526
uses: ruby/setup-ruby@v1
2627
with:
2728
ruby-version: ${{ matrix.ruby }}
2829
bundler-cache: true
2930

30-
- name: Retrieve bearer token
31-
id: get_bearer_token
31+
- name: Retrieve bearer token for EInvoicing
32+
id: get_bearer_token_einvoicing
3233
run: |
3334
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
3435
-H "Content-Type: application/x-www-form-urlencoded" \
3536
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
3637
token=$(echo $response | jq -r '.access_token')
37-
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
38+
echo "BEARER_TOKEN_EINVOICING=${token}" >> $GITHUB_ENV
39+
40+
- name: Retrieve bearer token for A1099
41+
id: get_bearer_token_a1099
42+
run: |
43+
response=$(curl -X POST ${{secrets.AI_SBX_URL}}/connect/token \
44+
-H "Content-Type: application/x-www-form-urlencoded" \
45+
-d "grant_type=client_credentials&client_id=${{secrets.AI_CLIENT_ID_A1099}}&client_secret=${{secrets.AI_CLIENT_SECRET_A1099}}")
46+
token=$(echo $response | jq -r '.access_token')
47+
echo "BEARER_TOKEN_A1099=${token}" >> $GITHUB_ENV
3848
3949
- name: Build & test
4050
run: |
@@ -43,4 +53,5 @@ jobs:
4353
bundle install
4454
bundle exec rspec
4555
env:
46-
BEARER_TOKEN: ${{ env.BEARER_TOKEN }}
56+
BEARER_TOKEN_EINVOICING: ${{ env.BEARER_TOKEN_EINVOICING }}
57+
BEARER_TOKEN_A1099: ${{ env.BEARER_TOKEN_A1099 }}

.rspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
--color
1+
--require bundler/setup
22
--require spec_helper
3+
--format documentation
4+
--color

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ gemspec
55
group :development, :test do
66
gem 'rake', '~> 13.0.1'
77
gem 'pry-byebug'
8-
gem 'rubocop', '~> 0.66.0'
8+
gem 'rubocop', '~> 1.50'
99
gem 'ruby-debug-ide'
10-
gem 'debase', '~> 0.2.5.beta2'
10+
gem 'debug'
1111
gem 'dotenv'
1212
end

Gemfile.lock

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
PATH
22
remote: .
33
specs:
4-
avalara_sdk (24.12.2)
4+
avalara_sdk (25.6.0)
55
faraday (~> 1.0, >= 1.0.1)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
ast (2.4.2)
10+
ast (2.4.3)
1111
byebug (11.1.3)
1212
coderay (1.1.3)
13-
debase (0.2.5.beta2)
14-
debase-ruby_core_source (>= 0.10.12)
15-
debase-ruby_core_source (0.10.16)
13+
date (3.4.1)
14+
debug (1.10.0)
15+
irb (~> 1.10)
16+
reline (>= 0.3.8)
1617
diff-lcs (1.5.0)
1718
dotenv (2.7.6)
19+
erb (5.0.1)
1820
faraday (1.10.4)
1921
faraday-em_http (~> 1.0)
2022
faraday-em_synchrony (~> 1.0)
@@ -28,32 +30,52 @@ GEM
2830
faraday-retry (~> 1.0)
2931
ruby2_keywords (>= 0.0.4)
3032
faraday-em_http (1.0.0)
31-
faraday-em_synchrony (1.0.0)
33+
faraday-em_synchrony (1.0.1)
3234
faraday-excon (1.1.0)
3335
faraday-httpclient (1.0.1)
34-
faraday-multipart (1.1.0)
36+
faraday-multipart (1.1.1)
3537
multipart-post (~> 2.0)
3638
faraday-net_http (1.0.2)
3739
faraday-net_http_persistent (1.2.0)
3840
faraday-patron (1.0.0)
3941
faraday-rack (1.0.0)
4042
faraday-retry (1.0.3)
41-
jaro_winkler (1.5.4)
43+
io-console (0.8.0)
44+
irb (1.15.2)
45+
pp (>= 0.6.0)
46+
rdoc (>= 4.0.0)
47+
reline (>= 0.4.2)
48+
json (2.12.2)
49+
language_server-protocol (3.17.0.5)
50+
lint_roller (1.1.0)
4251
method_source (1.0.0)
4352
multipart-post (2.4.1)
44-
parallel (1.22.1)
45-
parser (3.1.2.0)
53+
parallel (1.27.0)
54+
parser (3.3.8.0)
4655
ast (~> 2.4.1)
56+
racc
57+
pp (0.6.2)
58+
prettyprint
59+
prettyprint (0.2.0)
60+
prism (1.4.0)
4761
pry (0.13.1)
4862
coderay (~> 1.1)
4963
method_source (~> 1.0)
5064
pry-byebug (3.9.0)
5165
byebug (~> 11.0)
5266
pry (~> 0.13.0)
53-
psych (4.0.4)
67+
psych (5.2.6)
68+
date
5469
stringio
70+
racc (1.8.1)
5571
rainbow (3.1.1)
5672
rake (13.0.6)
73+
rdoc (6.14.0)
74+
erb
75+
psych (>= 4.0.0)
76+
regexp_parser (2.10.0)
77+
reline (0.6.1)
78+
io-console (~> 0.5)
5779
rspec (3.11.0)
5880
rspec-core (~> 3.11.0)
5981
rspec-expectations (~> 3.11.0)
@@ -67,35 +89,44 @@ GEM
6789
diff-lcs (>= 1.2.0, < 2.0)
6890
rspec-support (~> 3.11.0)
6991
rspec-support (3.11.0)
70-
rubocop (0.66.0)
71-
jaro_winkler (~> 1.5.1)
92+
rubocop (1.76.1)
93+
json (~> 2.3)
94+
language_server-protocol (~> 3.17.0.2)
95+
lint_roller (~> 1.1.0)
7296
parallel (~> 1.10)
73-
parser (>= 2.5, != 2.5.1.1)
74-
psych (>= 3.1.0)
97+
parser (>= 3.3.0.2)
7598
rainbow (>= 2.2.2, < 4.0)
99+
regexp_parser (>= 2.9.3, < 3.0)
100+
rubocop-ast (>= 1.45.0, < 2.0)
76101
ruby-progressbar (~> 1.7)
77-
unicode-display_width (>= 1.4.0, < 1.6)
102+
unicode-display_width (>= 2.4.0, < 4.0)
103+
rubocop-ast (1.45.1)
104+
parser (>= 3.3.7.2)
105+
prism (~> 1.4)
78106
ruby-debug-ide (0.7.3)
79107
rake (>= 0.8.1)
80-
ruby-progressbar (1.11.0)
108+
ruby-progressbar (1.13.0)
81109
ruby2_keywords (0.0.5)
82-
stringio (3.0.2)
83-
unicode-display_width (1.5.0)
110+
stringio (3.1.7)
111+
unicode-display_width (3.1.4)
112+
unicode-emoji (~> 4.0, >= 4.0.4)
113+
unicode-emoji (4.0.4)
84114

85115
PLATFORMS
86116
arm64-darwin-22
117+
arm64-darwin-24
87118
x64-mingw32
88119
x86_64-darwin-20
89120
x86_64-linux
90121

91122
DEPENDENCIES
92123
avalara_sdk!
93-
debase (~> 0.2.5.beta2)
124+
debug
94125
dotenv
95126
pry-byebug
96127
rake (~> 13.0.1)
97128
rspec (~> 3.6, >= 3.6.0)
98-
rubocop (~> 0.66.0)
129+
rubocop (~> 1.50)
99130
ruby-debug-ide
100131

101132
BUNDLED WITH

0 commit comments

Comments
 (0)