Ruby

From Things and Stuff Wiki
Revision as of 18:48, 30 September 2012 by Milk (talk | contribs) (→‎Gems)
Jump to navigation Jump to search


Guides

Gems

Guides

  • isitruby1.9 Community-powered gem compatibility for ruby 1.9]

Setup

install ruby rubygems

Installing Gems

gem install [rubygem]
  install a gem
gem upgrade
  upgrade installed gems
gem env

As user, goes into .gem. As root, goes into /usr/lib/ruby/gems/1.9.1/gems/compass-0.11.7/frameworks/compass/stylesheets/compass or suchlike.

ruby -r rubygems -e "p Gem.path"   
  display ruby gem path[s]

to sort

Tools

Shoes

Development

  • jim - jim is your friendly javascript library manager. He downloads, stores, bundles, vendors and compresses.

Sinatra

require 'sinatra'

get '/hi' do
  "Hello World!"
end
gem install sinatra
ruby hi.rb

CMS/F

Mobile apps