aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-05-01 23:23:31 -0700
committerJoshua Peek <josh@joshpeek.com>2011-05-01 23:23:31 -0700
commitf76726c09d74c4de937054b75464857d8b8edb76 (patch)
tree46730d8485af07cde4285e92fa77fba6f86e46e2 /railties
parent31155eeb3ce00e5f830171d34b2037fb7a1104f0 (diff)
downloadrails-f76726c09d74c4de937054b75464857d8b8edb76.tar.gz
rails-f76726c09d74c4de937054b75464857d8b8edb76.tar.bz2
rails-f76726c09d74c4de937054b75464857d8b8edb76.zip
Use sprockets beta gem
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/app_base.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 324199e71c..689ef921e1 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -132,14 +132,12 @@ module Rails
gem 'rails', :path => '#{Rails::Generators::RAILS_DEV_PATH}'
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
- gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git'
GEMFILE
elsif options.edge?
<<-GEMFILE.strip_heredoc
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
- gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git'
GEMFILE
else
<<-GEMFILE.strip_heredoc
@@ -149,7 +147,6 @@ module Rails
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# gem 'arel', :git => 'git://github.com/rails/arel.git'
# gem 'rack', :git => 'git://github.com/rack/rack.git'
- # gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git'
GEMFILE
end
end
@@ -167,7 +164,7 @@ module Rails
else options[:database]
end
end
-
+
def gem_for_ruby_debugger
if RUBY_VERSION < "1.9.2"
"gem 'ruby-debug'"
@@ -175,7 +172,7 @@ module Rails
"gem 'ruby-debug19', :require => 'ruby-debug'"
end
end
-
+
def gem_for_turn
unless RUBY_VERSION < "1.9.2"
<<-GEMFILE.strip_heredoc
@@ -200,7 +197,7 @@ module Rails
empty_directory(destination, config)
git_keep(destination)
end
-
+
def git_keep(destination)
create_file("#{destination}/.gitkeep") unless options[:skip_git]
end
@@ -216,4 +213,4 @@ module Rails
end
end
end
-end \ No newline at end of file
+end