Skip to content

Commit

Permalink
Update all recipes to use templater.post_bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
kfaustino committed Jan 29, 2011
1 parent 16a6f10 commit ef131c0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/cucumber.rb
Expand Up @@ -7,7 +7,7 @@
cucumber_generate_command << ' --rspec' if templater.testing_framework.rspec?
cucumber_generate_command << ' --testunit' if templater.testing_framework.test_unit?

templater.post_bundler_strategies << lambda do
templater.post_bundler do
generate cucumber_generate_command

gsub_file 'features/support/env.rb',
Expand Down
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/design.rb
Expand Up @@ -17,7 +17,7 @@

compass_command = "compass init rails . --using blueprint/semantic --css-dir=#{compass_css_dir} --sass-dir=#{compass_sass_dir} "

templater.post_bundler_strategies << lambda do
templater.post_bundler do
puts "Beginning Compass setup"
run compass_command
puts "Compass has been setup"
Expand Down
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/factory_girl.rb
Expand Up @@ -2,7 +2,7 @@
say("\nReplacing Fixtures with FactoryGirl\n", Thor::Shell::Color::YELLOW)
gem 'factory_girl_rails', '1.1.beta1', :group => :test

templater.post_bundler_strategies << lambda do
templater.post_bundler do
inject_into_file 'spec/spec_helper.rb', "\nrequire 'factory_girl'", :after => "require 'rspec/rails'"

environment templater.load_snippet('generator', 'factory_girl')
Expand Down
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/jquery.rb
Expand Up @@ -2,6 +2,6 @@

gsub_file 'config/application.rb', /(config.action_view.javascript_expansions\[:defaults\] = %w\(\))/, '# \1'

templater.post_bundler_strategies << lambda do
templater.post_bundler do
generate 'jquery:install'
end
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/mongoid.rb
Expand Up @@ -3,7 +3,7 @@

gsub_file 'config/application.rb', 'require "active_record/railtie"', '# require "active_record/railtie"'

templater.post_bundler_strategies << lambda do
templater.post_bundler do
generate 'mongoid:config'
run 'cp config/mongoid.yml config/mongoid.yml.example'
end
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/remarkable.rb
Expand Up @@ -7,6 +7,6 @@
require_remarkable = "\nrequire 'remarkable/active_record'"
end

templater.post_bundler_strategies << lambda do
templater.post_bundler do
inject_into_file 'spec/spec_helper.rb', require_remarkable, :after => "require 'rspec/rails'"
end
2 changes: 1 addition & 1 deletion lib/template_framework/recipes/rspec.rb
Expand Up @@ -3,7 +3,7 @@
remove_dir 'test'
gsub_file 'config/application.rb', 'require "rails/test_unit/railtie"', '# require "rails/test_unit/railtie"'

templater.post_bundler_strategies << lambda do
templater.post_bundler do
generate 'rspec:install'

spec_helper_path = 'spec/spec_helper.rb'
Expand Down

0 comments on commit ef131c0

Please sign in to comment.