Skip to content

Commit 6b23dfe

Browse files
committed
Update dependencies
- Drop Ruby < 3.2 compatibility - Drop CSV < 24.0 compatibility - Test against Ruby 4.0 - Switch to appraisal2 - Fix Lint/RedundantDirGlobSort offense
1 parent 636b41d commit 6b23dfe

11 files changed

Lines changed: 36 additions & 38 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ updates:
33
- package-ecosystem: github-actions
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: weekly
7+
cooldown:
8+
default-days: 5
79
- package-ecosystem: bundler
810
directory: "/"
911
schedule:
10-
interval: daily
12+
interval: weekly
13+
cooldown:
14+
default-days: 5
1115
open-pull-requests-limit: 10

.github/workflows/rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest]
19-
ruby-version: ['3.4']
19+
ruby-version: ['4.0']
2020

2121
steps:
22-
- uses: actions/checkout@v6
22+
- uses: actions/checkout@v7.0.0
2323
- name: Set up Ruby
24-
uses: ruby/setup-ruby@v1
24+
uses: ruby/setup-ruby@v1.313.0
2525
with:
2626
ruby-version: ${{ matrix.ruby-version }}
2727
bundler-cache: true

.github/workflows/ruby.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
22-
gemfile: [ csv_22.0, mongoid_8.0, mongoid_9.0 ]
21+
ruby-version: ['3.2', '3.3', '3.4', '4.0']
22+
gemfile: [ csv_24.0, mongoid_8.0, mongoid_9.0 ]
2323
channel: ['stable']
2424

2525
include:
26-
- ruby-version: '3.1'
27-
gemfile: csv_edge
28-
channel: 'experimental'
2926
- ruby-version: '3.2'
3027
gemfile: csv_edge
3128
channel: 'experimental'
@@ -39,15 +36,6 @@ jobs:
3936
gemfile: csv_edge
4037
channel: 'experimental'
4138

42-
- ruby-version: '2.7'
43-
gemfile: mongoid_edge
44-
channel: 'experimental'
45-
- ruby-version: '3.0'
46-
gemfile: mongoid_edge
47-
channel: 'experimental'
48-
- ruby-version: '3.1'
49-
gemfile: mongoid_edge
50-
channel: 'experimental'
5139
- ruby-version: '3.2'
5240
gemfile: mongoid_edge
5341
channel: 'experimental'
@@ -67,16 +55,16 @@ jobs:
6755
continue-on-error: ${{ matrix.channel != 'stable' }}
6856

6957
steps:
70-
- uses: actions/checkout@v6
58+
- uses: actions/checkout@v7.0.0
7159
- name: Set up Ruby
72-
uses: ruby/setup-ruby@v1
60+
uses: ruby/setup-ruby@v1.313.0
7361
with:
7462
ruby-version: ${{ matrix.ruby-version }}
7563
bundler-cache: true
7664
- name: Run tests
7765
run: bundle exec rake test:ruby
7866
- name: Coveralls Parallel
79-
uses: coverallsapp/github-action@master
67+
uses: coverallsapp/github-action@v2.3.7
8068
with:
8169
github-token: ${{ secrets.github_token }}
8270
flag-name: run-${{ matrix.ruby-version }}
@@ -88,7 +76,7 @@ jobs:
8876
runs-on: ubuntu-latest
8977
steps:
9078
- name: Coveralls Finished
91-
uses: coverallsapp/github-action@v2
79+
uses: coverallsapp/github-action@v2.3.7
9280
with:
9381
github-token: ${{ secrets.github_token }}
9482
parallel-finished: true

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ plugins:
66
- rubocop-rake
77

88
AllCops:
9-
TargetRailsVersion: 6.1
10-
TargetRubyVersion: 2.7
9+
TargetRailsVersion: 7.2
10+
TargetRubyVersion: 3.2
1111
NewCops: enable
1212
DisplayStyleGuide: true
1313
ExtraDetails: true

Appraisals

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
appraise 'csv-22.0' do
4-
gem 'client_side_validations', '~> 22.0'
3+
appraise 'csv-24.0' do
4+
gem 'client_side_validations', '~> 24.0'
55
end
66

77
appraise 'csv-edge' do

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 15.0.0 / 2026-06-19
4+
5+
* [FEATURE] Drop Ruby < 3.2 support
6+
* [FEATURE] Drop Client Side Validations < 24.0 compatibility
7+
* [ENHANCEMENT] Update development dependencies
8+
39
## 14.1.0 / 2024-05-01
410

511
* [FEATURE] Add Mongoid 9.0 compatibility

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

3-
source 'https://rubygems.org'
3+
source 'https://rubygems.org', cooldown: 5
44

55
gemspec
66

7-
gem 'appraisal'
7+
gem 'appraisal2'
88
gem 'byebug'
99
gem 'database_cleaner-mongoid'
1010
gem 'm'

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace :test do
1616
desc %(Test Ruby code)
1717
Rake::TestTask.new(:ruby) do |test|
1818
test.libs << 'lib' << 'test'
19-
test.test_files = Dir.glob("#{File.dirname(__FILE__)}/test/**/test_*.rb").sort
19+
test.test_files = Dir.glob("#{File.dirname(__FILE__)}/test/**/test_*.rb")
2020
test.warning = false
2121
end
2222
end

client_side_validations-mongoid.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
2525
spec.require_paths = ['lib']
2626

2727
spec.platform = Gem::Platform::RUBY
28-
spec.required_ruby_version = '>= 2.7'
28+
spec.required_ruby_version = '>= 3.2'
2929

30-
spec.add_dependency 'client_side_validations', '>= 22.0'
30+
spec.add_dependency 'client_side_validations', '>= 24.0'
3131
spec.add_dependency 'mongoid', '>= 8.0'
3232
end
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# This file was generated by Appraisal
1+
# This file was generated by Appraisal2
22

3-
source "https://rubygems.org"
3+
source "https://rubygems.org", :cooldown => 5
44

5-
gem "appraisal"
5+
gem "appraisal2"
66
gem "byebug"
77
gem "database_cleaner-mongoid"
88
gem "m"
@@ -18,6 +18,6 @@ gem "rubocop-rake"
1818
gem "simplecov"
1919
gem "simplecov-lcov"
2020
gem "sinatra"
21-
gem "client_side_validations", "~> 22.0"
21+
gem "client_side_validations", "~> 24.0"
2222

23-
gemspec path: "../"
23+
gemspec :path => "../"

0 commit comments

Comments
 (0)