Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Last active December 10, 2023 20:00

Revisions

  1. pmarreck revised this gist Oct 25, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build (for ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build) to this, replacing YOURUSERNAME. I am still looking to optimize this further...
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
    # (for ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build) to this, replacing YOURUSERNAME.
    # I am still looking to optimize this further... For example, avoiding hardcoding by using something like $HOME, although
    # I have yet to get any form of that to work.

    {
    "working_dir": "${project_path}",
  2. pmarreck revised this gist Oct 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME. I am still looking to optimize this further...
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build (for ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build) to this, replacing YOURUSERNAME. I am still looking to optimize this further...

    {
    "working_dir": "${project_path}",
  3. pmarreck revised this gist Oct 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    "cmd": [
    "/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "-Ilib:test", "$file"
    ],
    // "path": "/Users/pmarreck/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin",
    // "path": "/Users/YOURUSERNAME/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin",
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }
  4. pmarreck revised this gist Oct 25, 2013. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,11 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME:
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME. I am still looking to optimize this further...

    {
    "working_dir": "${project_path}",
    "cmd": [
    "bundle", "exec", "/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"
    "/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "-Ilib:test", "$file"
    ],
    // "path": "/Users/pmarreck/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin",
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }
  5. pmarreck revised this gist Aug 21, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    {
    "cmd": [
    "bundle", "exec", "$HOME/.rvm/bin/rvm-auto-ruby", "$file"
    ]
    "bundle", "exec", "/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"
    ],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }
  6. pmarreck revised this gist Aug 17, 2012. No changes.
  7. pmarreck revised this gist Aug 17, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME:

    {
    "cmd": ["/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"],
    "cmd": [
    "bundle", "exec", "$HOME/.rvm/bin/rvm-auto-ruby", "$file"
    ]
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }
  8. Peter Marreck revised this gist Apr 12, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME:

    {
    "cmd": ["/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    "cmd": ["/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }
  9. Peter Marreck created this gist Apr 12, 2012.
    7 changes: 7 additions & 0 deletions Ruby.sublime-build
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME:

    {
    "cmd": ["/Users/YOURUSERNAME/.rvm/bin/rvm-auto-ruby", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
    }