diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2014-08-07 16:34:27 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2014-08-07 16:34:27 -0700 |
commit | fbe38c9e9d4fe9f82518e8ffc1d757459b0c5f1c (patch) | |
tree | 5d331b941b14f3244ba549b880b5aacec2e130cc /railties/lib/rails/generators/rails | |
parent | 089661b69ad055cab68ea860c085c7f852da3972 (diff) | |
download | rails-fbe38c9e9d4fe9f82518e8ffc1d757459b0c5f1c.tar.gz rails-fbe38c9e9d4fe9f82518e8ffc1d757459b0c5f1c.tar.bz2 rails-fbe38c9e9d4fe9f82518e8ffc1d757459b0c5f1c.zip |
Pull spring gem entry into the Gemfile template instead of gemfile_entries so it can be grouped with the other development tools
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 826fb86058..d97be95e27 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -21,14 +21,23 @@ source 'https://rubygems.org' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development +group :development, :test do <% unless defined?(JRUBY_VERSION) -%> -# To use a debugger + # Call 'debugger' anywhere in the code to stop execution and get a debugger console <%- if RUBY_VERSION < '2.0.0' -%> -# gem 'debugger', group: [:development, :test] + gem 'debugger' <%- else -%> -# gem 'byebug', group: [:development, :test] + gem 'byebug' <%- end -%> + + # Access an IRB console on exceptions page and /console in development + gem 'web-console' +<%- if spring_install? %> + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' <% end -%> +<% end -%> +end <% if RUBY_PLATFORM.match(/bccwin|cygwin|emx|mingw|mswin|wince/) -%> # Windows does not include zoneinfo files, so bundle the tzinfo-data gem |