Skip to content

Commit e79f303

Browse files
committed
Windows: Distinguish min required rubygems version (2.6.7) from current version (2.6.8)
1 parent a809f9a commit e79f303

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/site_extensions/installfest.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ def version_string(name)
88
'2.3'
99
when :windows_ruby_short
1010
'2.2'
11-
when :windows_rubygems
11+
when :windows_rubygems_min
12+
'2.6.7'
13+
when :windows_rubygems_current
1214
'2.6.8'
1315
else
1416
raise StandardError, "No version string exists for '#{name}'"

sites/en/installfest/windows.step

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,26 @@ step "Update RubyGems" do
9090

9191
message "If the output is **2.6.6** or earlier, keep following the instructions."
9292

93-
message "If the output is **#{version_string(:windows_rubygems)}** or later, <a href='#install-node'>skip to the next step!</a>"
93+
message "If the output is **#{version_string(:windows_rubygems_min)}** or later, <a href='#install-node'>skip to the next step!</a>"
9494
end
9595

9696
step "Download the update" do
97-
message "Visit https://rubygems.org/downloads/rubygems-update-#{version_string(:windows_rubygems)}.gem"
97+
message "Visit https://rubygems.org/downloads/rubygems-update-#{version_string(:windows_rubygems_current)}.gem"
9898

99-
message "**Right click -> Save target as...** the file **rubygems-update-#{version_string(:windows_rubygems)}.gem** to your **C:\\Sites** directory"
99+
message "**Right click -> Save target as...** the file **rubygems-update-#{version_string(:windows_rubygems_current)}.gem** to your **C:\\Sites** directory"
100100
end
101101

102102
step "Install the update" do
103103
message "Back at the command prompt, run the following commands:"
104104

105-
console_without_message "gem install --local C:\\Sites\\rubygems-update-#{version_string(:windows_rubygems)}.gem"
105+
console_without_message "gem install --local C:\\Sites\\rubygems-update-#{version_string(:windows_rubygems_current)}.gem"
106106

107107
console_without_message "update_rubygems --no-document"
108108

109109
message "**Close and reopen your command prompt**, then verify you have the upgraded RubyGems by typing this in the terminal:"
110110

111111
console_without_message "gem -v"
112-
result version_string(:windows_rubygems)
112+
result version_string(:windows_rubygems_current)
113113

114114
message "Finally, you can clean up by running the following command:"
115115
console_without_message "gem uninstall rubygems-update -x"

0 commit comments

Comments
 (0)