Permalink
Browse files

following instructions for using bundler

  • Loading branch information...
1 parent 17f655b commit e931d2ceb7525452a5ca5c6578b0149be7f91678 @drnic committed Jun 27, 2010
Showing with 185 additions and 7 deletions.
  1. +30 −4 .bundle/environment.rb
  2. +2 −0 .gitignore
  3. +25 −2 Gemfile
  4. +95 −1 Gemfile.lock
  5. +13 −0 config/boot.rb
  6. +20 −0 config/preinitializer.rb
View
@@ -1,5 +1,5 @@
# DO NOT MODIFY THIS FILE
-# Generated by Bundler 0.9.25
+# Generated by Bundler 0.9.26
require 'digest/sha1'
require 'yaml'
@@ -173,19 +173,45 @@ def gem(*) ; end
module Bundler
ENV_LOADED = true
- LOCKED_BY = '0.9.25'
- FINGERPRINT = "4a1262f7a26a3c6d1a7a8f8997878bbf0208a7ef"
+ LOCKED_BY = '0.9.26'
+ FINGERPRINT = "de1e7644fdb0a0d60c30601645c947ddc52033ac"
HOME = '/Users/drnic/.bundle/ruby/1.8/bundler'
- AUTOREQUIRES = {:default=>[["formtastic", false], ["haml", false], ["inherited_resources", false], ["will_paginate", false]]}
+ AUTOREQUIRES = {:test=>[["capybara", false], ["email_spec", false], ["faker", false], ["fakeweb", false], ["machinist", false], ["rspec", false], ["spec/rails", true]], :default=>[["formtastic", false], ["haml", false], ["inherited_resources", false], ["rails", false], ["sqlite3-ruby", false], ["will_paginate", false]], :cucumber=>[["cucumber", false]]}
SPECS = [
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rake-0.8.7.gemspec", :name=>"rake", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/activesupport-2.3.8.gemspec", :name=>"activesupport", :load_paths=>["/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rack-1.1.0.gemspec", :name=>"rack", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/actionpack-2.3.8.gemspec", :name=>"actionpack", :load_paths=>["/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/actionmailer-2.3.8.gemspec", :name=>"actionmailer", :load_paths=>["/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/activerecord-2.3.8.gemspec", :name=>"activerecord", :load_paths=>["/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/activeresource-2.3.8.gemspec", :name=>"activeresource", :load_paths=>["/Library/Ruby/Gems/1.8/gems/activeresource-2.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/builder-2.1.2.gemspec", :name=>"builder", :load_paths=>["/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib"]},
+ {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/culerity-0.2.10.gemspec", :name=>"culerity", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/culerity-0.2.10/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/mime-types-1.16.gemspec", :name=>"mime-types", :load_paths=>["/Library/Ruby/Gems/1.8/gems/mime-types-1.16/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/nokogiri-1.4.2.gemspec", :name=>"nokogiri", :load_paths=>["/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.2/lib"]},
+ {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/rack-test-0.5.4.gemspec", :name=>"rack-test", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/rack-test-0.5.4/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/ffi-0.6.3.gemspec", :name=>"ffi", :load_paths=>["/Library/Ruby/Gems/1.8/gems/ffi-0.6.3/lib", "/Library/Ruby/Gems/1.8/gems/ffi-0.6.3/ext"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/json_pure-1.4.3.gemspec", :name=>"json_pure", :load_paths=>["/Library/Ruby/Gems/1.8/gems/json_pure-1.4.3/lib"]},
+ {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/selenium-webdriver-0.0.24.gemspec", :name=>"selenium-webdriver", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/selenium-webdriver-0.0.24/common/src/rb/lib", "/Users/drnic/.bundle/ruby/1.8/gems/selenium-webdriver-0.0.24/firefox/src/rb/lib", "/Users/drnic/.bundle/ruby/1.8/gems/selenium-webdriver-0.0.24/chrome/src/rb/lib", "/Users/drnic/.bundle/ruby/1.8/gems/selenium-webdriver-0.0.24/jobbie/src/rb/lib", "/Users/drnic/.bundle/ruby/1.8/gems/selenium-webdriver-0.0.24/remote/client/src/rb/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/capybara-0.3.8.gemspec", :name=>"capybara", :load_paths=>["/Library/Ruby/Gems/1.8/gems/capybara-0.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/diff-lcs-1.1.2.gemspec", :name=>"diff-lcs", :load_paths=>["/Library/Ruby/Gems/1.8/gems/diff-lcs-1.1.2/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/trollop-1.16.2.gemspec", :name=>"trollop", :load_paths=>["/Library/Ruby/Gems/1.8/gems/trollop-1.16.2/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/gherkin-2.0.2.gemspec", :name=>"gherkin", :load_paths=>["/Library/Ruby/Gems/1.8/gems/gherkin-2.0.2/lib"]},
+ {:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/term-ansicolor-1.0.5.gemspec", :name=>"term-ansicolor", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/term-ansicolor-1.0.5/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/cucumber-0.8.3.gemspec", :name=>"cucumber", :load_paths=>["/Library/Ruby/Gems/1.8/gems/cucumber-0.8.3/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/email_spec-0.6.2.gemspec", :name=>"email_spec", :load_paths=>["/Library/Ruby/Gems/1.8/gems/email_spec-0.6.2/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/faker-0.3.1.gemspec", :name=>"faker", :load_paths=>["/Library/Ruby/Gems/1.8/gems/faker-0.3.1/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/fakeweb-1.2.8.gemspec", :name=>"fakeweb", :load_paths=>["/Library/Ruby/Gems/1.8/gems/fakeweb-1.2.8/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/formtastic-0.9.10.gemspec", :name=>"formtastic", :load_paths=>["/Library/Ruby/Gems/1.8/gems/formtastic-0.9.10/lib"]},
{:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/haml-3.0.13.gemspec", :name=>"haml", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/haml-3.0.13/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/has_scope-0.5.0.gemspec", :name=>"has_scope", :load_paths=>["/Library/Ruby/Gems/1.8/gems/has_scope-0.5.0/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/responders-0.4.7.gemspec", :name=>"responders", :load_paths=>["/Library/Ruby/Gems/1.8/gems/responders-0.4.7/lib"]},
{:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/inherited_resources-1.0.6.gemspec", :name=>"inherited_resources", :load_paths=>["/Library/Ruby/Gems/1.8/gems/inherited_resources-1.0.6/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/machinist-1.0.6.gemspec", :name=>"machinist", :load_paths=>["/Library/Ruby/Gems/1.8/gems/machinist-1.0.6/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rails-2.3.8.gemspec", :name=>"rails", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rspec-1.3.0.gemspec", :name=>"rspec", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rspec-1.3.0/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/rspec-rails-1.3.2.gemspec", :name=>"rspec-rails", :load_paths=>["/Library/Ruby/Gems/1.8/gems/rspec-rails-1.3.2/lib"]},
+ {:loaded_from=>"/Library/Ruby/Gems/1.8/specifications/sqlite3-ruby-1.2.5.gemspec", :name=>"sqlite3-ruby", :load_paths=>["/Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/lib", "/Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.2.5/ext"]},
{:loaded_from=>"/Users/drnic/.bundle/ruby/1.8/specifications/will_paginate-2.3.14.gemspec", :name=>"will_paginate", :load_paths=>["/Users/drnic/.bundle/ruby/1.8/gems/will_paginate-2.3.14/lib"]},
].map do |hash|
if hash[:virtual_spec]
View
@@ -7,3 +7,5 @@ config/database.yml
config/initializers/site_keys.rb
db/*.sqlite3
rerun.txt
+.bundle
+Gemfile.lock
View
27 Gemfile
@@ -1,8 +1,31 @@
# A sample Gemfile
source :gemcutter
-#
-# gem "rails"
+
+gem "rails", "2.3.8"
+gem "sqlite3-ruby", "1.2.5"
+
gem "inherited_resources", '1.0.6'
gem "will_paginate", '>= 2.3.12'
gem "formtastic", '>= 0.9.10'
gem "haml", '>= 2.0.0'
+
+group :test do
+ gem 'capybara','>= 0.3.8'
+ gem 'rspec','>= 1.3.0'
+ gem 'rspec-rails', '>= 1.3.2', :require => 'spec/rails'
+ gem 'email_spec', '>= 0.6.2'
+ gem 'machinist', '>= 1.0.6'
+ gem 'fakeweb', '>= 1.2.8'
+ gem 'faker', '>= 0.3.1'
+end
+
+group :cucumber do
+ gem 'cucumber','>= 0.7.3'
+ gem 'capybara','>= 0.3.8'
+ gem 'rspec','>= 1.3.0'
+ gem 'rspec-rails', '>= 1.3.2', :require => 'spec/rails'
+ gem 'email_spec', '>= 0.6.2'
+ gem 'machinist', '>= 1.0.6'
+ gem 'fakeweb', '>= 1.2.8'
+ gem 'faker', '>= 0.3.1'
+end
View
@@ -1,13 +1,43 @@
---
dependencies:
+ faker:
+ group:
+ - :cucumber
+ version: ">= 0.3.1"
+ fakeweb:
+ group:
+ - :cucumber
+ version: ">= 1.2.8"
+ rails:
+ group:
+ - :default
+ version: = 2.3.8
+ sqlite3-ruby:
+ group:
+ - :default
+ version: = 1.2.5
haml:
group:
- :default
version: ">= 2.0.0"
+ machinist:
+ group:
+ - :cucumber
+ version: ">= 1.0.6"
inherited_resources:
group:
- :default
version: = 1.0.6
+ rspec:
+ group:
+ - :cucumber
+ version: ">= 1.3.0"
+ rspec-rails:
+ group:
+ - :cucumber
+ version: ">= 1.3.2"
+ require:
+ - spec/rails
formtastic:
group:
- :default
@@ -16,13 +46,67 @@ dependencies:
group:
- :default
version: ">= 2.3.12"
+ email_spec:
+ group:
+ - :cucumber
+ version: ">= 0.6.2"
+ cucumber:
+ group:
+ - :cucumber
+ version: ">= 0.7.3"
+ capybara:
+ group:
+ - :cucumber
+ version: ">= 0.3.8"
specs:
+- rake:
+ version: 0.8.7
- activesupport:
version: 2.3.8
- rack:
version: 1.1.0
- actionpack:
version: 2.3.8
+- actionmailer:
+ version: 2.3.8
+- activerecord:
+ version: 2.3.8
+- activeresource:
+ version: 2.3.8
+- builder:
+ version: 2.1.2
+- culerity:
+ version: 0.2.10
+- mime-types:
+ version: "1.16"
+- nokogiri:
+ version: 1.4.2
+- rack-test:
+ version: 0.5.4
+- ffi:
+ version: 0.6.3
+- json_pure:
+ version: 1.4.3
+- selenium-webdriver:
+ version: 0.0.24
+- capybara:
+ version: 0.3.8
+- diff-lcs:
+ version: 1.1.2
+- trollop:
+ version: 1.16.2
+- gherkin:
+ version: 2.0.2
+- term-ansicolor:
+ version: 1.0.5
+- cucumber:
+ version: 0.8.3
+- email_spec:
+ version: 0.6.2
+- faker:
+ version: 0.3.1
+- fakeweb:
+ version: 1.2.8
- formtastic:
version: 0.9.10
- haml:
@@ -33,9 +117,19 @@ specs:
version: 0.4.7
- inherited_resources:
version: 1.0.6
+- machinist:
+ version: 1.0.6
+- rails:
+ version: 2.3.8
+- rspec:
+ version: 1.3.0
+- rspec-rails:
+ version: 1.3.2
+- sqlite3-ruby:
+ version: 1.2.5
- will_paginate:
version: 2.3.14
-hash: 4a1262f7a26a3c6d1a7a8f8997878bbf0208a7ef
+hash: de1e7644fdb0a0d60c30601645c947ddc52033ac
sources:
- Rubygems:
uri: http://gemcutter.org
View
@@ -106,5 +106,18 @@ def read_environment_rb
end
end
+class Rails::Boot
+ def run
+ load_initializer
+
+ Rails::Initializer.class_eval do
+ def load_gems
+ @bundler_loaded ||= Bundler.require :default, Rails.env
+ end
+ end
+
+ Rails::Initializer.run(:set_load_path)
+ end
+end
# All that for this:
Rails.boot!
View
@@ -0,0 +1,20 @@
+begin
+ require "rubygems"
+ require "bundler"
+rescue LoadError
+ raise "Could not load the bundler gem. Install it with `gem install bundler`."
+end
+
+if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
+ raise RuntimeError, "Your bundler version is too old." +
+ "Run `gem install bundler` to upgrade."
+end
+
+begin
+ # Set up load paths for all bundled gems
+ ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
+ Bundler.setup
+rescue Bundler::GemNotFound
+ raise RuntimeError, "Bundler couldn't find some gems." +
+ "Did you run `bundle install`?"
+end

0 comments on commit e931d2c

Please sign in to comment.