Skip to content
Merged
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
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
interval: weekly
cooldown:
default-days: 5
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
interval: weekly
cooldown:
default-days: 5
open-pull-requests-limit: 10
12 changes: 4 additions & 8 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ on:
jobs:
rubocop:
name: Rubocop
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
strategy:
matrix:
os: [ubuntu-latest]
ruby-version: ['3.4']

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7.0.0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1.313.0
with:
ruby-version: ${{ matrix.ruby-version }}
ruby-version: '4.0'
bundler-cache: true
- name: Ruby linter
run: bundle exec rubocop
24 changes: 6 additions & 18 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ jobs:

strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
gemfile: [ csv_22.0, mongoid_8.0, mongoid_9.0 ]
ruby-version: ['3.2', '3.3', '3.4', '4.0']
gemfile: [ csv_24.0, mongoid_9.0 ]
channel: ['stable']

include:
- ruby-version: '3.1'
gemfile: csv_edge
channel: 'experimental'
- ruby-version: '3.2'
gemfile: csv_edge
channel: 'experimental'
Expand All @@ -39,15 +36,6 @@ jobs:
gemfile: csv_edge
channel: 'experimental'

- ruby-version: '2.7'
gemfile: mongoid_edge
channel: 'experimental'
- ruby-version: '3.0'
gemfile: mongoid_edge
channel: 'experimental'
- ruby-version: '3.1'
gemfile: mongoid_edge
channel: 'experimental'
- ruby-version: '3.2'
gemfile: mongoid_edge
channel: 'experimental'
Expand All @@ -67,16 +55,16 @@ jobs:
continue-on-error: ${{ matrix.channel != 'stable' }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7.0.0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1.313.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test:ruby
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.ruby-version }}
Expand All @@ -88,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ plugins:
- rubocop-rake

AllCops:
TargetRailsVersion: 6.1
TargetRubyVersion: 2.7
TargetRailsVersion: 7.2
TargetRubyVersion: 3.2
NewCops: enable
DisplayStyleGuide: true
ExtraDetails: true
Expand Down
8 changes: 2 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# frozen_string_literal: true

appraise 'csv-22.0' do
gem 'client_side_validations', '~> 22.0'
appraise 'csv-24.0' do
gem 'client_side_validations', '~> 24.0'
end

appraise 'csv-edge' do
gem 'client_side_validations', git: 'https://github.com/DavyJonesLocker/client_side_validations.git', branch: 'main'
end

appraise 'mongoid-8.0' do
gem 'mongoid', '~> 8.0'
end

appraise 'mongoid-9.0' do
gem 'mongoid', '~> 9.0'
end
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 15.0.0 / 2026-06-19

* [FEATURE] Drop Ruby < 3.2 support
* [FEATURE] Drop Client Side Validations < 24.0 compatibility
* [FEATURE] Drop Mongoid < 9.0 compatibility
* [ENHANCEMENT] Update development dependencies

## 14.1.0 / 2024-05-01

* [FEATURE] Add Mongoid 9.0 compatibility
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

source 'https://rubygems.org'
source 'https://rubygems.org', cooldown: 5

gemspec

gem 'appraisal'
gem 'appraisal2'
gem 'byebug'
gem 'database_cleaner-mongoid'
gem 'm'
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace :test do
desc %(Test Ruby code)
Rake::TestTask.new(:ruby) do |test|
test.libs << 'lib' << 'test'
test.test_files = Dir.glob("#{File.dirname(__FILE__)}/test/**/test_*.rb").sort
test.test_files = Dir.glob("#{File.dirname(__FILE__)}/test/**/test_*.rb")
test.warning = false
end
end
6 changes: 3 additions & 3 deletions client_side_validations-mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.7'
spec.required_ruby_version = '>= 3.2'

spec.add_dependency 'client_side_validations', '>= 22.0'
spec.add_dependency 'mongoid', '>= 8.0'
spec.add_dependency 'client_side_validations', '>= 24.0'
spec.add_dependency 'mongoid', '>= 9.0'
end
10 changes: 5 additions & 5 deletions gemfiles/csv_22.0.gemfile → gemfiles/csv_24.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This file was generated by Appraisal
# This file was generated by Appraisal2

source "https://rubygems.org"
source "https://rubygems.org", :cooldown => 5

gem "appraisal"
gem "appraisal2"
gem "byebug"
gem "database_cleaner-mongoid"
gem "m"
Expand All @@ -18,6 +18,6 @@ gem "rubocop-rake"
gem "simplecov"
gem "simplecov-lcov"
gem "sinatra"
gem "client_side_validations", "~> 22.0"
gem "client_side_validations", "~> 24.0"

gemspec path: "../"
gemspec :path => "../"
23 changes: 0 additions & 23 deletions gemfiles/mongoid_8.0.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion lib/client_side_validations/mongoid/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ClientSideValidations
module Mongoid
VERSION = '14.1.0'
VERSION = '15.0.0'
end
end