Skip to content
Open

V4 #418

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
34 changes: 5 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.5 # same as .rubocop.yml, recommended Rails & Ruby version for Gemfile
ruby-version: 3.4.9 # same as .rubocop.yml, recommended Rails & Ruby version for Gemfile
bundler-cache: true

- name: Run linters
Expand All @@ -33,12 +33,11 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.2'
- '3.3'
- '3.4'
- '4.0'
gemfile:
- rails_7_0
- rails_7_0_1
- rails_7_1
- rails_7_2
- rails_8_0
Expand All @@ -48,31 +47,8 @@ jobs:
- vips
- mini_magick
exclude:
- ruby: '3.1'
gemfile: rails_8_0
- ruby: '3.1'
gemfile: rails_8_1
- ruby: '3.1'
gemfile: rails_next
- ruby: '3.2'
gemfile: rails_8_1
- ruby: '3.2'
gemfile: rails_next
- ruby: '3.3'
gemfile: rails_7_0
- ruby: '3.4'
gemfile: rails_7_0
- ruby: '3.4'
gemfile: rails_7_1
- ruby: '3.4'
gemfile: rails_7_2
include:
- ruby: '3.0'
gemfile: rails_6_1_4
image_processor: vips
- ruby: '3.0'
gemfile: rails_6_1_4
image_processor: mini_magick
- ruby: '4.0'
gemfile: rails_7_0_1
steps:
- name: Install imagemagick
uses: mfinelli/setup-imagemagick@v6
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inherit_gem:
rubocop-rails-omakase: rubocop.yml

AllCops:
TargetRubyVersion: 3.4.5 # same as .github/workflows/main.yml
TargetRubyVersion: 3.4.9 # same as .github/workflows/main.yml
Exclude:
- 'bin/*'
- 'config/locales/*'
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.5
3.4.9
13 changes: 10 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
- Unreleased

- 3.0.4
# Unreleased

- 4.0.0
- **BREAKING**
- Drop support for Rails 6.1.4, 7.0.0 (we keep support for Rails >= 7.0.1)
- Drop support for Ruby 3.1, 3.2 in CI matrix, since the recommended version for Rails >= 7.0.1 is >= 3.3
- Add support for Ruby 4.0 in CI matrix

