Skip to content

Commit 5483a34

Browse files
authored
Merge pull request #58 from DavyJonesLocker/updates
Update gem
2 parents 35f1924 + 289f9b7 commit 5483a34

17 files changed

+120
-74
lines changed

.github/dependabot.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: bundler
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
- package-ecosystem: bundler
8+
directory: "/"
9+
schedule:
10+
interval: daily
11+
open-pull-requests-limit: 10

.github/workflows/rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ruby-version: ['3.2']
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Set up Ruby
2424
uses: ruby/setup-ruby@v1
2525
with:

.github/workflows/ruby.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
22-
gemfile: [ csv_21.0, mongoid_8.0 ]
21+
ruby-version: ['2.7', '3.0', '3.1', '3.2']
22+
gemfile: [ csv_22.0, mongoid_8.0 ]
2323
experimental: [false]
2424

2525
include:
2626
- ruby-version: 'head'
2727
gemfile: mongoid_edge
2828
experimental: true
29-
- ruby-version: '2.6'
30-
gemfile: csv_edge
31-
experimental: true
3229
- ruby-version: '2.7'
3330
gemfile: csv_edge
3431
experimental: true
@@ -44,9 +41,6 @@ jobs:
4441
- ruby-version: 'head'
4542
gemfile: csv_edge
4643
experimental: true
47-
- ruby-version: '2.6'
48-
gemfile: mongoid_edge
49-
experimental: true
5044
- ruby-version: '2.7'
5145
gemfile: mongoid_edge
5246
experimental: true
@@ -69,7 +63,7 @@ jobs:
6963
continue-on-error: ${{ matrix.experimental }}
7064

7165
steps:
72-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
7367
- name: Set up Ruby
7468
uses: ruby/setup-ruby@v1
7569
with:

.rubocop.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
require:
22
- rubocop-minitest
3+
- rubocop-packaging
34
- rubocop-performance
45
- rubocop-rails
56
- rubocop-rake
67

78
AllCops:
8-
TargetRailsVersion: 5.2
9-
TargetRubyVersion: 2.6
9+
TargetRailsVersion: 6.1
10+
TargetRubyVersion: 2.7
1011
NewCops: enable
1112
Exclude:
1213
- 'gemfiles/**/*'

Appraisals

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

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

77
appraise 'csv-edge' do

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 14.0.0 / 2023-09-06
4+
5+
* [FEATURE] Drop Ruby 2.6 support
6+
* [FEATURE] Drop Client Side Validations < 22.0 compatibility
7+
* [ENHANCEMENT] Update development dependencies
8+
39
## 13.0.0 / 2022-09-18
410

511
* [FEATURE] Drop Ruby 2.5 support

Gemfile

+16-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,19 @@ source 'https://rubygems.org'
44

55
gemspec
66

7-
gem 'rubocop', '~> 1.41'
8-
gem 'rubocop-minitest', '~> 0.30.0'
9-
gem 'rubocop-performance', '~> 1.15'
10-
gem 'rubocop-rails', '~> 2.17'
11-
gem 'rubocop-rake', '~> 0.6.0'
7+
gem 'appraisal'
8+
gem 'byebug'
9+
gem 'database_cleaner-mongoid'
10+
gem 'm'
11+
gem 'minitest'
12+
gem 'mocha'
13+
gem 'rake'
14+
gem 'rubocop'
15+
gem 'rubocop-minitest'
16+
gem 'rubocop-packaging'
17+
gem 'rubocop-performance'
18+
gem 'rubocop-rails'
19+
gem 'rubocop-rake'
20+
gem 'simplecov'
21+
gem 'simplecov-lcov'
22+
gem 'sinatra'

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Geremia Taglialatela, Brian Cardarella
3+
Copyright (c) 2023 Geremia Taglialatela, Brian Cardarella
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

client_side_validations-mongoid.gemspec

+6-16
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,16 @@ Gem::Specification.new do |spec|
1717

1818
spec.metadata['rubygems_mfa_required'] = 'true'
1919

