aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* ActiveRecord -> Active RecordXavier Noria2013-04-221-1/+1
|
* Use sass-rails 4.0.0.rc1Rafael Mendonça França2013-04-181-1/+1
|
* Use latest coffee-rails releaseRafael Mendonça França2013-04-181-1/+1
|
* Revert "sprockets 2.9.x doesn't work with uglifier 2.0 yet."Rafael Mendonça França2013-04-181-2/+2
| | | | | | | | | This reverts commit 575838795019f7402992e3bfa83a0c5048cf143d. Conflicts: railties/lib/rails/generators/app_base.rb Reason: sprockets 2.9.1 fixes this issue
* Don't need to add activerecord-deprecated_finders on edge and devRafael Mendonça França2013-04-171-3/+1
| | | | | | | applications This gem will not change often to explain it be included in the application Gemfile
* Use strip_heredoc where possibleSam Ruby2013-04-111-14/+12
| | | | | | | | | | | | | Following up on an observation by @rafaelfranca https://github.com/rails/rails/pull/10170/files#r3753963 Reduce the number of gsub calls to the two cases where inputs are concatenated from various sources and with inconsistent indentation. Also zap extraneous spacing from the sass-rails line... presumably this is a holdover from a previous time where this aligned the version string with an adjacent line.
* Editorial pass over generated GemfileSam Ruby2013-04-101-4/+8
| | | | | | * When run with default options, no repeated blank lines * Every gem has a comment, perhaps a generic one, but a comment nonetheless * Most comments used to start with "Use", some with "To use" => made consistent
* sprockets 2.9.x doesn't work with uglifier 2.0 yet.Rafael Mendonça França2013-04-061-2/+2
| | | | | | See https://travis-ci.org/rails/rails/jobs/6110543#L1285 for the failure cc @josh
* Revert "Use jquery-rails from github"Santiago Pastorino2013-04-021-3/+1
| | | | | | | This reverts commit 7a9a7007637b8279501770be03bd84ce83d61ab8. Conflicts: railties/lib/rails/generators/app_base.rb
* Revert more Rails.version changesRafael Mendonça França2013-04-011-2/+2
| | | | Related with ed8df3ff018d17fad123e48c7cb907332e72e7dc
* Make comment about uglifier in generated Gemfile consistent between branchesCarlos Antonio da Silva2013-03-301-1/+1
| | | | Introduced in 59d20af2238f7ab553f41b96282722889d8d4393.
* Add better comments to assets gemsGuillermo Iguaran2013-03-281-9/+22
|
* Add coffee-rails and javascript runtime to gemfile if skip_javascript isRafael Mendonça França2013-03-281-2/+9
| | | | provided
* Remove buggy and unnecessary logicSam Ruby2013-03-271-7/+0
| | | | based on a discussion with @rafaelfranca
* Cosmetic cleanup of generated GemfileSam Ruby2013-03-271-17/+14
| | | | | | - Remove obsolete/misleading comment about assets only being used production - Remove unnecessary group :assets - Eliminate blank lines if options[:skip_javascript] is not specified
* Put coffee-rails in top-level of generated GemfileGabe Kopley2013-03-241-15/+27
| | | | v3 of pull request based on additional feedback from @jeremy
* Use jquery-rails from githubSam Ruby2013-03-241-1/+3
| | | | completes https://github.com/rails/rails/commit/6f3f0f86332004fcee5c2f05d52bbff08c22f980
* remove references to *::VERSION, replace with *.versionCharlie Somerville2013-03-211-2/+2
|
* Bump sass-rails and coffee-rails to 4.0.0.beta1 in GemfileGuillermo Iguaran2013-02-251-2/+2
|
* Remove sprockets-rails from the Gemfile generatorrobertomiranda2013-02-251-1/+0
|
* Merge pull request #9401 from sikachu/master-remove-builder-optionRafael Mendonça França2013-02-241-14/+0
|\ | | | | Remove `--builder` option from `rails` command
| * Remove `--builder` option from `rails` commandPrem Sichanugrist2013-02-241-14/+0
| | | | | | | | | | | | | | Ability to use a custom builder by passing `--builder` (or `-b`) has been removed. Consider using application template instead. See this guide for more detail: http://guides.rubyonrails.org/rails_application_templates.html
* | Use sprockets-rails 2.0.0.rc3 in new appsGuillermo Iguaran2013-02-241-1/+1
|/
* Fix article for generator nameRyunosuke SATO2013-02-071-2/+2
| | | | Use 'some' instead of 'a/an'.
* Add --rc description on the command linerobertomiranda2013-02-041-0/+3
|
* Add --no-rc description on the command linerobertomiranda2013-02-021-0/+3
|
* Add -B alias for --skip-bundleJiri Pospisil2013-01-011-1/+1
|
* Revert "Install binstubs by default"Jeremy Kemper2012-12-281-1/+1
| | | | | | This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252. We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
* Revert "Detect rbenv and update the shebang"Jeremy Kemper2012-12-281-8/+1
| | | | | This reverts commit 7173c4f931c9026bd3bc0b644d93dae744433f09. This reverts commit a562f9fa09967eba26dff1c3bc8aa85b6f0a72ff.
* Detect rbenv and update the shebangYehuda Katz2012-12-221-1/+8
|
* Install binstubs by defaultYehuda Katz2012-12-221-1/+1
|
* Integrate Journey into Action DispatchAndrew White2012-12-191-2/+0
| | | | | | | | Move the Journey code underneath the ActionDispatch namespace so that we don't pollute the global namespace with names that may be used for models. Fixes rails/journey#49.
* Use Rails to Render Default Index Pageschneems2012-12-101-3/+0
| | | | | | | | | | | | | | | This is an alternative implementation to #7771 thanks to the advice of @spastorino Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion. This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated. The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik ATP Railties and Actionpack.
* USe the released version of sprockets-rails in a new Rails 4 applicationRafael Mendonça França2012-10-271-1/+1
|
* We don't need this anymore since we had a sprockets-rails releaseRafael Mendonça França2012-10-191-3/+0
|
* Fix the app_generator and plugin_new testsRafael Mendonça França2012-10-181-0/+3
|
* Change back to official sprockets-railsJoshua Peek2012-10-171-2/+2
|
* Switch to new sprockets-rails pluginJoshua Peek2012-10-151-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-111-1/+1
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * update Rails::Generators docs [ci skip]Francesco Rodriguez2012-10-071-1/+1
| |
* | Inline commentDavid Heinemeier Hansson2012-10-081-3/+1
| |
* | Strip heredoc to not generate the Gemfile with trailing spacesRafael Mendonça França2012-10-041-2/+2
| |
* | Turn turbolinks on by default for new appsDavid Heinemeier Hansson2012-10-041-1/+8
|/
* change app/plugin generators to be more SCM agnosticDerek Prior2012-09-121-35/+38
| | | | | | | | | | | | | | | | | Users of other SCM's can now generate rails apps that will add the "empty" directories to source control, but will not have a useless .gitignore or mis-named .gitkeep files. * Change `rails new` and `rails plugin new` generators to name the `.gitkeep` as `.keep` in a more SCM-agnostic way. * Change `--skip-git` option to only skip the `.gitignore` file and still generate the `.keep` files. * Add `--skip-keeps` option to skip the `.keep` files. It closes #2800.
* require bundle in the app generatorXavier Noria2012-09-011-0/+1
| | | | | | | The app generator is not generally run under bundler, but the Bundler constant is used here. In particular you cannot create --dev apps without this.
* Use Bundler.with_clean_env instead of custom codePiotr Sarnacki2012-08-311-6/+3
|
* Revert "Revert changes related to `bundle install` fixes in `rails new`"Piotr Sarnacki2012-08-311-1/+10
| | | | | | | | The cause of the previous revert was bug in bundler that made it hard to make railties test work. Fix for bundler was recently pushed to github, so now we can safely get back to the original commit. This reverts commit 0f5cc34ab58cda99d1401ecc82e1ebb873838dd7.
* Update to activerecord-deprecated_finders on generatorMiguel Herranz2012-08-171-2/+2
|
* Changed symbol platform to platforms for the commented out call to gem ↵Martin O'Connor2012-05-301-1/+1
| | | | | | 'therubyracer'. Dependency.rb expects the symbol to be named :platforms as opposed to platform. RubyMine's inspections indicate that the symbol should be named :platforms.
* Revert changes related to `bundle install` fixes in `rails new`Piotr Sarnacki2012-05-171-10/+1
| | | | | | | | | | | Reverted changes: f3482a9 Fix tests in railties 5904295 improve #6318 aed906a prevent using already loaded Gemfile for 'bundle install' In order to fix this, we need a fix in bundler related to GEM_PATH, which will allow to run tests properly. I will get this changes back when it happens.