Skip to content

Commit

Permalink
Update ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
codez committed Oct 31, 2023
1 parent 604924b commit 30bac26
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1']
ruby-version: ['3.0', '3.1', '3.2']
haml: [true, false]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -30,11 +30,11 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rubocop
Expand All @@ -43,11 +43,11 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: paambaati/codeclimate-action@v3.0.0
env:
Expand Down
4 changes: 2 additions & 2 deletions MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2013 Pascal Zumkehr
Copyright (c) 2010-2023 Pascal Zumkehr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
6 changes: 3 additions & 3 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= DRY CRUD

{<img src="https://github.com/codez/dry_crud/actions/workflows/build.yml/badge.svg" />}[https://github.com/codez/dry_crud/actions/workflows/build.yml]
{<img src="https://api.codeclimate.com/v1/badges/ef7488764a0d9805b37d/maintainability" />}[https://codeclimate.com/github/codez/dry_crud/maintainability]
{<img src="https://api.codeclimate.com/v1/badges/ef7488764a0d9805b37d/test_coverage" />}[https://codeclimate.com/github/codez/dry_crud/test_coverage]
{rdoc-image:https://github.com/codez/dry_crud/actions/workflows/build.yml/badge.svg}[https://github.com/codez/dry_crud/actions/workflows/build.yml]
{rdoc-image:https://api.codeclimate.com/v1/badges/ef7488764a0d9805b37d/maintainability}[https://codeclimate.com/github/codez/dry_crud/maintainability]
{rdoc-image:https://api.codeclimate.com/v1/badges/ef7488764a0d9805b37d/test_coverage}[https://codeclimate.com/github/codez/dry_crud/test_coverage]

dry_crud generates simple and extendable controllers, views and helpers that support you to DRY up the CRUD code in your Rails projects. List, search, sort, show, create, edit and destroy any model entries in just 5 minutes. Start with these artifacts and build a clean base to efficiently develop your application upon.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CustomAssertionsTest < ActiveSupport::TestCase
end

test 'assert count fails if count does not match' do
assert_raise(MiniTest::Assertion) do
assert_raise(Minitest::Assertion) do
assert_count 2, 'ba', 'barbabapa'
end
end
Expand All @@ -37,7 +37,7 @@ class CustomAssertionsTest < ActiveSupport::TestCase
end

test 'assert valid record fails for invalid' do
assert_raise(MiniTest::Assertion) do
assert_raise(Minitest::Assertion) do
assert_valid invalid_record
end
end
Expand All @@ -55,19 +55,19 @@ class CustomAssertionsTest < ActiveSupport::TestCase
end

test 'assert not valid fails if record valid' do
assert_raise(MiniTest::Assertion) do
assert_raise(Minitest::Assertion) do
assert_not_valid crud_test_models('AAAAA')
end
end

test 'assert not valid fails if record invalid and valid attrs given' do
assert_raise(MiniTest::Assertion) do
assert_raise(Minitest::Assertion) do
assert_not_valid invalid_record, :name, :rating, :children
end
end

test 'assert not valid fails if not all invalid attrs given' do
assert_raise(MiniTest::Assertion) do
assert_raise(Minitest::Assertion) do
assert_not_valid invalid_record, :name
end
end
Expand Down

0 comments on commit 30bac26

Please sign in to comment.