Update preamble to work with bundler 0.9

This commit is contained in:
Jeremy McAnally 2010-02-01 11:43:55 -06:00
parent dd6c92d99d
commit 328e4de9fd
2 changed files with 5 additions and 4 deletions

View File

@ -60,10 +60,11 @@ module Rails
preamble = <<STR preamble = <<STR
# Edit this Gemfile to bundle your application's dependencies. # Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed. # This preamble is the current preamble for Rails 3 apps; edit as needed.
directory "/path/to/rails", :glob => "{*/,}*.gemspec" path "/path/to/rails", :glob => "{*/,}*.gemspec"
git "git://github.com/rails/arel.git"
git "git://github.com/rails/rack.git" git "git://github.com/rails/rack.git"
gem "rails", "3.0.pre" gem "rails", "3.0.pre"
STR STR
preamble + "\n" + generate_upgraded_code preamble + "\n" + generate_upgraded_code
end end

View File

@ -22,9 +22,9 @@ class GemfileGeneratorTest < ActiveSupport::TestCase
PREAMBLE = <<STR PREAMBLE = <<STR
# Edit this Gemfile to bundle your application's dependencies. # Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed. # This preamble is the current preamble for Rails 3 apps; edit as needed.
directory "/path/to/rails", :glob => "{*/,}*.gemspec" path "/path/to/rails", :glob => "{*/,}*.gemspec"
git "git://github.com/rails/arel.git"
git "git://github.com/rails/rack.git" git "git://github.com/rails/rack.git"
gem "rails", "3.0.pre" gem "rails", "3.0.pre"
STR STR