diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ffbd83f..ab9ca29 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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:
@@ -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
@@ -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:
diff --git a/MIT-LICENSE b/MIT-LICENSE
index 62c2c08..8811ceb 100644
--- a/MIT-LICENSE
+++ b/MIT-LICENSE
@@ -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
@@ -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.
\ No newline at end of file
+THE SOFTWARE.
diff --git a/README.rdoc b/README.rdoc
index a413568..966b564 100644
--- a/README.rdoc
+++ b/README.rdoc
@@ -1,8 +1,8 @@
= DRY CRUD
-{}[https://github.com/codez/dry_crud/actions/workflows/build.yml]
-{}[https://codeclimate.com/github/codez/dry_crud/maintainability]
-{}[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.
diff --git a/lib/generators/dry_crud/templates/test/helpers/custom_assertions_test.rb b/lib/generators/dry_crud/templates/test/helpers/custom_assertions_test.rb
index 53526a4..e049805 100644
--- a/lib/generators/dry_crud/templates/test/helpers/custom_assertions_test.rb
+++ b/lib/generators/dry_crud/templates/test/helpers/custom_assertions_test.rb
@@ -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
@@ -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
@@ -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