Commit Graph

372 Commits

Author SHA1 Message Date
Vipul A M
3d52f6ce61 - Fence some commands, options, gems, etc. with quotes
- Added missing config to complete config names
- Fixed route generators changelog grammar.
- rake:stats => rake stats
- Fixed grammar of assert_file change
- Make sure we end all sentences

[ci skip]
2016-04-10 22:43:47 +05:30
Prathamesh Sonpatki
9d87ce34f8 Fix rails restart issue with Puma
- We need to pass the restart command to Puma so that it will use it
  while restarting the server.
- Also made sure that all the options passed by user while starting
  the server are used in the generated restart command so that they will
  be used while restarting the server.
- Besides that we need to remove the server.pid file for the previous running
  server because otherwise Rack complains about it's presence.
- We don't care if the server.pid file does not exist. We only want to delete
  it if it exists.
- This also requires some changes on Puma side which are being tracked
  here - https://github.com/puma/puma/pull/936.
- Fixes #23910.
2016-03-30 11:20:15 +05:30
Yves Senn
c94045dc1c guides, sync railties and AP changelogs with 5.0 release notes.
[ci skip]

This updates the 5.0 release notes guide to reflect changes that
happened after beta1 has been released.

I'll sync the other changelogs later today but I'll push this batch to
prevent against cumbersome merge conflicts.
2016-03-22 12:12:39 +01:00
Jeremy Daer
4f21ac7e9c Fix CHANGELOG spacing [ci skip] 2016-03-02 11:37:19 -07:00
Xavier Noria
b04d07337f generate config/spring.rb in new applications [closes #18874] 2016-02-29 23:36:35 +01:00
Ryo Hashimoto
eaec958630 The tasks in the rails task namespace is deprecated in favor of app namespace.
(e.g. `rails:update` and `rails:template` tasks is renamed to `app:update` and `app:template`.)
2016-02-26 19:35:23 +09:00
Prathamesh Sonpatki
ddcb3eaf87 Add CHANGELOG entry 2016-02-25 10:28:44 +05:30
eileencodes
dbfa8fdfc2 Preparing for 5.0.0.beta3 release
Adds changelog headers for beta3 release
2016-02-24 11:14:40 -05:00
Prathamesh Sonpatki
c6a0f7422f Add CHANGELOG for https://github.com/rails/rails/pull/23734 [ci skip] 2016-02-24 19:06:13 +05:30
claudiob
1a5941e3cf AppGenerator: Replace 'rake' with 'rails_command'
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`.
2016-02-20 10:01:55 -08:00
yuuji.yaginuma
1b8fc04216 modify to error also abort when specify fail fast option 2016-02-17 22:04:32 +09:00
Xavier Noria
94dbc48887 adds --skip-listen to the application generator [closes #23590] 2016-02-17 00:59:42 +01:00
Xavier Noria
00a5eb6aeb include spring-watcher-listen in the Gemfile of new applications 2016-02-10 00:45:19 +01:00
Xavier Noria
de6ad5665d enables the evented monitor in new applications 2016-02-10 00:28:50 +01:00
yuuji.yaginuma
c9768b8a88 move CHANGELOG entry to the appropriate position [ci skip]
Dummy apple icon files has been added after the 5.0.0.beta2 release.
ref: #23455
2016-02-05 18:27:22 +09:00
Alexey Zabelin
deae52a62e Add dummy apple icon files
Previously Safari would try to load these files when you visit
localhost:3000. That created two exceptions in the log. It also caused
the exception notifier to send them out.

In response to #23427
2016-02-03 14:55:37 -05:00
Rafael Mendonça França
60b040e362 Add some Action Cable CHANGELOG entries
And improve changelongs.

[ci skip]
2016-02-01 19:57:50 -02:00
Sean Griffin
49f6ce63f3 Preparing for Rails 5.0.0.beta2 2016-02-01 14:37:52 -07:00
Ryan Manuel
92e565825d Implemented pull request changes. 2016-01-29 09:27:00 -06:00
Ryan Manuel
3a06a06ca9 Update doc with appropriate issue and pull request versions 2016-01-28 13:06:11 -06:00
Ryan Manuel
31701fbdf2 Add an after_bundle callback in Rails plugin templates 2016-01-28 12:43:24 -06:00
yuuji.yaginuma
6f0bbce50b remove unnecessary ENV[] from log:clear example [ci skip] 2016-01-16 13:27:20 +09:00
Yves Senn
64448c29de bring back TEST env for rake test.
Closes #23027.

This does not restore complete backwards compatibility. It simply passes
the contets of the `TEST` env to the new runner.
2016-01-12 19:26:05 +01:00
Pramod
68f46a815f rake log:clear task updated refs[#22544]
- Avoided truncating all files if no ENV['LOGS'] specified
- Updated task to accept LOGS=all for truncating all files from log/ i.e. log/*log
- If no LOGS specified will truncates standard environment log files i.e. 'development,test,production'
- CHANGELOG & guide update added
- bin/setup test cases fixed
2016-01-09 13:39:41 +05:30
Yves Senn
0d1d50c2db release notes, extract notable changes from Railties CHANGELOG.
[ci skip]
2015-12-22 10:59:45 +01:00
Akshay Vishnoi
5bae9d4f30 [ci skip] No more no changes entries in the CHANGELOGs (cases left in #22718) 2015-12-22 01:20:29 +05:30
Will Fisher
12dd2ca863 Fixes using add_source with a block after using gem in a custom rails
generator template.
2015-12-21 06:06:30 -09:00
eileencodes
099ddfdefd Add CHANGELOG headers for Rails 5.0.0.beta1 2015-12-18 15:58:25 -05:00
yuuji.yaginuma
f34beb52e2 README.rdoc -> README.md for newly generated plugins
I think Markdown is nowadays a better default.
2015-12-17 21:24:52 +09:00
Xavier Noria
7223596259 let config.file_watcher be the way to enable the evented file watcher
Before this commit, the sole presence of the Listen constant
enabled the evented file watcher (unless listen resorted to
the polling backend).

This way, applications may depend on listen for other stuff
independently of this feature. Also, allows teams with mixed
setups to decide at boot time whether the evented watcher
should be enabled for each particular instance.
2015-12-13 18:47:42 +01:00
Jorge Bejar
290a536d28 Update Changelog with the added response_format option in AD::DebugExceptions 2015-12-09 10:53:46 -03:00
Arkadiusz Fal
ec2aefdbfa Fix #22232: rake test tasks exit status code
The exit status code was not set when tests were fired with `rake`.
Now, it is being set and it matches behavior of running tests via `rails`
command (`rails test`), so no matter if `rake test` or `rails test` command
is used the exit code will be set.
2015-12-07 22:27:15 +01:00
Chuck Callebs
2ddb599710 Add Rails command infrastructure and encapsulate development caching 2015-12-04 13:15:43 -05:00
Chris Kottom
9ebda29135 allow use of minitest-rails gem with test runner 2015-11-30 19:13:14 +01:00
yuuji.yaginuma
8242bcfa3e add bin/test script to rails plugin 2015-11-28 07:20:29 +09:00
Yuki Nishijima
ce83dc98bb Make the static_index config part of the config.public_server config
Also call it `public_server.index_name` so it'll make more sense.
2015-11-16 03:39:24 -08:00
Xavier Noria
59be32b572 registers these changes in the CHANGELOGs 2015-11-11 06:24:29 +01:00
Kasper Timm Hansen
a3e05f7c81 Move static_cache_contorl deprecation changelog entry to Railties.
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.
2015-11-04 22:07:45 +01:00
Kasper Timm Hansen
748b2f9cb1 Add enabled flag to the public file server.
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.
2015-11-03 23:10:55 +01:00
Thiago Pinto
a9f9e1dd98 Route generator should be idempotent - closes #22082 2015-10-31 01:16:38 -02:00
Simon Eskildsen
e58c96766f rails/application: allow passing an env to config_for 2015-10-30 18:57:54 +00:00
Kevin Deisz
3e3f3563b8 Allow rake:stats to account for rake tasks 2015-10-19 10:36:30 -04:00
James Kerr
279d0ae816 Update the URL when changing mailer preview formats
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.
2015-10-06 13:32:07 -07:00
Aaron Patterson
24f9c03d52 Revert "removing Rack::Runtime from the default stack."
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.
2015-10-03 14:21:31 -07:00
Aaron Patterson
37423e4ff8 removing Rack::Runtime from the default stack.
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
```
2015-10-02 14:45:31 -07:00
Roque Pinel
e2b3ccd1aa Refactor AS::Callbacks halt config and fix the documentation
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
2015-10-01 13:04:20 -04:00
Kasper Timm Hansen
2310fb9d81 Add fail fast to test runner.
Passing `--fail-fast` to the test runner will now abort the test run
on the first failure. The run continues on any unexpected errors.
2015-09-29 08:37:33 +02:00
Kasper Timm Hansen
64a3b09b40 Add inline failure reporting to test runner.
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.
2015-09-28 20:30:03 +02:00
Wojciech Wnętrzak
472358d030 Fix displaying mailer previews on non local requests.
When config `action_mailer.show_previews` is set, previews are displayed
regardless of local request check.
2015-09-17 15:57:09 +02:00
David Cornu
306c14c411 Use the PORT environment variable for rails server 2015-08-18 08:43:11 -04:00