Skip to content

Instantly share code, notes, and snippets.

View merbjedi's full-sized avatar

Jacques Crocker merbjedi

View GitHub Profile
[jc@macbookpro ~/tmp/test]# gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta2)
actionpack (3.0.0.beta2)
activemodel (3.0.0.beta2)
activerecord (3.0.0.beta2)
activeresource (3.0.0.beta2)
require "rubygems"
require "mongoid"
class Person
include Mongoid::Document
field :name
validate do
errors.add(:name, "NO NAME") if self.name.blank?
require "rubygems"
require "mongoid"
class Person
include Mongoid::Document
field :name
before_save :check_for_name
protected
begin
# require only what we need from newer versions of active_support (>= 3.0)
require 'active_support/core_ext/class'
require 'active_support/core_ext/object'
require 'active_support/core_ext/module'
require 'active_support/core_ext/hash'
rescue LoadError
# support older versions of active_support
require "active_support/all"
resources :users do
collection do
any :forgot
end
end
source :gemcutter
gem "rails", "2.3.5", :require => nil
gem "authlogic"
gem "compass"
gem "fancy-buttons", "0.4.1"
gem "haml"
gem "nifty-generators"
[jc@macbookpro ~/tmp/bundlerhax1]# bundle install
Fetching source index from http://gemcutter.org/
Resolving dependencies
Installing rake (0.8.7) from system gems
Installing activeresource (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
Installing fancy-buttons (0.4.1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
Installing compass (0.10.0.rc1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
Installing compass-colors (0.3.1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
Installing activerecord (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
Installing rails (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax3/cache
# bundle install
Fetching source index from http://gemcutter.org/
Resolving dependencies
Installing rake (0.8.7) from system gems
Installing activeresource (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache
Installing fancy-buttons (0.4.1) from rubygems repository at http://gemcutter.org/
Installing compass (0.10.0.rc1) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache
Installing compass-colors (0.3.1) from rubygems repository at http://gemcutter.org/
Installing activerecord (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache
Installing rails (2.3.5) from .gem files at /Users/jc/.rvm/gems/ruby-1.8.7-p249%bundlerhax/cache
[jc@macbookpro ~/Rails3/railsgen(master)]# bundle show
Gems included by the bundle:
/Users/jc/.rvm/gems/ruby-1.8.7-p249%railsgen/gems/bundler-0.9.5/lib/bundler/resolver.rb:97:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
* abstract (1.0.0)
* actionmailer (3.0.0.beta)
* actionpack (3.0.0.beta)
* activemodel (3.0.0.beta)
* activerecord (3.0.0.beta)
* activeresource (3.0.0.beta)
* activesupport (3.0.0.beta)
# Edit this Gemfile to bundle your application's dependencies.
source 'http://gemcutter.org'
gem "bundler", "0.9.5"
gem "rails", "3.0.0.beta"
gem "haml"
gem "compass", ">= 0.10.0.rc1"
# required for getting sass to work with heroku