Skip to content

Conversation

@willnet
Copy link

@willnet willnet commented Nov 13, 2025

  • Add Ruby 3.4 to the CI matrix
  • Update actions/checkout to the latest version
  • Fix CI failures on Ruby versions below 2.7
  • Fix CI failures on Ruby 3.5

CI result is here.

When using older Rails together with concurrent-ruby version 1.3.5 or higher, Rails fails to start as shown. I addressed this by using a concurrent-ruby version below 1.3.5.

```
ruby test/timecop_with_active_support_test.rb
/home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:16:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:9:in `<module:ActiveSupport>'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:8:in `<top (required)>'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in `require'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in `<top (required)>'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in `require'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in `<top (required)>'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support.rb:29:in `require'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support.rb:29:in `<top (required)>'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/all.rb:3:in `require'
	from /home/runner/work/timecop/timecop/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7.10/lib/active_support/all.rb:3:in `<top (required)>'
	from test/timecop_with_active_support_test.rb:4:in `require'
	from test/timecop_with_active_support_test.rb:4:in `<main>'
```
When running CI on Ruby 3.5, it fails as shown. As the error message indicates, rdoc was removed from the standard library, which caused the tests to fail. I fixed this by adding rdoc to the Gemfile.

```
/home/runner/work/timecop/timecop/Rakefile:4: warning: rdoc/task is found in rdoc, which is not part of the default gems since Ruby 3.5.0.
You can add rdoc to your Gemfile or gemspec to fix this error.
rake aborted!
LoadError: cannot load such file -- rdoc/task (LoadError)
/home/runner/work/timecop/timecop/Rakefile:4:in '<top (required)>'
/home/runner/work/timecop/timecop/vendor/bundle/ruby/3.5.0+4/gems/rake-13.3.1/exe/rake:27:in '<top (required)>'
/home/runner/.rubies/ruby-head/bin/bundle:25:in '<main>'
(See full trace by running task with --trace)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant