Follow steps 1 through 3 of the quickstart guide to sign up, install the toolbelt, and login.
First, we need to get our database to work on Heroku, which uses a different database. Please change the following in the Gemfile:
$ time curl -s -L http://bit.ly/L3PONC | sh | |
Downloading Tokaido.app | |
######################################################################## 100.0% | |
Setting up Tokaido.app | |
ruby 1.9.3p194 (2012-04-20) [x86_64-darwin11.4.0] | |
Rails 3.2.3 | |
Done! | |
real 0m30.984s | |
user 0m0.574s |
source "https://rubygems.org" | |
ruby "1.9.3" | |
gem "rack" |
Follow steps 1 through 3 of the quickstart guide to sign up, install the toolbelt, and login.
First, we need to get our database to work on Heroku, which uses a different database. Please change the following in the Gemfile:
class NewCard | |
attr_reader :cardname | |
def initialize(name, life, damage) | |
@cardname = name | |
@life = life | |
@damage = damage | |
end | |
def card |
require "spec_helper" | |
describe "bundle ruby" do | |
it "returns ruby version when explicit" do | |
gemfile <<-G | |
source "file://#{gem_repo1}" | |
ruby_version "1.9.3", :engine => 'ruby', :engine_version => '1.9.3' | |
gem "foo" | |
G |
abstract (1.0.0) | |
actionmailer (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2) | |
actionpack (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2) | |
activerecord (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2, 2.1.0, 2.0.2) | |
activeresource (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2, 2.1.0, 2.0.2) | |
activesupport (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2) | |
acts_as_ferret (0.4.3) | |
addressable (2.0.2, 2.0.1) | |
amqp (0.6.7, 0.6.6) | |
aws-s3 (0.6.2) |
$ bundle -v | |
Bundler version 1.1.rc.8 | |
$ bundle install | |
Fetching gem metadata from http://rubygems.org/.... | |
Installing sqlite3 (1.3.5) with native extensions | |
Installing sqlite3-ruby (1.3.3) | |
Using bundler (1.1.rc.8) | |
Your bundle is complete! It was installed into ./vendor/bundle | |
$ gem install sqlite3-ruby | |
Fetching: sqlite3-1.3.5.gem (100%) |
GEM | |
specs: | |
PLATFORMS | |
ruby | |
DEPENDENCIES |
require 'bundler/setup' | |
require 'sinatra' | |
get '/' do | |
`ruby -v` | |
end | |
run Sinatra::Application | |
if [ -z "$JRUBY_HOME" ]; then | |
JRUBY_HOME_1=`dirname "$PRG"` # the ./bin dir | |
if [ "$JRUBY_HOME_1" = '.' ] ; then | |
cwd=`pwd` | |
JRUBY_HOME=`dirname $cwd` # JRUBY-2699 | |
else | |
JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir | |
fi | |
fi |