# Released
- 3.0.4
- Add `filename` error options for direct uploads (https://github.com/igorkasyanchuk/active_storage_validations/pull/414).

- 3.0.3
Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gemspec

# This Rails version will be the one used when running `bundle exec rake test` locally
# Uncomment the line then run `bundle install`
gem "rails", "8.0.4"
gem "rails", "8.1.2"
# gem "sqlite3", ">= 2.5"
# gem "nokogiri", ">= 1.18"

Expand All @@ -27,7 +27,7 @@ group :development, :test do
# gem "aws-sdk-s3", require: false

# Linters
gem "rubocop", "~> 1.80", ">= 1.80.2", require: false
gem "rubocop-performance", "~> 1.26", ">= 1.26.0", require: false
gem "rubocop-rails-omakase", "~> 1.1", ">= 1.1.0", require: false
gem "rubocop", "~> 1.85", require: false
gem "rubocop-performance", "~> 1.26", require: false
gem "rubocop-rails-omakase", "~> 1.1", require: false
end
150 changes: 80 additions & 70 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,81 +2,84 @@ PATH
remote: .
specs:
active_storage_validations (3.0.4)
activejob (>= 6.1.4)
activemodel (>= 6.1.4)
activestorage (>= 6.1.4)
activesupport (>= 6.1.4)
activejob (>= 7.0.1)
activemodel (>= 7.0.1)
activestorage (>= 7.0.1)
activesupport (>= 7.0.1)
marcel (>= 1.0.3)

GEM
remote: https://rubygems.org/
specs:
actioncable (8.0.4)
actionpack (= 8.0.4)
activesupport (= 8.0.4)
action_text-trix (2.1.17)
railties
actioncable (8.1.2)
actionpack (= 8.1.2)
activesupport (= 8.1.2)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (8.0.4)
actionpack (= 8.0.4)
activejob (= 8.0.4)
activerecord (= 8.0.4)
activestorage (= 8.0.4)
activesupport (= 8.0.4)
actionmailbox (8.1.2)
actionpack (= 8.1.2)
activejob (= 8.1.2)
activerecord (= 8.1.2)
activestorage (= 8.1.2)
activesupport (= 8.1.2)
mail (>= 2.8.0)
actionmailer (8.0.4)
actionpack (= 8.0.4)
actionview (= 8.0.4)
activejob (= 8.0.4)
activesupport (= 8.0.4)
actionmailer (8.1.2)
actionpack (= 8.1.2)
actionview (= 8.1.2)
activejob (= 8.1.2)
activesupport (= 8.1.2)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (8.0.4)
actionview (= 8.0.4)
activesupport (= 8.0.4)
actionpack (8.1.2)
actionview (= 8.1.2)
activesupport (= 8.1.2)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actiontext (8.0.4)
actionpack (= 8.0.4)
activerecord (= 8.0.4)
activestorage (= 8.0.4)
activesupport (= 8.0.4)
actiontext (8.1.2)
action_text-trix (~> 2.1.15)
actionpack (= 8.1.2)
activerecord (= 8.1.2)
activestorage (= 8.1.2)
activesupport (= 8.1.2)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (8.0.4)
activesupport (= 8.0.4)
actionview (8.1.2)
activesupport (= 8.1.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (8.0.4)
activesupport (= 8.0.4)
activejob (8.1.2)
activesupport (= 8.1.2)
globalid (>= 0.3.6)
activemodel (8.0.4)
activesupport (= 8.0.4)
activerecord (8.0.4)
activemodel (= 8.0.4)
activesupport (= 8.0.4)
activemodel (8.1.2)
activesupport (= 8.1.2)
activerecord (8.1.2)
activemodel (= 8.1.2)
activesupport (= 8.1.2)
timeout (>= 0.4.0)
activestorage (8.0.4)
actionpack (= 8.0.4)
activejob (= 8.0.4)
activerecord (= 8.0.4)
activesupport (= 8.0.4)
activestorage (8.1.2)
actionpack (= 8.1.2)
activejob (= 8.1.2)
activerecord (= 8.1.2)
activesupport (= 8.1.2)
marcel (~> 1.0)
activesupport (8.0.4)
activesupport (8.1.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
json
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
Expand Down Expand Up @@ -123,6 +126,9 @@ GEM
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.9.1)
json-schema (6.2.0)
addressable (~> 2.8)
bigdecimal (>= 3.1, < 5)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
logger (1.6.5)
Expand All @@ -135,14 +141,16 @@ GEM
net-pop
net-smtp
marcel (1.0.4)
mcp (0.9.0)
json-schema (>= 4.1)
method_source (1.1.0)
mini_magick (5.1.2)
benchmark
logger
mini_mime (1.1.5)
minitest (5.25.4)
minitest-focus (1.4.0)
minitest (>= 4, < 6)
minitest (5.27.0)
minitest-focus (1.4.1)
minitest (> 5.0)
minitest-mock_expectations (1.2.0)
minitest-stub_any_instance (1.0.3)
net-imap (0.5.8)
Expand Down Expand Up @@ -178,7 +186,7 @@ GEM
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
prism (1.9.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -195,30 +203,30 @@ GEM
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails (8.0.4)
actioncable (= 8.0.4)
actionmailbox (= 8.0.4)
actionmailer (= 8.0.4)
actionpack (= 8.0.4)
actiontext (= 8.0.4)
actionview (= 8.0.4)
activejob (= 8.0.4)
activemodel (= 8.0.4)
activerecord (= 8.0.4)
activestorage (= 8.0.4)
activesupport (= 8.0.4)
rails (8.1.2)
actioncable (= 8.1.2)
actionmailbox (= 8.1.2)
actionmailer (= 8.1.2)
actionpack (= 8.1.2)
actiontext (= 8.1.2)
actionview (= 8.1.2)
activejob (= 8.1.2)
activemodel (= 8.1.2)
activerecord (= 8.1.2)
activestorage (= 8.1.2)
activesupport (= 8.1.2)
bundler (>= 1.15.0)
railties (= 8.0.4)
railties (= 8.1.2)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.0.4)
actionpack (= 8.0.4)
activesupport (= 8.0.4)
railties (8.1.2)
actionpack (= 8.1.2)
activesupport (= 8.1.2)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
Expand All @@ -233,20 +241,21 @@ GEM
reline (0.6.0)
io-console (~> 0.5)
rexml (3.4.0)
rubocop (1.80.2)
rubocop (1.85.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
mcp (~> 0.6)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.46.0, < 2.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.46.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
prism (~> 1.7)
rubocop-performance (1.26.0)
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
Expand Down Expand Up @@ -315,14 +324,15 @@ DEPENDENCIES
active_storage_validations!
combustion (~> 1.3)
mini_magick (>= 4.9.5)
minitest (>= 5.0, < 6.0)
minitest-focus (~> 1.4)
minitest-mock_expectations (~> 1.2, >= 1.2.0)
minitest-stub_any_instance (~> 1.0, >= 1.0.3)
pry
rails (= 8.0.4)
rubocop (~> 1.80, >= 1.80.2)
rubocop-performance (~> 1.26, >= 1.26.0)
rubocop-rails-omakase (~> 1.1, >= 1.1.0)
rails (= 8.1.2)
rubocop (~> 1.85)
rubocop-performance (~> 1.26)
rubocop-rails-omakase (~> 1.1)
ruby-vips (>= 2.1.0)
simplecov
sqlite3
Expand Down
Loading
Loading