This file contains 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 characters
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2 | |
#!/usr/bin/env bash | |
RUBY_VERSION=ruby-1.9.3-p194 | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/$RUBY_VERSION.tar.bz2 | |
tar -jxvf $RUBY_VERSION.tar.bz2 | |
cd $RUBY_VERSION | |
./configure --prefix=/usr/local |
This file contains 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 characters
require 'rubygems' | |
require 'ramaze' | |
class MyApp | |
include Ramaze::Optioned | |
options.dsl do | |
o "Application name", :name, "Ramaze DSL Demo" | |
o "Application version", |
This file contains 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 characters
require 'rubygems' | |
require 'ramaze' | |
require 'feedzirra' | |
class MainController < Ramaze::Controller | |
layout :master | |
def master | |
%{ | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
NewerOlder