Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove deprecated `environment` argument from the rails commands | Rafael Mendonça França | 2019-01-17 | 1 | -25/+2 |
| | |||||
* | Turn on performance based cops | Dillon Welch | 2018-07-23 | 1 | -5/+2 |
| | | | | | | | | | | | | | | | | Use attr_reader/attr_writer instead of methods method is 12% slower Use flat_map over map.flatten(1) flatten is 66% slower Use hash[]= instead of hash.merge! with single arguments merge! is 166% slower See https://github.com/rails/rails/pull/32337 for more conversation | ||||
* | Use assert_predicate and assert_not_predicate | Daniel Colson | 2018-01-25 | 1 | -5/+5 |
| | |||||
* | Simplify parse arguments in `ConsoleTest` | yuuji.yaginuma | 2017-10-08 | 1 | -16/+3 |
| | | | | | If need a parse result of arguments, can obtain it by creating an instance of the command. | ||||
* | Adding frozen_string_literal pragma to Railties. | Pat Allan | 2017-08-14 | 1 | -0/+2 |
| | |||||
* | Properly expand the environment's name | Robin Dupret | 2017-07-16 | 1 | -0/+5 |
| | | | | | | | | | Running the `console` and `dbconsole` commands with a regular argument as the environment's name automatically expand it to match an existing environment (e.g. dev for development). This feature wasn't available using the `--environment` (a.k.a `-e`) option. | ||||
* | Deprecate environment as an argument for dbconsole and console | Robin Dupret | 2017-07-16 | 1 | -8/+16 |
| | | | | | | People should rather rely on the `-e` or `--environment` options to specify in which environment they want to work. This will allow us to specify the connection to pick as a regular argument in the future. | ||||
* | 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 |
| | |||||
* | Fix console tests. | Kasper Timm Hansen | 2016-09-25 | 1 | -6/+30 |
| | |||||
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -1/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -25/+25 |
| | |||||
* | applies new string literal convention in railties/test | Xavier Noria | 2016-08-06 | 1 | -13/+13 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Revert "Merge pull request #19404 from dmathieu/remove_rack_env" | Jeremy Kemper | 2015-03-20 | 1 | -0/+7 |
| | | | | | | | Preserving RACK_ENV behavior. This reverts commit 7bdc7635b885e473f6a577264fd8efad1c02174f, reversing changes made to 45786be516e13d55a1fca9a4abaddd5781209103. | ||||
* | don't fallback to RACK_ENV when RAILS_ENV is not present | Damien Mathieu | 2015-03-19 | 1 | -7/+0 |
| | |||||
* | Remove debugger support | Rafael Mendonça França | 2015-01-04 | 1 | -22/+0 |
| | | | | | bebugger doesn't work with Ruby 2.2 so we don't need to support it anymore | ||||
* | Remove mocha usage | Rafael Mendonça França | 2014-07-23 | 1 | -2/+5 |
| | |||||
* | Stop using mocha on console_test | Rafael Mendonça França | 2014-07-07 | 1 | -15/+40 |
| | |||||
* | Isolate debugger related code | David Rodríguez de Dios | 2014-04-10 | 1 | -13/+19 |
| | |||||
* | Keep debugger support only for rubies < 2.0.0 | David Rodríguez de Dios | 2014-04-08 | 1 | -3/+3 |
| | |||||
* | fix private attribute warning | Vipul A M | 2013-04-04 | 1 | -2/+3 |
| | |||||
* | Fix failing test regarding console change to fix sandboxing | Carlos Antonio da Silva | 2013-03-08 | 1 | -11/+10 |
| | | | | Introduced in be3e10cd26bc8ec29c6474d03a08a8e733108e7d. | ||||
* | This commit fixes issue #8628 | Mykola Kyryk | 2013-01-04 | 1 | -0/+6 |
| | | | | | | | | | | | | Allow environment name to start with a substring of the default environment names. For example: tes, pro, prod, dev, devel, etc. Fixing identation. Adding test for Rails::Console.parse_arguments method. Fix issue 8628 for Rails::DBConsole. | ||||
* | Refactor tests that switch RAILS_ENV and RACK_ENV | Carlos Antonio da Silva | 2012-12-06 | 1 | -20/+4 |
| | | | | | | | | | | | | 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. | ||||
* | Add ENV['RACK_ENV'] support to rake runner/console/server. | kennyj | 2012-12-06 | 1 | -2/+17 |
| | |||||
* | Removing warning : assigned but unused variable | Arun Agrawal | 2012-11-10 | 1 | -1/+1 |
| | |||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -4/+4 |
| | |||||
* | warning fixed: ambiguous first argument; put parentheses or even spaces | Arun Agrawal | 2012-10-10 | 1 | -7/+7 |
| | |||||
* | Fix various bugs with console arguments. | Sam Oliver | 2012-05-30 | 1 | -29/+60 |
| | | | | Allow hyphens in environment names again. | ||||
* | More assert_match warnings fixed. | Arun Agrawal | 2012-05-30 | 1 | -4/+4 |
| | |||||
* | match rails console environment support, to server | schneems | 2012-03-22 | 1 | -0/+19 |
| | | | | rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`. | ||||
* | Fix tests, Rails.env may be different on CI | Piotr Sarnacki | 2012-02-16 | 1 | -2/+5 |
| | |||||
* | Refactor Rails::Console to make it easier to test and add tests for it | Piotr Sarnacki | 2012-02-16 | 1 | -0/+84 |