aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Move `static_cache_contorl` deprecation changelog entry to Railties.Kasper Timm Hansen2015-11-041-0/+22
| | | | | | | The configuration for `config.static_cache_control`, and its replacement `config.public_file_server.headers` are implemented in Railties. People would configure this in environment files, which is Railties domain too.
* Add enabled flag to the public file server.Kasper Timm Hansen2015-11-031-0/+19
| | | | | | | | As discussed in https://github.com/rails/rails/pull/19135#issuecomment-153385986. Replaces `serve_static_files` to unify the static options under the `public_file_server` wing. Deprecates `serve_static_files` accessors, but make them use the newer config internally.
* Route generator should be idempotent - closes #22082Thiago Pinto2015-10-311-0/+4
|
* rails/application: allow passing an env to config_forSimon Eskildsen2015-10-301-0/+4
|
* Allow rake:stats to account for rake tasksKevin Deisz2015-10-191-0/+4
|
* Update the URL when changing mailer preview formatsJames Kerr2015-10-061-0/+6
| | | | | | Added javascript to update the URL on mailer previews with the currently selected email format. Reloading the page now keeps you on your selected format rather than going back to the default html version.
* Revert "removing Rack::Runtime from the default stack."Aaron Patterson2015-10-031-3/+0
| | | | | | | | | | | | | | | | | | This reverts commit 37423e4ff883ad5584bab983aceb4b2b759a1fd8. Jeremy is right that we shouldn't remove this. The fact is that many engines are depending on this middleware to be in the default stack. This ties our hands and forces us to keep the middleware in the stack so that engines will work. To be extremely clear, I think this is another smell of "the rack stack" that we have in place. When manipulating middleware, we should have meaningful names for places in the req / res lifecycle **not** have engines depend on a particular constant be in a particular place in the stack. This is a weakness of the API that we have to figure out a way to address before removing the constant. As far as timing attacks are concerned, we can reduce the granularity such that it isn't useful information for hackers, but is still useful for developers.
* removing Rack::Runtime from the default stack.Aaron Patterson2015-10-021-0/+3
| | | | | | | | | | | | The runtime header is a potential target for timing attacks since it returns the amount of time spent on the server (eliminating network speed). Total time is also not accurate for streaming responses. The middleware can be added back via: ```ruby config.middleware.ues ::Rack::Runtime ```
* Refactor AS::Callbacks halt config and fix the documentationRoque Pinel2015-10-011-3/+4
| | | | | | | | | Move from `AS::Callbacks::CallbackChain.halt_and_display_warning_on_return_false` to `AS::Callbacks.halt_and_display_warning_on_return_false` base on [this discussion](https://github.com/rails/rails/pull/21218#discussion_r39354580) Fix the documentation broken by 0a120a818d413c64ff9867125f0b03788fc306f8
* Add fail fast to test runner.Kasper Timm Hansen2015-09-291-0/+32
| | | | | Passing `--fail-fast` to the test runner will now abort the test run on the first failure. The run continues on any unexpected errors.
* Add inline failure reporting to test runner.Kasper Timm Hansen2015-09-281-0/+30
| | | | | | | | | Any failures or errors will be reported inline during the run by default. Skipped tests will be reported if run in verbose mode. Any result is output with failure messages and a rerun snippet for that test. Rerun snippets won't be output after a run, unless `--defer-output` is passed.
* Fix displaying mailer previews on non local requests.Wojciech Wnętrzak2015-09-171-0/+5
| | | | | When config `action_mailer.show_previews` is set, previews are displayed regardless of local request check.
* Use the PORT environment variable for rails serverDavid Cornu2015-08-181-0/+4
|
* Plugins are generated with the version 0.1.0Daniel Morris2015-08-161-0/+5
| | | | | | The semantic versioning specification uses MAJOR.MINOR.PATCH – it would make more sense to set the version to 0.1.0 for initial development since a patch release cannot be created before a minor feature release.
* Add a changelog entry for #21124 [ci skip]Robin Dupret2015-08-161-0/+6
| | | | [Kir Shatrov & Robin Dupret]
* Added bin/update script to update application automaticallyMehmet Emin İNAÇ2015-08-071-0/+4
| | | | | | | | | | use system! fix changelog use bundle check first and use rake use system instead system! for bundle check
* Only load statistics.rake once from inside engineErsin Akinci2015-08-061-1/+8
| | | | | | | | | | | | | | When running rake stats from inside an engine, the engine's Rakefile attempts to reload statistics.rake after the test app loads it, which results in STATS_DIRECTORIES being redefined and an annoying warning. This patch skips loading statistics.rake from tasks.rb if rake's current scope isn't empty, i.e. if we are running from inside an engine and not the test app dir or a normal app. Fixes #20510.
* Add rake dev:cache task to enable dev mode caching.Chuck Callebs2015-08-041-0/+12
| | | | | | | | | | | | | | | | Taken from @Sonopa's commits on PR #19091. Add support for dev caching via "rails s" flags. Implement suggestions from @kaspth. Remove temporary cache file if server does not have flags. Break at 80 characters in railties/CHANGELOG.md Remove ability to disable cache based on server options. Add more comprehensive options: --dev-caching / --no-dev-caching
* Add the `--api` option for the plugin generatorRobin Dupret2015-07-231-0/+5
|
* Merge pull request #20724 from y-yagi/fix_scaffold_in_full_engineYves Senn2015-06-291-0/+4
|\ | | | | | | fix NoMethodError that occurs when generating scaffold inside full mode engine
| * fix NoMethodError that occurs when generating scaffold inside full mode engineyuuji.yaginuma2015-06-281-0/+4
|/
* cherry-pick test and source doc from #20050Hirofumi Wakasugi2015-06-251-0/+4
|
* Merge pull request #20605 from dcrec1/assert_fileYves Senn2015-06-191-0/+5
|\ | | | | | | assert_file understands paths with special characters
* | Remove ContentLength middleware from the defaults.Aaron Patterson2015-06-171-0/+5
|/ | | | | ContentLength is not part of the rack SPEC since rack/rack@86ddc7a6ec68d7b6951c2dbd07947c4254e8bc0d If you want it, just add it as a middleware in your config.
* make it possible to customize the executable inside rereun snippets.Yves Senn2015-06-131-0/+4
| | | | | | | | | | | | | | | | | | | In the Rails repository we use a `bin/test` executable to run our tests. However the rerun snippets still included `bin/rails test`: BEFORE: ``` Failed tests: bin/rails test test/cases/adapters/postgresql/schema_test.rb:91 ``` AFTER: ``` Failed tests: bin/test test/cases/adapters/postgresql/schema_test.rb:91 ```
* Add CHANGELOG entries for API apps functionalitySantiago Pastorino2015-06-111-0/+7
|
* Merge pull request #20387 from y-yagi/fix_engine_generated_controller_testYves Senn2015-06-021-0/+4
| | | | set engine's route in the functional test is generated in the engine
* Generate a `.keep` file in `tmp` folderYoong Kang Lim2015-05-301-0/+7
| | | | | | | | | | | | | A lot of scripts assumes the existence of this folder and most would fail if it is absent. One example of this is `rake restart` (before the previous commit) – it tries to `touch tmp/restart.txt`, which would fail if `tmp` does not exist, which was the case for a freshly-cloned project as `tmp` is `.gitignored` by default. See #20299. [Yoong Kang Lim, Sunny Juneja]
* config.static_index configures directory index "index.html" filenameEliot Sykes2015-05-281-0/+8
| | | | | | Set `config.static_index` to serve a static directory index file not named `index`. For example, to serve `main.html` instead of `index.html` for directory requests, set `config.static_index` to `"main"`.
* Merge pull request #20023 from mohnish/patch-1Yves Senn2015-05-061-0/+4
| | | | Use the built-in rake tasks
* Fix mailer previews with attachmentsAndrew White2015-05-041-0/+7
| | | | | | Use the mail gem's own API to locate the correct part. Fixes #14435.
* Merge pull request #19949 from thiagoaugusto/create-thiago-punctuation-fixYves Senn2015-04-291-1/+1
|\ | | | | | | CHANGELOG punctuation fix
| * CHANGELOG punctuation fixThiago Augusto2015-04-291-1/+1
|/ | | Punctuation fix
* Remove sqlite support from `rails dbconsole`Andrew White2015-04-221-0/+4
| | | | | | Support for versions of SQLite less than 3 was removed in #6011 as part of the Rails 4.0 release. Therefore there is no need to have support for it in the `rails dbconsole` command anymore.
* pass over CHANGELOGs. [ci skip]Yves Senn2015-04-221-8/+10
|
* Fix typos and improve the documentationJon Atack2015-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squash of the following commits, from first to last: - Fix minor, random things I’ve come across lately that individually did not seem worth making a PR for, so I saved them for one commit. One common error is using “it’s” (which is an abbreviation of “it is”) when the possessive “its” should be used for indicating possession. - Changes include the name of a test, so remove the `[skip ci]` (thanks @senny). - Line wrap the changes at 80 chars and add one more doc fix. - Add a missing line wrap in the Contributing to Ruby on Rails Guide. - Line wrap the `TIP` section in the Contributing to Ruby on Rails Guide as well. Rendering the guide locally with `bundle exec rake guides:generate` did not show any change in on-screen formatting after adding the line wrap. The HTML generated is (extra line added to illustrate where the line wrap takes place): <div class="info"><p>Please squash your commits into a single commit when appropriate. This simplifies future cherry picks and also keeps the git log clean.</p></div> - Squash commits.
* :scissors:Zachary Scott2015-04-121-2/+2
|
* Rename railties/bin to railties/exeIslam Wazery2015-04-111-0/+4
| | | | | | That will match the new Bundler executables convention. Bundler Blog Post: http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html Also updated the necessary tests.
* Merge pull request #19429 from mxhold/print_bundle_install_output_line_by_lineMatthew Draper2015-04-031-0/+7
|\ | | | | | | Print `bundle install` output in `rails new` as soon as it's available
| * Print `bundle install` output in `rails new` as soon as it's availableMax Holder2015-03-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, running `rails new` would not print any of the output from `bundle install` until all the gems had finished installing. This made it look like the generator was hanging at the `bundle install` step. This commit switches to using `system` so that the bundle command can output as it needs to. This has the added benefit of including output bundler produces on standard error, which the previous code ignored since backticks only capture standard out. This is not a big deal right now since bundler does not currently print errors to standard error, but that may change in the future (see: bundler/bundler/issues/3353).
* | Improve CHANGELOG for fix for respecting pluralize_table_names [ci skip]Prathamesh Sonpatki2015-03-271-1/+1
| |
* | respect `pluralize_table_names` when generate fixture file. fixes #19519yuuji.yaginuma2015-03-271-0/+6
| |
* | Fix typo in belongs_to_required_by_default config's CHANGELOG entry [ci skip]Prathamesh Sonpatki2015-03-221-1/+1
|/
* `rake initializer` -> `rake initializers`Godfrey Chan2015-03-201-4/+5
| | | | | | Also edited the copy to be more consistent with `rake routes`. See #19323.
* Revert "Merge pull request #19411 from dmathieu/rack_env_changelog"Jeremy Kemper2015-03-201-7/+0
| | | | | | | Preserving RACK_ENV behavior. This reverts commit b19990c82c6a9beff0cd058dc2ff67894a2f9ea7, reversing changes made to ac291b76ea770b5795c767f2f74a8d0b33744809.
* add changelog entry for removing the fallback to rack_envDamien Mathieu2015-03-191-0/+7
| | | | [ci skip]
* Add a new-line to the end of route method generated code.Arthur Neves2015-03-181-0/+7
| | | | | | | | 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]
* Add `rake initializer`Naoto Kaneko2015-03-141-0/+7
| | | | | This task prints out initializers for an application. It is useful to develop a rubygem which involves the initialization process.
* Revert "Merge pull request #15476 from JacobEvelyn/master"Jeremy Kemper2015-03-111-7/+0
| | | | | | | | | | | | | | | | This introduces undesirable `Rails.logger` formatters (such as the syslog formatter) onto a `Logger.new(STDERR)` for the console. The production logger may be going elsewhere than standard io, so we can't presume to reuse its formatter. With syslog, this causes missing newlines in the console, so irb prompts start at the end of the last log message. We can work to expose the console formatter in another way to address the original issue. This reverts commit 026ce5ddf11c4cda0aae7f33a9266e54117db318, reversing changes made to 6f0a69c5899ebdc892e2aa23e68e2604fa70fb73.
* Created rake restart task.Hyonjee Joo2015-02-261-0/+7
| | | | | | Fixes #18876. Rake restart touches `tmp/restart.txt` to restart application on next request. Updated tests and documentation accordingly.