Commit Graph

391 Commits

Author SHA1 Message Date
yuuji.yaginuma 72831d75b6 run `before_configuration` callbacks as soon as application constant inherits from Rails::Application
Until Rails 4.1, `before_configuration` run as soon as the application constant
inherits from `Rails::Application`.
However, in d25fe31c40, it has been modified to
run at instantiation process.

This modify to `before_configuration` is run at same timing as to Rails 4.1.

Fixes #19880
2016-08-19 12:12:00 +09:00
Ben Pickles 09ed4e95ac A generated app should not include Uglifier with `--skip-javascript` option. 2016-07-26 19:18:30 +01:00
Rafael Mendonça França a8a3a8cc69
Merge pull request #25438 from prathamesh-sonpatki/rm-session-store-initializer
Setup default session store internally, no longer through an initializer
2016-07-20 02:32:37 -03:00
Prathamesh Sonpatki e5a6f7ee9e
Setup default session store internally, no longer through an application initializer
- By default the session store will be set to cookie store with
  application name as session key.
- Older apps are not affected as they will have the session store
  initializer generated by Rails in older versions, and Rails will not
  overwrite the session store if it is already set or disabled.
- But new apps will not have the initializer, instead the session store
  will be set to cookie store by default.
- Based on comment by DHH here - https://github.com/rails/rails/issues/25181#issuecomment-222312764.
2016-07-17 19:45:51 +05:30
Vipul A M 6a10978e68
Fix CHANGELOG grammar [ci skip] 2016-07-16 23:04:08 -07:00
Prathamesh Sonpatki 91251fdcbd
CHANGELOG for https://github.com/rails/rails/pull/25257 [ci skip]
- Also minor weekly CHANGELOG cleanup.
2016-07-17 11:27:06 +05:30
Prathamesh Sonpatki 724b0833bd
Cleanup CHANGELOGs [ci skip]
- Cleanup Active Record CHANGELOG.
- Add missing CHANGELOG for https://github.com/rails/rails/pull/25688.
- Clarify that assets requests logging is suppressed.
2016-07-09 18:11:35 +05:30
Rafael Mendonça França 9c4c2126b1
Merge pull request #25714 from robin850/changelog-25692
Add a changelog entry for #25692
2016-07-07 23:56:57 -03:00
Robin Dupret e2b21620e9 Add a changelog entry for #25692 [ci skip] 2016-07-06 14:38:48 +02:00
Rafael Mendonça França fbd1e98cf9
Do not run `bundle install` when generating a new plugin.
Since bundler 1.12.0, the gemspec is validated so the `bundle install`
command will fail just after the gem is created causing confusion to the
users. This change was a bug fix to correctly validate gemspecs.
2016-07-01 22:19:47 -03:00
Kevin McPhillips 2ffa001faa Update changelog for #25351 2016-06-22 20:43:12 -04:00
Nicholas Firth-McCoy 9d513e0a19 Fix rails/info routes for apps with globbing route
The /rails/info routes were inaccessible in apps with a catch-all
globbing route, as they were being appended after the globbing route and
would never be matched.

See also ccc3ddb776.
2016-06-20 21:49:12 +10:00
Jon Moss e882ce00ab Remove version header from railties CHANGELOG.md (#25122)
[ci skip]
2016-05-24 13:45:26 -03:00
Jon Moss 40f31da381
Add backticks to `config/secrets.yml`
[ci skip]
2016-05-21 12:29:34 -04:00
David Heinemeier Hansson e530534265 Added a shared section to config/secrets.yml that will be loaded for all environments 2016-05-21 15:07:23 +02:00
Rafael Mendonça França 8ecc5ab1d8 Start Rails 5.1 development 🎉 2016-05-10 03:46:56 -03:00
Rafael Mendonça França fbdcf5221a Preparing for 5.0.0.rc1 release 2016-05-06 16:54:40 -05:00
eileencodes f7a986012a Prep Rails 5 beta 4 2016-04-27 15:48:47 -05:00
Andrew White c9c5788a52 Add compatibility for Ruby 2.4 `to_time` changes
In Ruby 2.4 the `to_time` method for both `DateTime` and `Time` will
preserve the timezone of the receiver when converting to an instance
of `Time`. Since Rails 5.0 will support Ruby 2.2, 2.3 and later we
need to introduce a compatibility layer so that apps that upgrade do
not break. New apps will have a config initializer file that defaults
to match the new Ruby 2.4 behavior going forward.

For information about the changes to Ruby see:
https://bugs.ruby-lang.org/issues/12189
https://bugs.ruby-lang.org/issues/12271

Fixes #24617.
2016-04-23 15:03:50 +01:00
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