Skip to content
Open
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
19 changes: 2 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,18 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3.4'
- '4.0'
gemfile:
- gemfiles/Gemfile.rails61
- gemfiles/Gemfile.rails70
- gemfiles/Gemfile.rails71
- gemfiles/Gemfile.rails72
- gemfiles/Gemfile.rails80
- gemfiles/Gemfile.rails81
exclude:
# rails 6.1 requires ruby < 3.4
- ruby-version: '3.4'
gemfile: 'gemfiles/Gemfile.rails61'
# rails 7.0 requires ruby >= 2.7, < 3.4
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
- ruby-version: '3.4'
gemfile: 'gemfiles/Gemfile.rails70'
# rails 7.2 requires ruby >= 3.1
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
- ruby-version: '3.0'
gemfile: 'gemfiles/Gemfile.rails72'
# rails 8.0 requires ruby >= 3.2
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
- ruby-version: '3.0'
gemfile: 'gemfiles/Gemfile.rails80'
- ruby-version: '3.1'
gemfile: 'gemfiles/Gemfile.rails80'

Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased]
* no unreleased changes
### Fixed
* Support Rails 8.1, Ruby 4.0

## 2.4.3 / 2025-11-07
### Fixed
Expand Down
12 changes: 0 additions & 12 deletions gemfiles/Gemfile.rails61

This file was deleted.

12 changes: 0 additions & 12 deletions gemfiles/Gemfile.rails70

This file was deleted.

3 changes: 0 additions & 3 deletions gemfiles/Gemfile.rails71
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ source 'https://rubygems.org'
gemspec path: '..'

gem 'rails', '~> 7.1.0'

# sqlite3 2.x is not supported on ruby 3.0
gem 'sqlite3', '~> 1.7'
5 changes: 5 additions & 0 deletions gemfiles/Gemfile.rails81
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 8.1.0'
24 changes: 2 additions & 22 deletions ndr_error.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@ Gem::Specification.new do |s|
s.files = Dir['{app,config,db,lib}/**/*', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md',
'MIT-LICENSE', 'Rakefile', 'README.md'] - ['.travis.yml']

s.required_ruby_version = '>= 3.0'
s.required_ruby_version = '>= 3.2'

s.add_dependency 'rails', '>= 6.1', '< 8.1'

# Support rails 6.1 with Ruby 3.1
s.add_dependency 'net-imap'
s.add_dependency 'net-pop'
s.add_dependency 'net-smtp'
s.add_dependency 'rails', '>= 7.1', '< 8.2'

s.add_dependency 'will_paginate'

Expand All @@ -35,23 +30,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'pry'
s.add_development_dependency 'puma'

# Rails 6.1 and 7.0 do not support sqlite3 2.x; they specify gem "sqlite3", "~> 1.4"
# in lib/active_record/connection_adapters/sqlite3_adapter.rb
# cf. gemfiles/Gemfile.rails70
s.add_development_dependency 'sqlite3'

# Workaround build issue on GitHub Actions with ruby <= 3.1 when installing sass-embedded
# gem version 1.81.0: NoMethodError: undefined method `parse' for #<Psych::Parser...>
# https://bugs.ruby-lang.org/issues/19371
s.add_development_dependency 'psych', '< 5'

# Workaround build issue on GitHub Actions with ruby <= 3.1 when installing sass-embedded
# Versions 1.77.0 and above require ruby >= 3.2 for packaged x86_64-linux binaries
# but say they're compatible with ruby 3.1.
# 1.76.0 has a bug that was fixed in 1.77.1, which we can't use yet.
# https://github.com/sass/dart-sass/issues/2239
s.add_development_dependency 'sass-embedded', '~> 1.75.0' if RUBY_VERSION.start_with?('3.1') # rubocop:disable Gemspec/RubyVersionGlobalsUsage

s.add_development_dependency 'mocha'
s.add_development_dependency 'test-unit', '~> 3.0'

Expand Down