Skip to content
Open
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
41 changes: 15 additions & 26 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,20 @@ jobs:

strategy:
matrix:
ruby_version: [2.6, 2.7, 3.0]
ruby_version: [3.2, 3.3, 3.4]

steps:
- uses: actions/checkout@v3.3.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- uses: amancevice/setup-code-climate@v0
name: CodeClimate Install
with:
cc_test_reporter_id: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf

- name: CodeClimate Pre-build Notification
run: cc-test-reporter before-build

- name: Build and test with Rake
env:
CI: true
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake

- name: CodeClimate Post-build Notification
run: cc-test-reporter after-build
- uses: actions/checkout@v3.3.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Build and test with Rake
env:
CI: true
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
2 changes: 1 addition & 1 deletion lib/moneybird/resource/webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Webhook
url
last_http_status
last_http_body
events
enabled_events
token
)

Expand Down
4 changes: 2 additions & 2 deletions moneybird.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/maartenvanvliet/moneybird"
spec.license = "MIT"

spec.required_ruby_version = ">= 2.6.0"
spec.required_ruby_version = ">= 3.2.0"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
Expand All @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "faraday", ">= 2.0.1"
spec.add_dependency "link_header", "~> 0.0.8"

spec.add_development_dependency "bundler", [">= 1.11", "< 3.0"]
spec.add_development_dependency "bundler", [">= 2.0", "< 5.0"]
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "simplecov", "= 0.21.2"
spec.add_development_dependency "minitest"
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/responses/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "194733605680842680",
"administration_id": 123,
"url": "http://example.com/webhook",
"events": [
"enabled_events": [

],
"last_http_status": null,
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/responses/webhooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "194733605680842680",
"administration_id": 123,
"url": "http://www.mocky.io/v2/5185415ba171ea3a00704eed",
"events": [
"enabled_events": [

],
"last_http_status": null,
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/moneybird/resources/webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"id" => "194733605680842680",
"administration_id" => 123,
"url" => "http://example.com/webhook",
"events" => []
"enabled_events" => []
}
)
end
Expand Down