20-
spec.metadata['bug_tracker_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-simple_form/issues'
21-
spec.metadata['changelog_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-simple_form/blob/main/CHANGELOG.md'
22-
spec.metadata['source_code_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-simple_form'
20+
spec.metadata['bug_tracker_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-mongoid/issues'
21+
spec.metadata['changelog_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-mongoid/blob/main/CHANGELOG.md'
22+
spec.metadata['source_code_uri'] = 'https://github.com/DavyJonesLocker/client_side_validations-mongoid'
2323

24-
spec.files = `git ls-files -z -- {CHANGELOG.md,LICENSE.md,README.md,lib}`.split("\x0")
24+
spec.files = Dir.glob('{CHANGELOG.md,LICENSE.md,README.md,lib/**/*.rb}', File::FNM_DOTMATCH)
2525
spec.require_paths = ['lib']
2626

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

30-
spec.add_dependency 'client_side_validations', '~> 21.0'
30+
spec.add_dependency 'client_side_validations', '~> 22.0'
3131
spec.add_dependency 'mongoid', '>= 8.0', '< 9'
32-
33-
spec.add_development_dependency 'appraisal', '~> 2.4'
34-
spec.add_development_dependency 'byebug', '~> 11.1'
35-
spec.add_development_dependency 'database_cleaner-mongoid', '~> 2.0'
36-
spec.add_development_dependency 'm', '~> 1.6'
37-
spec.add_development_dependency 'minitest', '~> 5.16'
38-
spec.add_development_dependency 'mocha', '~> 2.0'
39-
spec.add_development_dependency 'rake', '~> 13.0'
40-
spec.add_development_dependency 'simplecov', '~> 0.22.0'
41-
spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
4232
end

gemfiles/csv_21.0.gemfile

-12
This file was deleted.

gemfiles/csv_22.0.gemfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "appraisal"
6+
gem "byebug"
7+
gem "database_cleaner-mongoid"
8+
gem "m"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "rubocop"
13+
gem "rubocop-minitest"
14+
gem "rubocop-packaging"
15+
gem "rubocop-performance"
16+
gem "rubocop-rails"
17+
gem "rubocop-rake"
18+
gem "simplecov"
19+
gem "simplecov-lcov"
20+
gem "sinatra"
21+
gem "client_side_validations", "~> 22.0"
22+
23+
gemspec path: "../"

gemfiles/csv_edge.gemfile

+16-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22

33
source "https://rubygems.org"
44

5-
gem "rubocop", "~> 1.36"
6-
gem "rubocop-minitest", "~> 0.22.1"
7-
gem "rubocop-performance", "~> 1.15"
8-
gem "rubocop-rails", "~> 2.16"
9-
gem "rubocop-rake", "~> 0.6.0"
5+
gem "appraisal"
6+
gem "byebug"
7+
gem "database_cleaner-mongoid"
8+
gem "m"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "rubocop"
13+
gem "rubocop-minitest"
14+
gem "rubocop-packaging"
15+
gem "rubocop-performance"
16+
gem "rubocop-rails"
17+
gem "rubocop-rake"
18+
gem "simplecov"
19+
gem "simplecov-lcov"
20+
gem "sinatra"
1021
gem "client_side_validations", git: "https://github.com/DavyJonesLocker/client_side_validations.git", branch: "main"
1122

1223
gemspec path: "../"

gemfiles/mongoid_8.0.gemfile

+16-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22

33
source "https://rubygems.org"
44

5-
gem "rubocop", "~> 1.36"
6-
gem "rubocop-minitest", "~> 0.22.1"
7-
gem "rubocop-performance", "~> 1.15"
8-
gem "rubocop-rails", "~> 2.16"
9-
gem "rubocop-rake", "~> 0.6.0"
5+
gem "appraisal"
6+
gem "byebug"
7+
gem "database_cleaner-mongoid"
8+
gem "m"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "rubocop"
13+
gem "rubocop-minitest"
14+
gem "rubocop-packaging"
15+
gem "rubocop-performance"
16+
gem "rubocop-rails"
17+
gem "rubocop-rake"
18+
gem "simplecov"
19+
gem "simplecov-lcov"
20+
gem "sinatra"
1021
gem "mongoid", "~> 8.0"
1122

1223
gemspec path: "../"

gemfiles/mongoid_edge.gemfile

+16-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
22

33
source "https://rubygems.org"
44

5-
gem "rubocop", "~> 1.36"
6-
gem "rubocop-minitest", "~> 0.22.1"
7-
gem "rubocop-performance", "~> 1.15"
8-
gem "rubocop-rails", "~> 2.16"
9-
gem "rubocop-rake", "~> 0.6.0"
5+
gem "appraisal"
6+
gem "byebug"
7+
gem "database_cleaner-mongoid"
8+
gem "m"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "rubocop"
13+
gem "rubocop-minitest"
14+
gem "rubocop-packaging"
15+
gem "rubocop-performance"
16+
gem "rubocop-rails"
17+
gem "rubocop-rake"
18+
gem "simplecov"
19+
gem "simplecov-lcov"
20+
gem "sinatra"
1021
gem "mongoid", git: "https://github.com/mongodb/mongoid.git", branch: "master"
1122

1223
gemspec path: "../"

lib/client_side_validations/mongoid/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module ClientSideValidations
44
module Mongoid
5-
VERSION = '13.0.0'
5+
VERSION = '14.0.0'
66
end
77
end

test/base_helper.rb

-4
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@
2121
end
2222

2323
require 'rubygems'
24-
require 'bundler/setup'
2524
require 'minitest/autorun'
2625
require 'byebug'
2726
require 'mocha/minitest'
2827
require 'rails'
2928

3029
require 'database_cleaner-mongoid'
3130

32-
# MiniTest 4 support
33-
MiniTest::Test = MiniTest::Unit::TestCase unless defined?(MiniTest::Test)
34-
3531
module ClientSideValidations; end

test/mongoid/cases/test_base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'mongoid/cases/helper'
44

55
module ClientSideValidations
6-
class MongoidTestBase < MiniTest::Test
6+
class MongoidTestBase < Minitest::Test
77
include ::Mongoid::Validatable
88

99
def setup

0 commit comments

Comments
 (0)