From 4816fdd385b3187b1eaaa2ec4d0026324d631e45 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Tue, 21 May 2013 21:04:29 +0530 Subject: Use .railsrc while creating new plugin if available - Fixes #10700 --- railties/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 21ac596ab9..6169f3ebee 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,8 @@ +* Uses .railsrc while creating new plugin if it is available. + Fixes #10700. + + *Prathamesh Sonpatki* + * Remove turbolinks when generating a new application based on a template that skips it. Example: -- cgit v1.2.3 From df50e3064abc3099adc524f381ffced0dab84869 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Sat, 2 Nov 2013 18:25:02 +0000 Subject: Install Spring preloader when generating new applications --- railties/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 6169f3ebee..0eda858cca 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,10 @@ +* The [Spring application + preloader](https://github.com/jonleighton/spring) is now installed + by default for new applications. It uses the development group of + the Gemfile, so will not be installed in production. + + *Jon Leighton* + * Uses .railsrc while creating new plugin if it is available. Fixes #10700. -- cgit v1.2.3 From 69ac53cfec067103427945b3ef137b9ce07294c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 19 Nov 2013 22:34:32 -0200 Subject: Add documentation and CHANGELOG entry to Application#verifier --- railties/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 0eda858cca..a42e942f9b 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,15 @@ +* Add `Application#verifier` method to return a application's message verifier. + + This verifier can be used to generate and verify signed messages in the application. + + message = Rails.application.verifier.generate('my sensible data') + Rails.application.verifier.verify(message) + # => 'my sensible data' + + See the `ActiveSupport::MessageVerifier` documentation to more information. + + *Rafael Mendonça França* + * The [Spring application preloader](https://github.com/jonleighton/spring) is now installed by default for new applications. It uses the development group of -- cgit v1.2.3 From 609c217628acb4e1a01c4c40055d6d3304710bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 21 Nov 2013 23:07:26 -0200 Subject: Rename verifier to message_verifier --- railties/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index a42e942f9b..dc753dbeac 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,9 +1,9 @@ -* Add `Application#verifier` method to return a application's message verifier. +* Add `Application#message_verifier` method to return a application's message verifier. This verifier can be used to generate and verify signed messages in the application. - message = Rails.application.verifier.generate('my sensible data') - Rails.application.verifier.verify(message) + message = Rails.application.message_verifier.generate('my sensible data') + Rails.application.message_verifier.verify(message) # => 'my sensible data' See the `ActiveSupport::MessageVerifier` documentation to more information. -- cgit v1.2.3 From 2be4916e8ee6f36b090df91d28d0c484983dcb5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 21 Nov 2013 23:42:10 -0200 Subject: Make possibile to get different message verifiers --- railties/CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index dc753dbeac..85db9f62ed 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,4 +1,4 @@ -* Add `Application#message_verifier` method to return a application's message verifier. +* Add `Application#message_verifier` method to return a message verifier. This verifier can be used to generate and verify signed messages in the application. @@ -6,6 +6,14 @@ Rails.application.message_verifier.verify(message) # => 'my sensible data' + It is recommended to not use the same verifier to different things, so you can get different + verifiers passing the name argument. + + message = Rails.application.message_verifier('cookies').generate('my sensible cookie data') + + By default all the verifiers will share the same salt, so messages generates by one can be + verifier by another one. + See the `ActiveSupport::MessageVerifier` documentation to more information. *Rafael Mendonça França* -- cgit v1.2.3 From f98bd42854cc00868cd3f17fe164f32be7315d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 22 Nov 2013 00:02:10 -0200 Subject: No need to configure salts --- railties/CHANGELOG.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 85db9f62ed..6c3090bc34 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -6,15 +6,12 @@ Rails.application.message_verifier.verify(message) # => 'my sensible data' - It is recommended to not use the same verifier to different things, so you can get different + It is recommended not not use the same verifier for different things, so you can get different verifiers passing the name argument. message = Rails.application.message_verifier('cookies').generate('my sensible cookie data') - By default all the verifiers will share the same salt, so messages generates by one can be - verifier by another one. - - See the `ActiveSupport::MessageVerifier` documentation to more information. + See the `ActiveSupport::MessageVerifier` documentation for more information. *Rafael Mendonça França* -- cgit v1.2.3 From d3d84988674dde77236d04181b48468765ed56c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 2 Dec 2013 22:42:10 -0200 Subject: Fix typos --- railties/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 6c3090bc34..255e49356f 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -6,7 +6,7 @@ Rails.application.message_verifier.verify(message) # => 'my sensible data' - It is recommended not not use the same verifier for different things, so you can get different + It is recommended not to use the same verifier for different things, so you can get different verifiers passing the name argument. message = Rails.application.message_verifier('cookies').generate('my sensible cookie data') -- cgit v1.2.3 From 48c703b055a6b287100f3c0fbc18f1294d7c7af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 4 Dec 2013 23:11:42 -0200 Subject: Make salt argument required for message verifier --- railties/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 255e49356f..166080c5b0 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -2,8 +2,8 @@ This verifier can be used to generate and verify signed messages in the application. - message = Rails.application.message_verifier.generate('my sensible data') - Rails.application.message_verifier.verify(message) + message = Rails.application.message_verifier('salt').generate('my sensible data') + Rails.application.message_verifier('salt').verify(message) # => 'my sensible data' It is recommended not to use the same verifier for different things, so you can get different -- cgit v1.2.3 From 64c784f5534bdd18866700f9441d99bcef568c3a Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Thu, 5 Dec 2013 11:33:12 +0100 Subject: end sentences with a `.`. [ci skip] --- railties/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 166080c5b0..3813ef7909 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -177,11 +177,11 @@ *Paul Nikitochkin* * Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in - favor of `ActiveRecord::Generators::ActiveModel#update` + favor of `ActiveRecord::Generators::ActiveModel#update`. *Vipul A M* -* Remove deprecated `config.whiny_nils` option +* Remove deprecated `config.whiny_nils` option. *Vipul A M* -- cgit v1.2.3 From 971d5107cd4cd08c22a85d34546f4ba03ed5c925 Mon Sep 17 00:00:00 2001 From: Huiming Teo Date: Sun, 15 Dec 2013 14:07:34 +0800 Subject: fixed rails dbconsole to support ENV['DATABASE_URL']. --- railties/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 3813ef7909..cf8d2c2c88 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,7 @@ +* Add `ENV['DATABASE_URL']` support in `rails dbconsole`. Fixes #13320. + + *Huiming Teo* + * Add `Application#message_verifier` method to return a message verifier. This verifier can be used to generate and verify signed messages in the application. -- cgit v1.2.3 From 83e4dde41a09bf501c41386f874a83b2f50af5f3 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 17 Dec 2013 12:40:13 -0500 Subject: Add changelog entries about secrets.yml and secrets.secret_key_base --- railties/CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index cf8d2c2c88..8fbac31c0a 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,32 @@ +* Move `secret_key_base` from `config/initializers/secret_token.rb` + to `config/secrets.yml`. + + `secret_key_base` is now saved in `Rails.application.secrets.secret_key_base` + and it fallbacks to the value of `config.secret_key_base` when it is not + present in `config/secrets.yml`. + + `config/initializers/secret_token.rb` is not generated by default + in new applications. + + *Guillermo Iguaran* + +* Generate a new `secrets.yml` file in the `config` folder for new + applications. By default, this file contains the application's `secret_key_base`, + but it could also be used to store other secrets such as access keys for external + APIs. + + The secrets added to this file will be accessible via `Rails.application.secrets`. + For example, with the following `secrets.yml`: + + development: + secret_key_base: 3b7cd727ee24e8444053437c36cc66c3 + some_api_key: SOMEKEY + + `Rails.application.secrets.some_api_key` will return `SOMEKEY` in the development + environment. + + *Guillermo Iguaran* + * Add `ENV['DATABASE_URL']` support in `rails dbconsole`. Fixes #13320. *Huiming Teo* -- cgit v1.2.3 From 61f6b47204c63715b4a49f078f9d58f24f06f502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 19 Dec 2013 17:00:53 -0200 Subject: Change the message verifier argument to verifier_name --- railties/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 8fbac31c0a..084b87bf35 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -35,8 +35,8 @@ This verifier can be used to generate and verify signed messages in the application. - message = Rails.application.message_verifier('salt').generate('my sensible data') - Rails.application.message_verifier('salt').verify(message) + message = Rails.application.message_verifier('sensitive_data').generate('my sensible data') + Rails.application.message_verifier('sensitive_data').verify(message) # => 'my sensible data' It is recommended not to use the same verifier for different things, so you can get different -- cgit v1.2.3 From bfdae1775a298a4240c32e87d84ea7e8c6dccb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 19 Dec 2013 17:04:07 -0200 Subject: Make possible to use symbol as the verifier name --- railties/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 084b87bf35..9404c18f57 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -35,14 +35,14 @@ This verifier can be used to generate and verify signed messages in the application. - message = Rails.application.message_verifier('sensitive_data').generate('my sensible data') - Rails.application.message_verifier('sensitive_data').verify(message) + message = Rails.application.message_verifier(:sensitive_data).generate('my sensible data') + Rails.application.message_verifier(:sensitive_data).verify(message) # => 'my sensible data' It is recommended not to use the same verifier for different things, so you can get different verifiers passing the name argument. - message = Rails.application.message_verifier('cookies').generate('my sensible cookie data') + message = Rails.application.message_verifier(:cookies).generate('my sensible cookie data') See the `ActiveSupport::MessageVerifier` documentation for more information. -- cgit v1.2.3 From 02c814c99202e42ebeb10b89af1392b594c727e9 Mon Sep 17 00:00:00 2001 From: Kassio Borges Date: Thu, 19 Dec 2013 22:12:55 -0200 Subject: `html` and `text` templates for mailers by default --- railties/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 9404c18f57..ab8f64c647 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,7 @@ +* Generates `html` and `text` templates for mailers by default. + + *Kassio Borges* + * Move `secret_key_base` from `config/initializers/secret_token.rb` to `config/secrets.yml`. -- cgit v1.2.3 From d39db9da1a7e093f0248c9755fb8333d89dc1724 Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sat, 21 Dec 2013 14:49:16 +0100 Subject: Add a changelog entry for #13326 [ci skip] --- railties/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index ab8f64c647..aa26017bda 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,11 @@ +* `config.assets.raise_runtime_errors` is set to true by default + + This option has been introduced in + [sprockets-rails#100][https://github.com/rails/sprockets-rails/pull/100] + and defaults to true in new applications in development. + + *Richard Schneeman* + * Generates `html` and `text` templates for mailers by default. *Kassio Borges* -- cgit v1.2.3 From 2d4cfb28408f53daea11f45fb5e0aebdce8963d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 23 Dec 2013 20:34:11 +0100 Subject: Update CHANGELOG [ci skip] --- railties/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index aa26017bda..a83c2b2355 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,8 @@ +* Configure `secrets.yml` and `database.yml` to read configuration + from the system environment by default for production. + + *José Valim* + * `config.assets.raise_runtime_errors` is set to true by default This option has been introduced in -- cgit v1.2.3 From ff7ab3bc78abc3e8439a57ef7d755c5aa5b069f4 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Sun, 29 Dec 2013 11:05:04 +0000 Subject: Automatically maintain test database schema * Move check from generated helper to test_help.rb, so that all applications can benefit * Rather than just raising when the test schema has pending migrations, try to load in the schema and only raise if there are pending migrations afterwards * Opt out of the check by setting config.active_record.maintain_test_schema = false * Deprecate db:test:* tasks. The test helper is now fully responsible for maintaining the test schema, so we don't need rake tasks for this. This is also a speed improvement since we're no longer reloading the test database on every call to "rake test". --- railties/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'railties/CHANGELOG.md') diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index a83c2b2355..21887c32fe 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,9 @@ +* `test_help.rb` now automatically checks/maintains your test datbase + schema. (Use `config.active_record.maintain_test_schema = false` to + disable.) + + *Jon Leighton* + * Configure `secrets.yml` and `database.yml` to read configuration from the system environment by default for production. -- cgit v1.2.3