Commit Graph

11112 Commits

Author SHA1 Message Date
Arthur Nogueira Neves
64e4f201a9 Merge pull request #23921 from y-yagi/remove_rack_cors_initializer_when_updating
remove rack cors initializer when updating
2016-02-27 12:29:16 -05:00
Kasper Timm Hansen
6fb31638c8 Merge pull request #23439 from ryohashimoto/160203_rake_rails
Use app namespace for framework tasks
2016-02-27 15:14:56 +01:00
yuuji.yaginuma
5a9cc012a0 remove rack cors initializer when updating
Rack cors initializer is only necessary to API-only applications, for when the update is unnecessary.
2016-02-27 11:48:52 +09:00
Rafael Mendonça França
0d37f122fc ✂️ 2016-02-26 20:27:32 -03:00
Rafael Mendonça França
2142064fe1 Merge pull request #23917 from chashmeetsingh/patch-1
Create tmp folder if not present
2016-02-26 20:24:44 -03:00
Chashmeet Singh
7ce3ad1206 Create tmp folder if not present
All Apps may not have a tmp folder

Update dev.rake

Update dev.rake

Update dev.rake

Update dev.rake

Update dev.rake

Update dev.rake

Update dev.rake
2016-02-27 04:51:49 +05:30
Ian Ker-Seymer
25a8ba935f
Specify plaform: :mri for byebug 2016-02-26 18:01:12 -05:00
schneems
8374b2fc85 [close #23681] Use puma 3.0.0+
Puma 3.0 and up introduced compatibility to read from `config/puma.rb` when booting from the command `$ rails server`https://github.com/puma/puma/pull/856.
2016-02-26 08:22:24 -06: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
Rafael França
0e24fcc5eb Merge pull request #23852 from prathamesh-sonpatki/hsts-subdomains
Enable HSTS with IncludeSubdomains header by default for new apps
2016-02-25 21:59:36 -03:00
Rafael França
1cc96c2e5f Merge pull request #23846 from y-yagi/correctly_check_ApplicationRecord_in_mountable_engine
correctly check `ApplicationRecord` is exist in moutable engine
2016-02-25 21:02:00 -03:00
Prathamesh Sonpatki
ddcb3eaf87 Add CHANGELOG entry 2016-02-25 10:28:44 +05:30
Prathamesh Sonpatki
9ea8de334e Old applications will not get the ssl_options initializer
- We will remove the initializer for old apps which are migrated to
  Rails 5 so that they are not affected by this breaking change.
2016-02-25 09:43:33 +05:30
Prathamesh Sonpatki
00c4ecf38c New applications will be generated with ssl_options to enable HSTS with subdomains
- We will reuse config.ssl_options for setting the HSTS settings.
2016-02-25 09:42:30 +05:30
Jon Moss
9e30869c9a Merge pull request #23863 from delftswa2016/fix-readme-heading
Fix README heading according to Markdown conventions
2016-02-24 21:50:14 -05:00
Aaron Ang
5bd179787f Fix title of README according to Markdown conventions
The first heading in some README's are indicated using a second level
heading (`##`), which in my opinion is of incorrect structure.
Therefore, in this patch I changed the first heading to a first level
heading (`#`) in README's where this incorrect structure occurs.

[ci skip]
2016-02-25 03:39:02 +01:00
Jon Moss
1afd414488 Only open Action Cable connection if data is being sent 2016-02-24 20:37:52 -05:00
Jon Moss
8b69f1eeba Enable Action Cable routes by default
This also marks Action Cable routes as internal to Rails.
2016-02-24 19:05:03 -05:00
yuuji.yaginuma
9614f9317f correctly check ApplicationRecord is exist in moutable engine
Follow up to 1813b29fc7632959800252f36e4b2e6ed4ac7266
2016-02-25 07:48:11 +09:00
Prathamesh Sonpatki
263d63c15d Don't put config.action_mailer.perform_caching entry twice in development.rb 2016-02-24 22:35:15 +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
Rafael Mendonça França
6852039173 Enable tmp_restart plugin for puma
Fixes #23855
2016-02-24 12:59:01 -03:00
eileencodes
826420b5fc Prep release for Rails 5 beta3 2016-02-24 10:27:02 -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
Rafael Mendonça França
34ad8240f2 Always use the released coffee-rails in new applications
coffee-rails is stable now so we don't need to point to the master
branch.
2016-02-24 10:20:18 -03:00
Rafael França
709a554d1b Merge pull request #23849 from prathamesh-sonpatki/fix-23822
Show permitted flag in the output of AC::Parameters#inspect
2016-02-24 10:10:45 -03:00
David Heinemeier Hansson
ef06afe29a Merge pull request #23795 from claudiob/replace-rack-with-rails-command
AppGenerator: Replace 'rake' with 'rails_command'
2016-02-24 12:09:17 +01:00
Prathamesh Sonpatki
5f59c10471 Show permitted flag in the output of AC::Parameters#inspect
- Fixes #23822.
2016-02-24 13:55:37 +05:30
Rafael Mendonça França
e40518f5d4 Merge branch 'actionmailer-cache'
This is a rebased version of #22825.

Closes #22825.
2016-02-24 00:09:07 -03:00
Rafael Mendonça França
c9be5e088c Use the trick to get beta releases in the Gemfile 2016-02-23 23:57:27 -03:00
Stan Lo
3d7b0d4804 Change ActionMailer's default caching configuration and update generator's environment templates 2016-02-23 21:11:15 -03:00
Sam Stephenson
fa1b52bfc7 New apps get the Turbolinks beta gem 2016-02-23 17:55:49 -06:00
Sam Stephenson
7225f0bb9f Switch to data-turbolinks-track="reload" 2016-02-23 17:55:32 -06:00
Richard Schneeman
e9b96f0d66 Merge pull request #23734 from schneems/schneems/stdout-again
Alternative to #23638 log to STDOUT via env var
2016-02-23 14:12:03 -06:00
Rafael França
3adc35aefa Merge pull request #23789 from wisetara/wisetara/deprecate-args-ActiveSupport__TestCase#assert_nothing_raised-for-pr
Wisetara/deprecate args active support  test case#assert nothing raised for pr
2016-02-23 13:59:49 -03:00
Aaron Patterson
79887593c1 reestablish previous connection after creating all databases
creating all databases mutates the connection pool.  This patch restores
the connection pool to the connection spec established before creating
all databases.  Fixes #23279
2016-02-23 08:13:09 -08:00
Tara Scherner de la Fuente
926a24a751 remove args from assert_nothing_raised in tests 2016-02-22 22:56:23 -08:00
Rafael França
40200c202a Merge pull request #23669 from maclover7/internal-routes
Add `internal` attribute to routes
2016-02-22 23:10:06 -03:00
Jon Moss
83921b8f87 Generate ApplicationCable files if they do not already exist 2016-02-22 20:46:06 -05:00
Jon Moss
1813b29fc7 Generate ApplicationRecord if it does not already exist 2016-02-22 20:45:36 -05:00
Jon Moss
063e816919 Generate config/cable.yml in rails:update command 2016-02-22 20:45:36 -05:00
Jon Moss
cd8bb8b6ce Add internal attribute to routes
This is meant to provide a way for Action Cable, Sprockets, and possibly
other Rack applications to mark themselves as internal, and to exclude
themselves from the routing inspector, and thus `rails routes` / `rake
routes`.

I think this is the only way to have mounted Rack apps be marked as
internal, within AD/Journey. Another option would be to create an array
of regexes for internal apps, and then to iterate over that everytime a
request comes through. Also, I only had the first `add_route` method set
`internal`'s default to false, to avoid littering it all over the
codebase.
2016-02-22 20:30:18 -05:00
Aaron Patterson
7a36686c11 make sure rake test respects TESTOPTS
We should be able to pass options to minitest via TESTOPTS environment
variable
2016-02-22 16:14:14 -08:00
Kasper Timm Hansen
6dfcfef73b [ci skip] Mention testing fore-runners.
Get it? ( ͡° ͜ʖ ͡°)
2016-02-21 16:41:27 +01:00
Kasper Timm Hansen
003633c3f0 Merge pull request #23799 from y-yagi/use_method_provided_by_minitest
use method provided by minitest
2016-02-21 16:11:18 +01:00
yuuji.yaginuma
64d5373981 use method provided by minitest
The process of converting `Test` to `String` is already defined in minitest.
I think it is better to use that for the consistency of output content.

ref: https://github.com/seattlerb/minitest/blob/master/lib/minitest/test.rb#L261..L267
2016-02-21 15:51:35 +09:00
claudiob
191866f75b Invoke 'rails' instead of 'rake' in AppGenerator
Follows the convention from Rails 5 of invoking tasks on the command-line
with `rails …` rather than `rake …`.
2016-02-20 10:06:19 -08:00
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
Kasper Timm Hansen
b4558c10fb Make collection caching explicit.
Having collection caching that wraps templates and automatically tries
to infer if they are cachable proved to be too much of a hassle.

We'd rather have it be something you explicitly turn on.

This removes much of the code and docs to explain the previous automatic
behavior.

This change also removes scoped cache keys and passing cache_options.
2016-02-20 16:54:32 +01:00
Aaron Patterson
3bd9fe1708 Merge pull request #23756 from tenderlove/move_digest_cache
move digest cache on to the DetailsKey object
2016-02-18 09:23:59 -08:00