Code Monkey home page Code Monkey logo

ruby-tmbundle's Introduction

Ruby TextMate bundle

The TextMate bundle that first appeared in the famous "Rails 15 minute video." This is it, many years later.

Installation

To install via Git:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/drnic/ruby-tmbundle.git "Ruby.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'

Source can be viewed or forked via GitHub: http://github.com/drnic/ruby-tmbundle

Validate and Save

When you save a Ruby file, it will first validate the syntax and print any validation error as a tooltip.

Validate and Save - No Rubinius

You can get more detailed syntax error information if you have Rubinius installed (and rbx in TextMate's $PATH).

Validate and Save - Rubinius installed

If you have Homebrew installed:

brew install rubinius

Then in TextMate, add your homebrew bin folder to the $PATH.

  • Go to TextMate's Preferences (Cmd+,)
  • Go to "Advanced", then "Shell Variables"
  • Edit the PATH variable, and add ":/path/to/homebrew/bin"

For example, if you have homebrew installed in ~/.homebrew then you might add :/Users/drnic/.homebrew/bin

Save a dodgy Ruby file and see the beautifully helpful syntax message.

ruby-tmbundle's People

Contributors

arya avatar bjeanes avatar cehoffman avatar ciaran avatar drnic avatar infininight avatar jeg2 avatar ldaley avatar simongregory avatar sorbits avatar weppos avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.