File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ def version_string(name)
8
8
'2.3'
9
9
when :windows_ruby_short
10
10
'2.2'
11
+ when :windows_rubygems
12
+ '2.6.8'
11
13
else
12
14
raise StandardError , "No version string exists for '#{ name } '"
13
15
end
Original file line number Diff line number Diff line change @@ -90,26 +90,26 @@ step "Update RubyGems" do
90
90
91
91
message "If the output is **2.6.6** or earlier, keep following the instructions."
92
92
93
- message "If the output is **2.6.7 ** or later, <a href='#install-node'>skip to the next step!</a>"
93
+ message "If the output is **#{version_string(:windows_rubygems)} ** or later, <a href='#install-node'>skip to the next step!</a>"
94
94
end
95
95
96
96
step "Download the update" do
97
- message "Visit https://rubygems.org/downloads/rubygems-update-2.6.7 .gem"
97
+ message "Visit https://rubygems.org/downloads/rubygems-update-#{version_string(:windows_rubygems)} .gem"
98
98
99
- message "**Right click -> Save target as...** the file **rubygems-update-2.6.7 .gem** to your **C:\\Sites** directory"
99
+ message "**Right click -> Save target as...** the file **rubygems-update-#{version_string(:windows_rubygems)} .gem** to your **C:\\Sites** directory"
100
100
end
101
101
102
102
step "Install the update" do
103
103
message "Back at the command prompt, run the following commands:"
104
104
105
- console_without_message "gem install --local C:\\Sites\\rubygems-update-2.6.7 .gem"
105
+ console_without_message "gem install --local C:\\Sites\\rubygems-update-#{version_string(:windows_rubygems)} .gem"
106
106
107
107
console_without_message "update_rubygems --no-document"
108
108
109
109
message "**Close and reopen your command prompt**, then verify you have the upgraded RubyGems by typing this in the terminal:"
110
110
111
111
console_without_message "gem -v"
112
- result "2.6.7"
112
+ result version_string(:windows_rubygems)
113
113
114
114
message "Finally, you can clean up by running the following command:"
115
115
console_without_message "gem uninstall rubygems-update -x"
You can’t perform that action at this time.
0 commit comments