Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7]
ruby: [3.3, 3.4]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.7.4
3.4.7
125 changes: 73 additions & 52 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,74 +7,95 @@ PATH
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
ansi (1.5.0)
ast (2.4.2)
builder (3.2.4)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
ansi (1.6.0)
ast (2.4.3)
base64 (0.3.0)
bigdecimal (4.1.1)
builder (3.3.0)
byebug (11.1.3)
crack (0.4.5)
crack (1.0.1)
bigdecimal
rexml
docile (1.4.0)
faraday (2.5.2)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.0)
hashdiff (1.0.1)
hashie (5.0.0)
json (2.6.2)
jwt (2.4.1)
minitest (5.16.2)
minitest-focus (1.3.1)
minitest (>= 4, < 6)
minitest-reporters (1.5.0)
docile (1.4.1)
faraday (2.14.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.2)
net-http (~> 0.5)
hashdiff (1.2.1)
hashie (5.1.0)
logger
json (2.19.3)
jwt (3.1.2)
base64
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
logger (1.7.0)
minitest (5.27.0)
minitest-focus (1.4.1)
minitest (> 5.0)
minitest-reporters (1.8.0)
ansi
builder
minitest (>= 5.0)
minitest (>= 5.0, < 7)
ruby-progressbar
multi_xml (0.6.0)
oauth2 (2.0.9)
faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0)
multi_xml (0.8.1)
bigdecimal (>= 3.1, < 5)
net-http (0.9.1)
uri (>= 0.11.1)
oauth2 (2.0.18)
faraday (>= 0.17.3, < 4.0)
jwt (>= 1.0, < 4.0)
logger (~> 1.2)
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
snaky_hash (~> 2.0)
version_gem (~> 1.1)
parallel (1.22.1)
parser (3.1.2.1)
snaky_hash (~> 2.0, >= 2.0.3)
version_gem (~> 1.1, >= 1.1.9)
parallel (2.0.1)
parser (3.3.11.1)
ast (~> 2.4.1)
public_suffix (4.0.7)
rack (3.0.6.1)
racc
prism (1.9.0)
public_suffix (7.0.5)
racc (1.8.1)
rack (3.2.6)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.5.0)
rexml (3.2.5)
rubocop (1.35.0)
rake (13.4.1)
regexp_parser (2.12.0)
rexml (3.4.4)
rubocop (1.86.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (>= 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.20.1, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.21.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
simplecov (0.21.2)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
snaky_hash (2.0.0)
hashie
version_gem (~> 1.1)
unicode-display_width (2.2.0)
version_gem (1.1.0)
webmock (3.17.1)
snaky_hash (2.0.3)
hashie (>= 0.1.0, < 6)
version_gem (>= 1.1.8, < 3)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
uri (1.1.1)
version_gem (1.1.9)
webmock (3.26.2)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand Down
1 change: 1 addition & 0 deletions lib/business_central.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
require 'business_central/exceptions'
require 'business_central/client'
require 'business_central/web_service'
require 'business_central/version'
6 changes: 3 additions & 3 deletions test/business_central/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_authorize_throws_exception
body: { error: 'unknown error' }.to_json
)

mock = MiniTest::Mock.new
mock = Minitest::Mock.new
def mock.authorize_url(_arguments)
response = Faraday.get(BusinessCentral::Client::DEFAULT_LOGIN_URL)
response = OAuth2::Response.new(response)
Expand All @@ -106,7 +106,7 @@ def test_request_token_throws_exception
body: { error: 'token error' }.to_json
)

mock = MiniTest::Mock.new
mock = Minitest::Mock.new
def mock.get_token(*_params)
response = Faraday.get(BusinessCentral::Client::DEFAULT_URL)
response = OAuth2::Response.new(response)
Expand All @@ -129,7 +129,7 @@ def test_refresh_token_throws_invalid_grant_exception
)
stub_request(:post, /#{BusinessCentral::Client::DEFAULT_LOGIN_URL}/)
.to_return(
status: 200,
status: 422,
headers: {
'Content-Type': 'application/json'
},
Expand Down
Loading