Last active
July 9, 2018 19:20
-
-
Save FernandoBasso/5f991a522f68065b86f8442afcdd7d0f to your computer and use it in GitHub Desktop.
Revisions
-
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ #+TITLE: Ruby Devkit Windows #+STARTUP: content * Why‽ *nix is much better for development in general, and those who disagree are just plain wrong (in my supreme opinion). Still, sometimes we are forced to work on Windows (someone from “above” orders such an unspeakable thing, and the others, lesser human beings are oblidged to comply). * Ruby Installer Download: [[https://rubyinstaller.org/downloads/][Ruby Installer Downloads]] Install Ruby somewhere in under ~C:\~, like ~C:\Ruby25-x64~, and make sure to check the option that adds Ruby executables to your path, and also check the option to associate ~.rb~ files with the Ruby installation. @@ -53,3 +53,4 @@ gem sources --update If you don’t understand those commands, try reading: : gem sources --help -
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 3 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,13 @@ #+TITLE: Ruby Devkit Windows #+STARTUP: content *nix is much better for development in general, and those who disagree are just plain wrong. Still, sometimes we are forced to work on Windows (someone from "above" orders such an unspeakable thing, and the others, lesser human beings are oblidged to comply). * Ruby Installer Download: [[https://rubyinstaller.org/downloads/][Ruby Installer Downloads]] Install Ruby somewhere in under ~C:\~, like ~C:\Ruby25-x64~, and make sure to check the option that adds Ruby executables to your path, and also check the option to associate ~.rb~ files with the Ruby installation. @@ -16,7 +17,7 @@ NOTE: Let's from now on assume we have Ruby installed in ~C:\Ruby25-x64~. If you * DevKit Here for the deprecated < 2.4: [[https://rubyinstaller.org/downloads/][Ruby DevKit < 2.4]] Install it under ~<Path-To-Your-Ruby-Install-Div\devkit~, something like: @@ -52,7 +53,3 @@ gem sources --update If you don’t understand those commands, try reading: : gem sources --help -
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ *nix is much better for development in general, and those who disagree are just plain wrong. Still, sometimes we are forced to work on Windows (someone from "above" orders such an unspeakable thing, and the others, lesser human beings are oblidged to comply). * Ruby Installer Download: -
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,10 @@ Download: Install Ruby somewhere in under ~C:\~, like ~C:\Ruby25-x64~, and make sure to check the option that adds Ruby executables to your path, and also check the option to associate ~.rb~ files with the Ruby installation. #+BEGIN_NOTE NOTE: Let's from now on assume we have Ruby installed in ~C:\Ruby25-x64~. If your Ruby version or platform is something else, just keep that in mind while following the rest of this guide. #+END_NOTE * DevKit [[https://rubyinstaller.org/downloads/]] @@ -48,3 +52,7 @@ gem sources --update If you don’t understand those commands, try reading: : gem sources --help -
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 47 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,50 @@ #+TITLE: Ruby Devkit Windows *nix is much better for development in general, and those who disagree are just plain wrong. Still, sometimes we are forced to work on Windows (someone from "above" orders such an unspeakable thing, and the others, lesser human beings are oblidged to comply). * Ruby Istaller Download: [[https://rubyinstaller.org/downloads/]] Install Ruby somewhere in under ~C:\~, like ~C:\Ruby25-x64~, and make sure to check the option that adds Ruby executables to your path, and also check the option to associate ~.rb~ files with the Ruby installation. * DevKit [[https://rubyinstaller.org/downloads/]] Install it under ~<Path-To-Your-Ruby-Install-Div\devkit~, something like: : C:\Ruby25-x64\devkit With the command line, navigate to that directory and run: : ruby dk.rb init ** config.yml Then open ~C:\Ruby25-x64\devkit\config.yml~ and add the line: : - C:/Ruby25-x64 Note that we used a forward slash “/” in this specific case, not the windows style backslash “\”. Then run: : ruby dk.rb install * Gems Sources And we also need setup the gem sources. For this company, we need to remove the “https” url because the firewall is blocking it for some reason... and... add only the “http” one. #+BEGIN_EXAMPLE gem sources --add http://rubygems.org gem sources --remove https://rubygems.org gem sources --clear gem sources --update #+END_EXAMPLE If you don’t understand those commands, try reading: : gem sources --help -
FernandoBasso revised this gist
Jul 9, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ #+TITLE: Ruby Devkit Windows *nix is much better for development in general, and those who disagree are just plain wrong. Still, sometimes we are forced to work on Windows (someone from "above" orders such an unspeakable thing and the others, lesser human beings are oblidged to comply). -
FernandoBasso created this gist
Jul 9, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ #+TITLE: Ruby Devkit Windows *nix is much better for development in general, and those who disagree are just plain wrong. Still, sometimes we are forced to work on Windows (someone from "above" orders such an unspeakable thing).