@@ -76,8 +76,8 @@ def release_issues(version)
7676end
7777
7878
79- def update_for_version ( version , major = true )
80- post_link = create_post ( version )
79+ def update_for_version ( version , major = true , ruby_version : )
80+ post_link = create_post ( version , ruby_version : )
8181 change_versions_in ( '_config.yml' , version , post_link )
8282 change_versions_in ( 'download.html' , version , post_link )
8383 update_links ( version )
@@ -137,13 +137,13 @@ EOS
137137 File . write index_file , contents
138138end
139139
140- def create_post ( version )
140+ def create_post ( version , ruby_version : )
141141 v = version . gsub ( '.' , '-' )
142142 t = Time . now
143143 file = t . strftime ( "_posts/%Y-%m-%d-jruby-#{ v } .markdown" )
144144
145145 File . open ( file , 'w' ) do |io |
146- io . write ( boiler_top ( version ) )
146+ io . write ( boiler_top ( version , ruby_version : ) )
147147 io . write ( release_issues ( version ) )
148148 end
149149
@@ -182,7 +182,7 @@ def change_versions_in(filename, version, post_link)
182182 File . write ( filename , new_content )
183183end
184184
185- def boiler_top ( version , compat = "3.4" ) = <<~"EOS"
185+ def boiler_top ( version , ruby_version : ) = <<~"EOS"
186186 ---
187187 layout: post
188188 title: JRuby #{ version } Released
@@ -193,7 +193,7 @@ def boiler_top(version, compat="3.4")=<<~"EOS"
193193 * Homepage: [https://www.jruby.org/](https://www.jruby.org/)
194194 * Download: [https://www.jruby.org/download](https://www.jruby.org/download)
195195
196- JRuby #{ version . split ( '.' ) [ 0 ..2 ] . join ( '.' ) } .x targets Ruby #{ compat } compatibility.
196+ JRuby #{ version . split ( '.' ) [ 0 ..2 ] . join ( '.' ) } .x targets Ruby #{ ruby_version } compatibility.
197197
198198 Thank you to our contributors this release, you help keep JRuby moving forward!
199199
0 commit comments