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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@0dafeac902942906541bc140009cdbf32665b601 # ruby/setup-ruby@v1 see https://github.com/ruby/setup-ruby/tree/v1
with:
ruby-version: 3.4
ruby-version: 4.0
- name: Install dependencies
run: bundle install
- name: Run RuboCop against BASE..HEAD changes
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- '3.2'
- '3.3'
- '3.4'
- '4.0'
gemfile:
- gemfiles/Gemfile.rails71
- gemfiles/Gemfile.rails72
- gemfiles/Gemfile.rails80
- gemfiles/Gemfile.rails81
exclude:
# rails 8.0 requires ruby >= 3.2
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [Unreleased]
### Fixed
* Support Ruby 4.0, Rails 8.1. Drop support for Ruby 3.2

## 6.1.0 / 2026-03-24
### Changed
* Added NCRS_CHECK and NCRS_CHECKED actions to action filter
Expand Down
4 changes: 2 additions & 2 deletions canql.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 3.2'
spec.required_ruby_version = '>= 3.3'

spec.add_dependency 'chronic', '~> 0.3'
spec.add_dependency 'ndr_support', '>= 3.0', '< 6'
spec.add_dependency 'rails', '>= 7.1', '< 8.1'
spec.add_dependency 'rails', '>= 7.1', '< 8.2'
# treetop 1.6.14 causes errors. I think this may be a buggy release and fixed soon,
# but I'll restrict the version we use for now.
spec.add_dependency 'treetop', '~> 1.6.12', '< 1.6.14'
Expand Down
16 changes: 16 additions & 0 deletions gemfiles/Gemfile.rails81
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 8.1.0'

gem 'bundler'
gem 'guard'
gem 'guard-minitest'
gem 'guard-rubocop'
gem 'minitest', '>= 5.0.0'
gem 'ndr_dev_support', '>= 6.0', '< 8.0'
gem 'github-linguist'
gem 'pry'
gem 'rake'
gem 'terminal-notifier-guard' if RUBY_PLATFORM =~ /darwin/
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path('../../lib', __dir__)
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'canql'

require 'minitest/autorun'
Expand Down