From 328e4de9fdac77c2d6ce270bbd9cb01edef0d47f Mon Sep 17 00:00:00 2001 From: Jeremy McAnally Date: Mon, 1 Feb 2010 11:43:55 -0600 Subject: [PATCH] Update preamble to work with bundler 0.9 --- lib/gemfile_generator.rb | 5 +++-- test/gemfile_generator_test.rb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/gemfile_generator.rb b/lib/gemfile_generator.rb index 4f834de..0798d8b 100644 --- a/lib/gemfile_generator.rb +++ b/lib/gemfile_generator.rb @@ -60,10 +60,11 @@ module Rails preamble = < "{*/,}*.gemspec" -git "git://github.com/rails/arel.git" +path "/path/to/rails", :glob => "{*/,}*.gemspec" git "git://github.com/rails/rack.git" + gem "rails", "3.0.pre" + STR preamble + "\n" + generate_upgraded_code end diff --git a/test/gemfile_generator_test.rb b/test/gemfile_generator_test.rb index 1ce70d9..fb35358 100644 --- a/test/gemfile_generator_test.rb +++ b/test/gemfile_generator_test.rb @@ -22,9 +22,9 @@ class GemfileGeneratorTest < ActiveSupport::TestCase PREAMBLE = < "{*/,}*.gemspec" -git "git://github.com/rails/arel.git" +path "/path/to/rails", :glob => "{*/,}*.gemspec" git "git://github.com/rails/rack.git" + gem "rails", "3.0.pre" STR