@@ -40,7 +40,39 @@ step "Configure your git and ssh environment" do
4040
4141end
4242
43- step "Windows Only — Install Node.js" do
43+ step "Update RubyGems" do
44+ message "The version of RubyGems that comes with Railsinstaller has some problems. Follow these steps to upgrade it!"
45+
46+ step "Check to see if you need to update" do
47+ console "gem -v"
48+
49+ message "If the output is **2.2.2** or earlier, keep following the instructions."
50+
51+ message "If the output is **2.2.3** or later, <a href='#install-node'>skip to the next step!</a>"
52+ end
53+
54+ step "Download the update" do
55+ message "Visit https://github.com/rubygems/rubygems/releases/tag/v2.2.3"
56+
57+ message "**Right click -> Save as...** the file **rubygems-update-2.2.3.gem** to your **C:\\Sites** directory"
58+ end
59+
60+ step "Install the update" do
61+ message "Back at the command prompt, run the following commands:"
62+
63+ console_without_message "gem install --local rubygems-update-2.2.3.gem"
64+
65+ console_without_message "update_rubygems --no-ri --no-rdoc"
66+
67+ message "**Close and reopen your command prompt**, then verify you have the upgraded RubyGems by typing this in the terminal:"
68+
69+ console_without_message "gem -v"
70+ result "2.2.3"
71+ end
72+ end
73+
74+ a name: 'install-node'
75+ step "Install Node.js" do
4476
4577 message "Go to <http://nodejs.org> and download the installer"
4678
5789step "Update Rails" do
5890 message "Currently, RailsInstaller installs Rails 4.1.x, but we want the latest. Upgrading Rails is pretty easy:"
5991
60- console "gem install rails"
92+ console "gem install rails --no-ri --no-rdoc "
6193
6294 message "...and you're done. New Rails! Woo."
6395end
0 commit comments