Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rails::Generators::Actions#execute_command allows option `capture` | bogdanvlviv | 2017-11-06 | 1 | -0/+16 |
| | |||||
* | Merge pull request #30323 from yhirano55/support_multiple_version_for_gem_method | Matthew Draper | 2017-08-31 | 1 | -4/+11 |
|\ | | | | | Support multiple versions arguments for `gem` method of Generators | ||||
| * | Support multiple versions arguments for `gem` method of Generators | Yoshiyuki Hirano | 2017-08-19 | 1 | -4/+11 |
| | | |||||
* | | Remove frozen_string_literal magic comment from templates | Koichi ITO | 2017-08-22 | 1 | -2/+0 |
|/ | |||||
* | Add frozen string pragma to expected routes files. | Pat Allan | 2017-08-14 | 1 | -0/+2 |
| | |||||
* | Adding frozen_string_literal pragma to Railties. | Pat Allan | 2017-08-14 | 1 | -0/+2 |
| | |||||
* | Optimize indentation for generator actions | Yoshiyuki Hirano | 2017-08-11 | 1 | -6/+66 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Deprecate an `capify!` method in generators and templates | yuuji.yaginuma | 2017-06-18 | 1 | -2/+5 |
| | | | | | | | | | The `capify` command has been removed by Capistrano 3 and became to `cap install`. Therefore, the `capify!` method has no meaning in Capistrano 3. I think that should deprecate. Ref: https://github.com/capistrano/capistrano/commit/492793916acf32ffe1604daec6fd4892c8935018 | ||||
* | Privatize unneededly protected methods in Railties tests | Akira Matsuda | 2016-12-24 | 1 | -1/+1 |
| | |||||
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 1 | -3/+3 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -1/+0 |
| | |||||
* | applies new string literal convention in railties/test | Xavier Noria | 2016-08-06 | 1 | -79/+79 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | AppGenerator: allow both 'rake' and 'rails' | claudiob | 2016-03-09 | 1 | -5/+5 |
| | | | | | | | | | This commit comes from the comments made by @matthewd at https://github.com/rails/rails/pull/23795/files#r54469637 and by @rafaelfranca at https://github.com/rails/rails/pull/23795/files#r54609364 The idea is that if you type (for example) "rake db:migrate" in an AppGenerator, then this should actually invoke `rake db:migrate` on the command line, whereas if you type "rails_command db:migrate", this should invoke `rails db:migrate`. | ||||
* | - Made changes to have test cases in actions_test more readable. | Mohit Natoo | 2016-02-29 | 1 | -6/+6 |
| | | | | Changed description with tests related to rails_command. | ||||
* | - Made changes to have test cases in actions_test more readable. | Mohit Natoo | 2016-02-29 | 1 | -5/+5 |
| | |||||
* | Invoke 'rails' instead of 'rake' in AppGenerator | claudiob | 2016-02-20 | 1 | -10/+10 |
| | | | | | Follows the convention from Rails 5 of invoking tasks on the command-line with `rails …` rather than `rake …`. | ||||
* | AppGenerator: Replace 'rake' with 'rails_command' | claudiob | 2016-02-20 | 1 | -0/+38 |
| | | | | | | | | | | | Since Rails 5.0 is switching the Rails command line from 'rake …' to 'rails …', it makes sense to also replace the `rake` method in the Rails templates API. Based on feedback from @matthewd and @kaspth, I chose to replace `rake` with `rails_command`, which is less confusing than the alternatives `rails` or `command` or `rails_run` and is not Thor-reserved word like `task`. | ||||
* | Rails::Generators::Actions#gem should work even if frozen string is passed ↵ | Prathamesh Sonpatki | 2016-01-24 | 1 | -0/+8 |
| | | | | | | as argument - Fixes #23137. | ||||
* | Fixes using `add_source` with a block after using `gem` in a custom rails | Will Fisher | 2015-12-21 | 1 | -0/+9 |
| | | | | generator template. | ||||
* | Fix tests | David Heinemeier Hansson | 2015-12-17 | 1 | -2/+0 |
| | |||||
* | Fix test | David Heinemeier Hansson | 2015-12-16 | 1 | -1/+10 |
| | |||||
* | Route generator should be idempotent - closes #22082 | Thiago Pinto | 2015-10-31 | 1 | -0/+15 |
| | |||||
* | Cleaned up generators tests using internal assertion helper | Ronak Jangir | 2015-08-20 | 1 | -26/+11 |
| | |||||
* | cherry-pick test and source doc from #20050 | Hirofumi Wakasugi | 2015-06-25 | 1 | -0/+8 |
| | |||||
* | Removed use of mocha from railties actions_test | Ronak Jangir | 2015-06-01 | 1 | -27/+52 |
| | |||||
* | Add a new-line to the end of route method generated code. | Arthur Neves | 2015-03-18 | 1 | -0/+24 |
| | | | | | | | | Fix regression on route method that was added by bac812a7ef2660a2fe2ab00822e5e66228379822. The regression was that when calling the `route` method, we were not appending a \n anymore. [fixes #19316] | ||||
* | README.rdoc -> README.md for newly generated applications | Xavier Noria | 2015-02-06 | 1 | -2/+2 |
| | | | | | | README.rdoc was generated to support the doc:app task. Now that this task is gone we can switch to Markdown, which is nowadays a better default. | ||||
* | Remove some warning with Ruby 2.2 | Rafael Mendonça França | 2014-12-29 | 1 | -1/+1 |
| | |||||
* | fix broken `gem` method with non-String arguments. Closes #16709. | Yves Senn | 2014-08-27 | 1 | -0/+10 |
| | | | | This was caused by #15327. | ||||
* | Merge branch 'rm-remove-mocha' | Rafael Mendonça França | 2014-07-19 | 1 | -0/+1 |
|\ | | | | | | | | | Conflicts: actionpack/test/abstract_unit.rb | ||||
| * | Stop requiring mocha automatically | Rafael Mendonça França | 2014-07-19 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | We are planning to remove mocha from our test suite because of performance problems. To make this possible we should stop require mocha on ActionSupport::TestCase. This should not affect applications since users still need to add mocha to Gemfile and this already load mocha. Added FIXME notes to place that still need mocha removal | ||||
* | | Keep quietly and capture undeprecated on your suite | Rafael Mendonça França | 2014-07-15 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #15327 from alexbel/replace_double_quotes_with_single_quotes | Yves Senn | 2014-05-27 | 1 | -7/+15 |
|\ | | | | | | | Replace double quotes with single quotes while adding an entry into Gemfile | ||||
| * | Replace double quotes with single quotes while adding an entry into Gemfile | alexbel | 2014-05-26 | 1 | -7/+7 |
|/ | |||||
* | Removing the app constant and replacing it with Rails.application | wangjohn | 2013-04-30 | 1 | -1/+1 |
| | | | | | syntax. This helps removing the class level abstraction of an application. | ||||
* | Fix readme tests | Carlos Antonio da Silva | 2013-01-07 | 1 | -2/+2 |
| | | | | Related to the change introduced in 6cf47c533d7d6784d34fc31406a335555e0c32b8. | ||||
* | Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵ | Jeremy Kemper | 2013-01-06 | 1 | -1/+1 |
| | | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn' | ||||
* | Refactor tests that switch RAILS_ENV and RACK_ENV | Carlos Antonio da Silva | 2012-12-06 | 1 | -16/+15 |
| | | | | | | | | | | | | This cleanup aims to fix a build failure: https://travis-ci.org/rails/rails/jobs/3515951/#L482 Since travis always have both ENV vars set to "test", a test is failing where it's expected to output the default env "development", but "test" is the result due to RACK_ENV being set when we expect it to not be. By cleaning this duplication we ensure that changing any of these env variables will pick the right expected value. | ||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -18/+18 |
| | |||||
* | Use new hash syntax for generators gem method | Alexey Vakhov | 2012-05-22 | 1 | -0/+8 |
| | | | | | | The Gemfile of new application uses ruby 1.9 hashes. Gem method of generators should use them too. It prevents from mixing two kinds of syntax in one file. | ||||
* | Rails::Plugin has gone | Santiago Pastorino | 2012-01-03 | 1 | -37/+0 |
| | |||||
* | Add the .rdoc extension to the README that Rails generates for a new application | Steve Richert | 2011-12-09 | 1 | -3/+3 |
| | |||||
* | Updating newline fix to maintain existing linebreaks and indentation and ↵ | John Donahue | 2011-11-25 | 1 | -4/+6 |
| | | | | test for b/eol on inserts | ||||
* | Added tests for #3751 | ganesh | 2011-11-25 | 1 | -1/+1 |
| | |||||
* | Isolate rake action tests that should be run under default env | Guillermo Iguaran | 2011-10-08 | 1 | -4/+8 |
| | |||||
* | The generator invokes rake with either the :env option, ENV['RAILS_ENV'], or ↵ | Jeremy Kemper | 2011-10-08 | 1 | -3/+5 |
| | | | | development. So if Travis has exported RAILS_ENV=test, it'll be used instead of development, breaking these brittle expectations. | ||||
* | Honour RAILS_ENV environment variable when running rake. | Dmitriy Kiriyenko | 2011-09-29 | 1 | -0/+16 |
| | |||||
* | Add gem_group support to generators | Wojciech Mach | 2011-09-04 | 1 | -0/+14 |
| |