Skip to content

Commit 4b2716f

Browse files
committed
Adds an "Update RubyGems" step (again)
RubyGems has changed the security handling for connecting to the gem server again. The version of RubyGems that ships with RailsInstaller doesn't have the updated CA certificates, and so won't `gem install` anything. This commit adds some notes on how to fix this, based on similar notes that were added earlier in the year for a different version of the same problem.
1 parent 568652b commit 4b2716f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

sites/en/installfest/windows.step

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,40 @@ step "Open a Terminal" do
8282
end
8383
end
8484

85+
step "Update RubyGems" do
86+
message "The version of RubyGems that comes with RailsInstaller has some problems. Follow these steps to upgrade it!"
87+
88+
step "Check to see if you need to update" do
89+
console "gem -v"
90+
91+
message "If the output is **2.6.6** or earlier, keep following the instructions."
92+
93+
message "If the output is **2.6.7** or later, <a href='#install-node'>skip to the next step!</a>"
94+
end
95+
96+
step "Download the update" do
97+
message "Visit https://rubygems.org/downloads/rubygems-update-2.6.7.gem"
98+
99+
message "**Right click -> Save target as...** the file **rubygems-update-2.6.7.gem** to your **C:\\Sites** directory"
100+
end
101+
102+
step "Install the update" do
103+
message "Back at the command prompt, run the following commands:"
104+
105+
console_without_message "gem install --local C:\\Sites\\rubygems-update-2.6.7.gem"
106+
107+
console_without_message "update_rubygems --no-document"
108+
109+
message "**Close and reopen your command prompt**, then verify you have the upgraded RubyGems by typing this in the terminal:"
110+
111+
console_without_message "gem -v"
112+
result "2.6.7"
113+
114+
message "Finally, you can clean up by running the following command:"
115+
console_without_message "gem uninstall rubygems-update -x"
116+
end
117+
end
118+
85119
a name: 'install-node'
86120
step "Install Node.js" do
87121

0 commit comments

Comments
 (0)