This file contains hidden or 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
cd /tmp | |
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz | |
tar zxf rubygems-1.3.5.tgz | |
cd rubygems-1.3.5 | |
sudo ruby setup.rb |
This file contains hidden or 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 'mongoid' | |
Mongoid.configure do |config| | |
config.master = Mongo::Connection.new.db("mongoid_key_test") | |
end | |
Mongoid.master.collection("users").drop | |
class User |
This file contains hidden or 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
gem "rails", ">= 3.0.0.beta3" | |
gem "haml" | |
gem "compass", ">= 0.10.0.rc1" | |
gem "better_partials", ">= 1.0.1" | |
gem "viewfu", ">= 1.0.1" | |
gem "mongoid", ">= 2.0.0.beta" |
This file contains hidden or 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
git clone git://github.com/sproutit/sproutcore-abbot.git abbot | |
cd abbot | |
rake init | |
cd .. | |
git clone git://github.com/sproutit/sproutcore-samples.git samples | |
cd samples | |
mkdir -p frameworks | |
cd frameworks | |
git clone git://github.com/sproutit/sproutcore.git sproutcore | |
cd ../.. |
This file contains hidden or 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
[jc@macbookpro ~]# rvm use rbx | |
Using rbx 1.0.0 20100514 | |
[jc@macbookpro ~]# gem install nokogiri | |
[jc@macbookpro ~]# gemdir | |
/Users/jc/.rvm/gems/rbx-1.0.0-20100514 | |
[jc@macbookpro ~]# gem install nokogiri | |
Building native extensions. This could take a while... | |
ERROR: Error installing nokogiri: | |
ERROR: Failed to build gem native extension. |
This file contains hidden or 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
# Edit this Gemfile to bundle your application's dependencies. | |
source 'http://rubygems.org' | |
gem "rails", :git => "git://github.com/rails/rails.git" | |
gem "haml" | |
gem "compass", ">= 0.10.0.rc1" | |
gem "better_partials", ">= 1.0.1" | |
gem "viewfu", ">= 1.0.1" |
This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
lib = File.expand_path('../lib/', __FILE__) | |
$:.unshift lib unless $:.include?(lib) | |
require "mongoid/version" | |
Gem::Specification.new do |s| | |
s.name = "mongoid" | |
s.version = Mongoid::VERSION | |
s.platform = Gem::Platform::RUBY |
This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
Gem::Specification.new do |s| | |
s.name = %q{activesupport} | |
s.version = "3.0.0.beta3" | |
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version= | |
s.authors = ["David Heinemeier Hansson"] | |
s.date = %q{2010-04-13} | |
s.description = %q{A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing.} |
This file contains hidden or 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
[jc@macbookpro ~/Gems/devise(master)]# DEVISE_ORM=mongoid rake test | |
(in /Users/jc/Gems/devise) | |
/Users/jc/.rvm/rubies/ruby-1.8.7-p174/bin/ruby -I"lib:lib:test" "/Users/jc/.rvm/gems/ruby-1.8.7-p174@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/controllers/helpers_test.rb" "test/controllers/internal_helpers_test.rb" "test/controllers/url_helpers_test.rb" "test/devise_test.rb" "test/encryptors_test.rb" "test/failure_app_test.rb" "test/integration/confirmable_test.rb" "test/integration/database_authenticatable_test.rb" "test/integration/http_authenticatable_test.rb" "test/integration/lockable_test.rb" "test/integration/recoverable_test.rb" "test/integration/registerable_test.rb" "test/integration/rememberable_test.rb" "test/integration/timeoutable_test.rb" "test/integration/token_authenticatable_test.rb" "test/integration/trackable_test.rb" "test/mailers/confirmation_instructions_test.rb" "test/mailers/reset_password_instructions_test.rb" "test/mailers/unlock_instructions_test.rb" "test/mapping_test. |
This file contains hidden or 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
1) Error: | |
test_should_require_correct_email_format,_allowing_blank(ValidatableTest): | |
ArgumentError: wrong number of arguments (2 for 1) | |
/test/models/validatable_test.rb:32:in `assert_not' | |
/test/models/validatable_test.rb:32:in `test_should_require_correct_email_format,_allowing_blank' | |
/test/models/validatable_test.rb:30:in `each' | |
/test/models/validatable_test.rb:30:in `test_should_require_correct_email_format,_allowing_blank' | |
activesupport (3.0.0.beta4) lib/active_support/testing/setup_and_teardown.rb:67:in `__send__' | |
activesupport (3.0.0.beta4) lib/active_support/testing/setup_and_teardown.rb:67:in `run' | |
activesupport (3.0.0.beta4) lib/active_support/callbacks.rb:417:in `_run_setup_callbacks' |