Skip to content

Commit 184ce98

Browse files
committed
Update ruby versions
1 parent 0892dc9 commit 184ce98

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
ruby-version: ['2.7', '3.0', '3.1']
15+
ruby-version: ['3.0', '3.1', '3.2']
1616
haml: [true, false]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
@@ -30,11 +30,11 @@ jobs:
3030
name: Lint
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3434
- name: Set up Ruby
3535
uses: ruby/setup-ruby@v1
3636
with:
37-
ruby-version: 2.7
37+
ruby-version: 3.0
3838
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3939
- name: Run rubocop
4040
run: bundle exec rubocop
@@ -43,11 +43,11 @@ jobs:
4343
name: Coverage
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v4
4747
- name: Set up Ruby
4848
uses: ruby/setup-ruby@v1
4949
with:
50-
ruby-version: 2.7
50+
ruby-version: 3.0
5151
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
5252
- uses: paambaati/[email protected]
5353
env:

MIT-LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2010-2013 Pascal Zumkehr
1+
Copyright (c) 2010-2023 Pascal Zumkehr
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
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
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
19+
THE SOFTWARE.

README.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
= DRY CRUD
22

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

77
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.
88

lib/generators/dry_crud/templates/test/helpers/custom_assertions_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CustomAssertionsTest < ActiveSupport::TestCase
2525
end
2626

2727
test 'assert count fails if count does not match' do
28-
assert_raise(MiniTest::Assertion) do
28+
assert_raise(Minitest::Assertion) do
2929
assert_count 2, 'ba', 'barbabapa'
3030
end
3131
end
@@ -37,7 +37,7 @@ class CustomAssertionsTest < ActiveSupport::TestCase
3737
end
3838

3939
test 'assert valid record fails for invalid' do
40-
assert_raise(MiniTest::Assertion) do
40+
assert_raise(Minitest::Assertion) do
4141
assert_valid invalid_record
4242
end
4343
end
@@ -55,19 +55,19 @@ class CustomAssertionsTest < ActiveSupport::TestCase
5555
end
5656

5757
test 'assert not valid fails if record valid' do
58-
assert_raise(MiniTest::Assertion) do
58+
assert_raise(Minitest::Assertion) do
5959
assert_not_valid crud_test_models('AAAAA')
6060
end
6161
end
6262

6363
test 'assert not valid fails if record invalid and valid attrs given' do
64-
assert_raise(MiniTest::Assertion) do
64+
assert_raise(Minitest::Assertion) do
6565
assert_not_valid invalid_record, :name, :rating, :children
6666
end
6767
end
6868

6969
test 'assert not valid fails if not all invalid attrs given' do
70-
assert_raise(MiniTest::Assertion) do
70+
assert_raise(Minitest::Assertion) do
7171
assert_not_valid invalid_record, :name
7272
end
7373
end

0 commit comments

Comments
 (0)