Ryzenちゃんがんばえー
$ git -C ~/.rbenv/plugins/ruby-build pull
$ rbenv install 3.4.0 &
$ rbenv install 3.4.0 &
くっそー
$ rbenv local 3.4.1
$ bundle install
:
Could not find compatible versions
Because flatware-rspec >= 2.0.0.rc1, < 2.0.0 depends on Ruby >= 2.6, < 3.1
and flatware-rspec < 2.0.0.rc1 depends on Ruby ~> 2.1,
flatware-rspec < 2.0.0 requires Ruby >= 2.1, < 3.1.
And because flatware-rspec >= 2.0.0, < 2.1.0 depends on Ruby >= 2.6, < 3.2
and flatware-rspec >= 2.1.0, < 2.2.0 depends on Ruby >= 2.6, < 3.3,
flatware-rspec < 2.2.0 requires Ruby >= 2.1, < 3.3.
So, because flatware-rspec >= 2.2.0 depends on Ruby >= 2.6, < 3.4
and current Ruby version is = 3.4.1,
version solving has failed.
うりゃ
$ git diff Gemfile
diff --git a/Gemfile b/Gemfile
index f4aed04ac4..18616652c2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -121,7 +121,7 @@ end
group :test do
# Enable usage of all available CPUs/cores during spec runs
- gem 'flatware-rspec'
+ #gem 'flatware-rspec' - only compatible with ruby < 3.4
# Adds RSpec Error/Warning annotations to GitHub PRs on the Files tab
gem 'rspec-github', '~> 2.4', require: false
とりゃ
$ bundle install
$ bundle exec rspec
:
Finished in 7 minutes 42 seconds (files took 36.86 seconds to load)
5891 examples, 0 failures, 13 pending
Randomized with seed 50592
Coverage report generated for RSpec to /home/zunda/c/src/github.com/zunda/mastodon/coverage.
Line Coverage: 90.55% (26236 / 28975)
Branch Coverage: 71.26% (5732 / 8044)
ヨシ