File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ Update all of these:
160
160
161
161
For a new major version:
162
162
* Update ` TargetRubyVersion ` in ` .rubocop.yml `
163
- * Update the list of ` :next ` specs and change the "next version" in ` spec/truffleruby.mspec ` .
163
+ * Update the list of ` :next ` specs.
164
164
* Update the docs for next version specs in [ workflow.md] ( workflow.md ) .
165
165
* Update the versions in the ` ruby/spec on CRuby ` job of ` .github/workflows/ci.yml ` .
166
166
Original file line number Diff line number Diff line change @@ -154,8 +154,13 @@ if MSpecScript.child_process?
154
154
::VersionGuard . send :remove_const , :FULL_RUBY_VERSION
155
155
::VersionGuard ::FULL_RUBY_VERSION = SpecVersion . new ( version )
156
156
elsif ARGV . include? ":next"
157
+ version = File . read ( ".ruby-version" )
158
+
159
+ # get the next version, e.g. 3.1.2 -> 3.2.0
160
+ next_version = version . split ( "." ) . tap { |ary | ary [ 1 ] = ary [ 1 ] . next ; ary [ 2 ] = '0' } . join ( "." )
161
+
157
162
::VersionGuard . send :remove_const , :FULL_RUBY_VERSION
158
- ::VersionGuard ::FULL_RUBY_VERSION = SpecVersion . new ( "3.2.0" )
163
+ ::VersionGuard ::FULL_RUBY_VERSION = SpecVersion . new ( next_version )
159
164
end
160
165
end
161
166
You can’t perform that action at this time.
0 commit comments