Skip to content

Instantly share code, notes, and snippets.

@FernandoBasso
Last active July 9, 2018 19:20
Show Gist options
  • Select an option

  • Save FernandoBasso/5f991a522f68065b86f8442afcdd7d0f to your computer and use it in GitHub Desktop.

Select an option

Save FernandoBasso/5f991a522f68065b86f8442afcdd7d0f to your computer and use it in GitHub Desktop.

Revisions

  1. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions ruby-devkit-windows.org
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    #+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).
    * 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

  2. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions ruby-devkit-windows.org
    Original 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/]]
    [[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

    [[https://rubyinstaller.org/downloads/]]
    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




  3. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ruby-devkit-windows.org
    Original 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 Istaller
    * Ruby Installer

    Download:

  4. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions ruby-devkit-windows.org
    Original 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




  5. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 47 additions and 1 deletion.
    48 changes: 47 additions & 1 deletion ruby-devkit-windows.org
    Original 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).
    *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
  6. FernandoBasso revised this gist Jul 9, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ruby-devkit-windows.org
    Original 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).
    *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).

  7. FernandoBasso created this gist Jul 9, 2018.
    3 changes: 3 additions & 0 deletions ruby-devkit-windows.org
    Original 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).