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
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ jobs:
strategy:
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
gemfile:
- gemfiles/Gemfile.rails60
- gemfiles/Gemfile.rails61
- gemfiles/Gemfile.rails70
- gemfiles/Gemfile.rails71
- gemfiles/Gemfile.rails72
- gemfiles/Gemfile.rails80
exclude:
# rails 7.0 requires ruby >= 2.7
# rails 8.0 requires ruby >= 3.2
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
- ruby-version: '2.6'
gemfile: 'gemfiles/Gemfile.rails70'
- ruby-version: '3.1'
gemfile: 'gemfiles/Gemfile.rails80'

name: Ruby ${{ matrix.ruby-version }} / Bundle ${{ matrix.gemfile }}

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 Ruby 3.2, 3.3, Rails 7.1, 7.2 and 8.0. Drop support for Ruby 3.0, Rails 6.1

## 1.1.1 / 2022-12-08
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.rails60 → gemfiles/Gemfile.rails71
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 6.0'
gem 'rails', '~> 7.1.0'
3 changes: 1 addition & 2 deletions gemfiles/Gemfile.rails61 → gemfiles/Gemfile.rails72
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 6.1.0'

gem 'rails', '~> 7.2.0'
5 changes: 5 additions & 0 deletions gemfiles/Gemfile.rails80
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 8.0.0'
6 changes: 6 additions & 0 deletions lib/tnql.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
require 'active_support/deprecation'
begin
require 'active_support/deprecator'
rescue LoadError
# Ignore error: 'active_support/deprecator' is not defined on active_support 7.0
end
require 'active_support/time'

require 'tnql/version'
Expand Down
4 changes: 2 additions & 2 deletions tnql.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.7'
spec.required_ruby_version = '>= 3.1'

spec.add_dependency 'activesupport', '>= 3.2.18', '< 7.1'
spec.add_dependency 'activesupport', '>= 7.0', '< 8.1'
spec.add_dependency 'chronic', '~> 0.3'
spec.add_dependency 'ndr_support', '>= 3.0', '< 6'
spec.add_dependency 'treetop', '>= 1.4.10'
Expand Down
Loading