railties 4.0.13 → 4.1.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +155 -385
- data/README.rdoc +1 -1
- data/bin/rails +1 -1
- data/lib/rails.rb +11 -13
- data/lib/rails/all.rb +1 -0
- data/lib/rails/api/task.rb +9 -12
- data/lib/rails/app_rails_loader.rb +2 -2
- data/lib/rails/application.rb +154 -149
- data/lib/rails/application/configuration.rb +1 -14
- data/lib/rails/application/default_middleware_stack.rb +99 -0
- data/lib/rails/application/finisher.rb +2 -0
- data/lib/rails/application_controller.rb +16 -0
- data/lib/rails/cli.rb +1 -2
- data/lib/rails/commands.rb +2 -94
- data/lib/rails/commands/application.rb +2 -28
- data/lib/rails/commands/commands_tasks.rb +174 -0
- data/lib/rails/commands/console.rb +2 -2
- data/lib/rails/commands/dbconsole.rb +1 -1
- data/lib/rails/commands/plugin.rb +23 -0
- data/lib/rails/commands/runner.rb +1 -1
- data/lib/rails/commands/server.rb +46 -30
- data/lib/rails/configuration.rb +4 -1
- data/lib/rails/console/helpers.rb +6 -0
- data/lib/rails/engine.rb +29 -18
- data/lib/rails/engine/commands.rb +1 -1
- data/lib/rails/engine/railties.rb +0 -8
- data/lib/rails/generators.rb +4 -3
- data/lib/rails/generators/actions.rb +1 -1
- data/lib/rails/generators/active_model.rb +0 -8
- data/lib/rails/generators/app_base.rb +213 -74
- data/lib/rails/generators/base.rb +17 -16
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +1 -1
- data/lib/rails/generators/erb/scaffold/templates/index.html.erb +1 -3
- data/lib/rails/generators/migration.rb +18 -26
- data/lib/rails/generators/named_base.rb +4 -7
- data/lib/rails/generators/rails/app/app_generator.rb +91 -5
- data/lib/rails/generators/rails/app/templates/Gemfile +20 -15
- data/lib/rails/generators/rails/app/templates/Rakefile +1 -1
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +2 -0
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +5 -3
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +5 -1
- data/lib/rails/generators/rails/app/templates/config/application.rb +2 -0
- data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +7 -10
- data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +11 -31
- data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +25 -29
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +8 -10
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +8 -11
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +6 -3
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +8 -22
- data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +7 -9
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +9 -12
- data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +8 -8
- data/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml +7 -17
- data/lib/rails/generators/rails/app/templates/config/environment.rb +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +2 -5
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/routes.rb +1 -1
- data/lib/rails/generators/rails/app/templates/config/{initializers/secret_token.rb.tt → secrets.yml} +10 -2
- data/lib/rails/generators/rails/app/templates/public/404.html +20 -11
- data/lib/rails/generators/rails/app/templates/public/422.html +20 -11
- data/lib/rails/generators/rails/app/templates/public/500.html +19 -10
- data/lib/rails/generators/rails/controller/USAGE +1 -0
- data/lib/rails/generators/rails/controller/controller_generator.rb +35 -1
- data/lib/rails/generators/rails/generator/USAGE +1 -0
- data/lib/rails/generators/rails/generator/generator_generator.rb +2 -0
- data/lib/rails/generators/rails/model/USAGE +5 -5
- data/lib/rails/generators/rails/{plugin_new → plugin}/USAGE +0 -0
- data/lib/rails/generators/rails/{plugin_new/plugin_new_generator.rb → plugin/plugin_generator.rb} +10 -4
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/%name%.gemspec +1 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/Gemfile +16 -1
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/MIT-LICENSE +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/README.rdoc +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/Rakefile +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/controllers/%name%/application_controller.rb.tt +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/helpers/%name%/application_helper.rb.tt +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/mailers/.empty_directory +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/models/.empty_directory +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/views/layouts/%name%/application.html.erb.tt +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/bin/rails.tt +0 -4
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/config/routes.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/gitignore +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%/engine.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%/version.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/tasks/%name%_tasks.rake +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/application.rb +1 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/boot.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/javascripts.js +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/routes.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/stylesheets.css +5 -3
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/%name%_test.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/integration/navigation_test.rb +0 -0
- data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/test_helper.rb +0 -0
- data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +1 -1
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +2 -2
- data/lib/rails/generators/resource_helpers.rb +20 -5
- data/lib/rails/generators/test_unit/generator/generator_generator.rb +26 -0
- data/lib/rails/generators/test_unit/generator/templates/generator_test.rb +16 -0
- data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +8 -1
- data/lib/rails/generators/test_unit/mailer/templates/preview.rb +11 -0
- data/lib/rails/generators/testing/assertions.rb +1 -1
- data/lib/rails/generators/testing/behaviour.rb +3 -13
- data/lib/rails/info.rb +5 -3
- data/lib/rails/info_controller.rb +5 -15
- data/lib/rails/mailers_controller.rb +73 -0
- data/lib/rails/paths.rb +13 -18
- data/lib/rails/rack/debugger.rb +2 -2
- data/lib/rails/rack/logger.rb +1 -1
- data/lib/rails/railtie.rb +38 -2
- data/lib/rails/source_annotation_extractor.rb +2 -2
- data/lib/rails/tasks.rb +0 -2
- data/lib/rails/tasks/documentation.rake +0 -5
- data/lib/rails/tasks/engine.rake +1 -1
- data/lib/rails/tasks/framework.rake +2 -12
- data/lib/rails/templates/layouts/application.html.erb +2 -2
- data/lib/rails/templates/rails/mailers/email.html.erb +98 -0
- data/lib/rails/templates/rails/mailers/index.html.erb +8 -0
- data/lib/rails/templates/rails/mailers/mailer.html.erb +6 -0
- data/lib/rails/test_help.rb +4 -1
- data/lib/rails/test_unit/sub_test_task.rb +44 -3
- data/lib/rails/test_unit/testing.rake +9 -111
- data/lib/rails/version.rb +3 -3
- data/lib/rails/welcome_controller.rb +4 -3
- metadata +99 -76
- data/lib/rails/commands/plugin_new.rb +0 -9
- data/lib/rails/generators/actions/create_migration.rb +0 -68
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7ae66566e8dfcb12d23fe457979c4ffc84d0f65
|
|
4
|
+
data.tar.gz: 7938e581c1191fab947ac431d27f955b67c653ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e557d3cccbd2631ccebcecbbfbe14e3ea87a52e49bc89384bfd9d5234f15d491d4ca34e9bc0c6b9b0f4f1493b302dae1a09ae5b7c951192a17acefe191a6ae31
|
|
7
|
+
data.tar.gz: b1ce9013c3333a53eb4fbcab3337dbc23cad8b5ead865ad068c3b76c595082ead2e66b27e6aae3f86cb611ebe5e2ae40e621c082d5b6487187ee9898dc61c040
|
data/CHANGELOG.md
CHANGED
|
@@ -1,488 +1,258 @@
|
|
|
1
|
-
|
|
1
|
+
* Move `secret_key_base` from `config/initializers/secret_token.rb`
|
|
2
|
+
to `config/secrets.yml`.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
`secret_key_base` is now saved in `Rails.application.secrets.secret_key_base`
|
|
5
|
+
and it fallbacks to the value of `config.secret_key_base` when it is not
|
|
6
|
+
present in `config/secrets.yml`.
|
|
4
7
|
|
|
8
|
+
`config/initializers/secret_token.rb` is not generated by default
|
|
9
|
+
in new applications.
|
|
5
10
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*No changes*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## Rails 4.0.11.1 (November 19, 2014) ##
|
|
12
|
-
|
|
13
|
-
*No changes*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Rails 4.0.11 (September 11, 2014) ##
|
|
17
|
-
|
|
18
|
-
*No changes*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Rails 4.0.10 (September 11, 2014) ##
|
|
22
|
-
|
|
23
|
-
* Scaffold generator `_form` partial adds `class="field"` for password
|
|
24
|
-
confirmation fields.
|
|
25
|
-
|
|
26
|
-
*noinkling*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## Rails 4.0.9 (August 18, 2014) ##
|
|
30
|
-
|
|
31
|
-
*No changes*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## Rails 4.0.8 (July 2, 2014) ##
|
|
35
|
-
|
|
36
|
-
*No changes*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## Rails 4.0.7 (July 2, 2014) ##
|
|
40
|
-
|
|
41
|
-
*No changes*
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## Rails 4.0.6 (June 26, 2014) ##
|
|
45
|
-
|
|
46
|
-
*No changes*
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## Rails 4.0.5 (May 6, 2014) ##
|
|
50
|
-
|
|
51
|
-
*No changes*
|
|
11
|
+
*Guillermo Iguaran*
|
|
52
12
|
|
|
13
|
+
* Generate a new `secrets.yml` file in the `config` folder for new
|
|
14
|
+
applications. By default, this file contains the application's `secret_key_base`,
|
|
15
|
+
but it could also be used to store other secrets such as access keys for external
|
|
16
|
+
APIs.
|
|
53
17
|
|
|
54
|
-
|
|
18
|
+
The secrets added to this file will be accessible via `Rails.application.secrets`.
|
|
19
|
+
For example, with the following `secrets.yml`:
|
|
55
20
|
|
|
56
|
-
|
|
21
|
+
development:
|
|
22
|
+
secret_key_base: 3b7cd727ee24e8444053437c36cc66c3
|
|
23
|
+
some_api_key: SOMEKEY
|
|
57
24
|
|
|
58
|
-
|
|
25
|
+
`Rails.application.secrets.some_api_key` will return `SOMEKEY` in the development
|
|
26
|
+
environment.
|
|
59
27
|
|
|
60
|
-
*
|
|
28
|
+
*Guillermo Iguaran*
|
|
61
29
|
|
|
62
30
|
* Add `ENV['DATABASE_URL']` support in `rails dbconsole`. Fixes #13320.
|
|
63
31
|
|
|
64
32
|
*Huiming Teo*
|
|
65
33
|
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
*Guillermo Iguaran*
|
|
69
|
-
|
|
70
|
-
* Fix default `config/application.rb` template to remove unused `config.assets.enabled` variable.
|
|
71
|
-
|
|
72
|
-
*Guillermo Iguaran*
|
|
34
|
+
* Add `Application#message_verifier` method to return a message verifier.
|
|
73
35
|
|
|
36
|
+
This verifier can be used to generate and verify signed messages in the application.
|
|
74
37
|
|
|
75
|
-
|
|
38
|
+
message = Rails.application.message_verifier('salt').generate('my sensible data')
|
|
39
|
+
Rails.application.message_verifier('salt').verify(message)
|
|
40
|
+
# => 'my sensible data'
|
|
76
41
|
|
|
77
|
-
|
|
42
|
+
It is recommended not to use the same verifier for different things, so you can get different
|
|
43
|
+
verifiers passing the name argument.
|
|
78
44
|
|
|
45
|
+
message = Rails.application.message_verifier('cookies').generate('my sensible cookie data')
|
|
79
46
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
*No changes*
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## Rails 4.0.1 (November 01, 2013) ##
|
|
86
|
-
|
|
87
|
-
* Fix the event name of action_dispatch requests.
|
|
47
|
+
See the `ActiveSupport::MessageVerifier` documentation for more information.
|
|
88
48
|
|
|
89
49
|
*Rafael Mendonça França*
|
|
90
50
|
|
|
91
|
-
*
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* Fix `rake environment` to do not eager load modules
|
|
96
|
-
|
|
97
|
-
*Paul Nikitochkin*
|
|
98
|
-
|
|
99
|
-
* Fix `rails plugin --help` command.
|
|
100
|
-
|
|
101
|
-
*Richard Schneeman*
|
|
102
|
-
|
|
103
|
-
* Omit turbolinks configuration completely on skip_javascript generator option.
|
|
104
|
-
|
|
105
|
-
*Nikita Fedyashev*
|
|
106
|
-
|
|
51
|
+
* The [Spring application
|
|
52
|
+
preloader](https://github.com/jonleighton/spring) is now installed
|
|
53
|
+
by default for new applications. It uses the development group of
|
|
54
|
+
the Gemfile, so will not be installed in production.
|
|
107
55
|
|
|
108
|
-
|
|
56
|
+
*Jon Leighton*
|
|
109
57
|
|
|
110
|
-
*
|
|
58
|
+
* Uses .railsrc while creating new plugin if it is available.
|
|
59
|
+
Fixes #10700.
|
|
111
60
|
|
|
112
|
-
*
|
|
113
|
-
|
|
114
|
-
* Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
|
|
115
|
-
Fixes #9525.
|
|
116
|
-
|
|
117
|
-
*Arun Agrawal*
|
|
118
|
-
|
|
119
|
-
* Move rails.png into a data-uri. One less file to get generated into a new
|
|
120
|
-
application. This is also consistent with the removal of index.html.
|
|
121
|
-
|
|
122
|
-
*Steve Klabnik*
|
|
123
|
-
|
|
124
|
-
* The application rake task `doc:rails` generates now an API like the
|
|
125
|
-
official one (except for the links to GitHub).
|
|
126
|
-
|
|
127
|
-
*Xavier Noria*
|
|
61
|
+
*Prathamesh Sonpatki*
|
|
128
62
|
|
|
129
|
-
*
|
|
63
|
+
* Remove turbolinks when generating a new application based on a template that skips it.
|
|
130
64
|
|
|
131
|
-
|
|
132
|
-
environments. With this change, the production behavior matches that of
|
|
133
|
-
the other environments.
|
|
134
|
-
|
|
135
|
-
Effectively, this meant moving coffee-rails (and the JavaScript runtime on
|
|
136
|
-
which it is dependent) from the :assets group to the top-level of the
|
|
137
|
-
generated Gemfile.
|
|
138
|
-
|
|
139
|
-
*Gabe Kopley*
|
|
140
|
-
|
|
141
|
-
* Don't generate a scaffold.css when --no-assets is specified
|
|
142
|
-
|
|
143
|
-
*Kevin Glowacz*
|
|
144
|
-
|
|
145
|
-
* Add support for generate scaffold password:digest
|
|
146
|
-
|
|
147
|
-
* adds password_digest attribute to the migration
|
|
148
|
-
* adds has_secure_password to the model
|
|
149
|
-
* adds password and password_confirmation password_fields to _form.html
|
|
150
|
-
* omits password from index.html and show.html
|
|
151
|
-
* adds password and password_confirmation to the controller
|
|
152
|
-
* adds unencrypted password and password_confirmation to the controller test
|
|
153
|
-
* adds encrypted password_digest to the fixture
|
|
154
|
-
|
|
155
|
-
*Sam Ruby*
|
|
156
|
-
|
|
157
|
-
* Improved `rake test` command for running tests
|
|
158
|
-
|
|
159
|
-
To run all tests:
|
|
160
|
-
|
|
161
|
-
$ rake test
|
|
162
|
-
|
|
163
|
-
To run a test suite
|
|
164
|
-
|
|
165
|
-
$ rake test:[models,helpers,units,controllers,mailers,...]
|
|
166
|
-
|
|
167
|
-
To run a selected test file(s):
|
|
168
|
-
|
|
169
|
-
$ rake test test/unit/foo_test.rb [test/unit/bar_test.rb ...]
|
|
170
|
-
|
|
171
|
-
To run a single test from a test file
|
|
172
|
-
|
|
173
|
-
$ rake test test/unit/foo_test.rb TESTOPTS='-n test_the_truth'
|
|
65
|
+
Example:
|
|
174
66
|
|
|
175
|
-
|
|
67
|
+
Skips turbolinks adding `add_gem_entry_filter { |gem| gem.name != "turbolinks" }`
|
|
68
|
+
to the template.
|
|
176
69
|
|
|
177
|
-
*
|
|
70
|
+
*Lauro Caetano*
|
|
178
71
|
|
|
179
|
-
*
|
|
180
|
-
|
|
72
|
+
* Instrument an `load_config_initializer.railties` event on each load of configuration initializer
|
|
73
|
+
from `config/initializers`. Subscribers should be attached before `load_config_initializers`
|
|
74
|
+
initializer completed.
|
|
181
75
|
|
|
182
|
-
|
|
76
|
+
Registering subscriber examples:
|
|
183
77
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
78
|
+
# config/application.rb
|
|
79
|
+
module RailsApp
|
|
80
|
+
class Application < Rails::Application
|
|
81
|
+
ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
|
|
82
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
|
83
|
+
puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
187
87
|
|
|
188
|
-
|
|
88
|
+
# my_engine/lib/my_engine/engine.rb
|
|
89
|
+
module MyEngine
|
|
90
|
+
class Engine < ::Rails::Engine
|
|
91
|
+
config.before_initialize do
|
|
92
|
+
ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
|
|
93
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
|
94
|
+
puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
189
99
|
|
|
190
|
-
*
|
|
100
|
+
*Paul Nikitochkin*
|
|
191
101
|
|
|
192
|
-
|
|
102
|
+
* Support for Pathnames in eager load paths.
|
|
193
103
|
|
|
194
|
-
*
|
|
104
|
+
*Mike Pack*
|
|
195
105
|
|
|
196
|
-
|
|
106
|
+
* Fixed missing line and shadow on service pages(404, 422, 500).
|
|
197
107
|
|
|
198
|
-
*
|
|
108
|
+
*Dmitry Korotkov*
|
|
199
109
|
|
|
200
|
-
|
|
201
|
-
|
|
110
|
+
* `BACKTRACE` environment variable to show unfiltered backtraces for
|
|
111
|
+
test failures.
|
|
202
112
|
|
|
203
|
-
|
|
113
|
+
Example:
|
|
204
114
|
|
|
205
|
-
|
|
115
|
+
$ BACKTRACE=1 ruby -Itest ...
|
|
116
|
+
# or with rake
|
|
117
|
+
$ BACKTRACE=1 bin/rake
|
|
206
118
|
|
|
207
|
-
*
|
|
119
|
+
*Yves Senn*
|
|
208
120
|
|
|
209
|
-
*
|
|
121
|
+
* Removal of all javascript stuff (gems and files) when generating a new
|
|
122
|
+
application using the `--skip-javascript` option.
|
|
210
123
|
|
|
211
|
-
*
|
|
124
|
+
*Robin Dupret*
|
|
212
125
|
|
|
213
|
-
*
|
|
214
|
-
Fixes #8304.
|
|
126
|
+
* Make the application name snake cased when it contains spaces
|
|
215
127
|
|
|
216
|
-
|
|
128
|
+
The application name is used to fill the `database.yml` and
|
|
129
|
+
`session_store.rb` files ; previously, if the provided name
|
|
130
|
+
contained whitespaces, it led to unexpected names in these files.
|
|
217
131
|
|
|
218
|
-
*
|
|
219
|
-
compatibility with gems such as Thinking Sphinx
|
|
220
|
-
Fixes #8551.
|
|
132
|
+
*Robin Dupret*
|
|
221
133
|
|
|
222
|
-
|
|
134
|
+
* Added `--model-name` option to `ScaffoldControllerGenerator`.
|
|
223
135
|
|
|
224
|
-
*
|
|
225
|
-
(e.g. rake log:clear LOGS=test,staging)
|
|
136
|
+
*yalab*
|
|
226
137
|
|
|
227
|
-
|
|
138
|
+
* Expose MiddlewareStack#unshift to environment configuration.
|
|
228
139
|
|
|
229
|
-
*
|
|
230
|
-
to explicitly set the directories to be traversed so it's easier to define
|
|
231
|
-
custom rake tasks.
|
|
140
|
+
*Ben Pickles*
|
|
232
141
|
|
|
233
|
-
|
|
142
|
+
* `rails server` will only extend the logger to output to STDOUT
|
|
143
|
+
in development environment.
|
|
234
144
|
|
|
235
|
-
*
|
|
145
|
+
*Richard Schneeman*
|
|
236
146
|
|
|
237
|
-
|
|
238
|
-
|
|
147
|
+
* Don't require passing path to app before options in `rails new`
|
|
148
|
+
and `rails plugin new`
|
|
239
149
|
|
|
240
|
-
|
|
150
|
+
*Piotr Sarnacki*
|
|
241
151
|
|
|
242
|
-
|
|
152
|
+
* rake notes now searches *.less files
|
|
243
153
|
|
|
244
|
-
|
|
154
|
+
*Josh Crowder*
|
|
245
155
|
|
|
246
|
-
|
|
156
|
+
* Generate nested route for namespaced controller generated using
|
|
157
|
+
`rails g controller`.
|
|
158
|
+
Fixes #11532.
|
|
247
159
|
|
|
248
|
-
|
|
160
|
+
Example:
|
|
249
161
|
|
|
250
|
-
|
|
251
|
-
Check https://github.com/rails/jbuilder for more info and examples.
|
|
162
|
+
rails g controller admin/dashboard index
|
|
252
163
|
|
|
253
|
-
|
|
164
|
+
# Before:
|
|
165
|
+
get "dashboard/index"
|
|
254
166
|
|
|
255
|
-
|
|
167
|
+
# After:
|
|
168
|
+
namespace :admin do
|
|
169
|
+
get "dashboard/index"
|
|
170
|
+
end
|
|
256
171
|
|
|
257
|
-
*
|
|
172
|
+
*Prathamesh Sonpatki*
|
|
258
173
|
|
|
259
|
-
*
|
|
260
|
-
document the necessary steps to get the application up and running.
|
|
174
|
+
* Fix the event name of action_dispatch requests.
|
|
261
175
|
|
|
262
|
-
*
|
|
176
|
+
*Rafael Mendonça França*
|
|
263
177
|
|
|
264
|
-
*
|
|
265
|
-
the `doc` directory is created on demand by documentation tasks rather than
|
|
266
|
-
generated by default.
|
|
178
|
+
* Make `config.log_level` work with custom loggers.
|
|
267
179
|
|
|
268
|
-
*
|
|
180
|
+
*Max Shytikov*
|
|
269
181
|
|
|
270
|
-
*
|
|
271
|
-
|
|
272
|
-
executables to your own app. `script/rails` is gone from new apps.
|
|
182
|
+
* Changed stylesheet load order in the stylesheet manifest generator.
|
|
183
|
+
Fixes #11639.
|
|
273
184
|
|
|
274
|
-
|
|
275
|
-
version and its bundled gems, and it ensures your production deployment
|
|
276
|
-
tools only need to execute a single script. No more having to carefully
|
|
277
|
-
`cd` to the app dir and run `bundle exec ...`.
|
|
185
|
+
*Pawel Janiak*
|
|
278
186
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
you actually use: `bundle binstubs unicorn` generates `bin/unicorn`.
|
|
282
|
-
Add that executable to git and version it just like any other app code.
|
|
187
|
+
* Added generated unit test for generator generator using new
|
|
188
|
+
`test:generators` rake task.
|
|
283
189
|
|
|
284
|
-
*
|
|
190
|
+
*Josef Šimánek*
|
|
285
191
|
|
|
286
|
-
* `
|
|
287
|
-
that does not use the asset pipeline, you'll be required to add `config.assets.enabled = false`
|
|
288
|
-
to your application.rb. If you don't want the asset pipeline on a new app use `--skip-sprockets`
|
|
192
|
+
* Removed `update:application_controller` rake task.
|
|
289
193
|
|
|
290
|
-
*
|
|
194
|
+
*Josef Šimánek*
|
|
291
195
|
|
|
292
|
-
*
|
|
293
|
-
(production, development, test). For example: tes, pro, prod, dev, devel.
|
|
294
|
-
Fixes #8628.
|
|
196
|
+
* Fix `rake environment` to do not eager load modules
|
|
295
197
|
|
|
296
|
-
*
|
|
198
|
+
*Paul Nikitochkin*
|
|
297
199
|
|
|
298
|
-
*
|
|
200
|
+
* Fix `rake notes` to look into `*.sass` files
|
|
299
201
|
|
|
300
|
-
*
|
|
202
|
+
*Yuri Artemev*
|
|
301
203
|
|
|
302
|
-
*
|
|
303
|
-
conflicts with reserved YAML keywords such as 'yes' and 'no'
|
|
304
|
-
Fixes #8612.
|
|
204
|
+
* Removed deprecated `Rails.application.railties.engines`.
|
|
305
205
|
|
|
306
|
-
*
|
|
206
|
+
*Arun Agrawal*
|
|
307
207
|
|
|
308
|
-
*
|
|
208
|
+
* Removed deprecated threadsafe! from Rails Config.
|
|
309
209
|
|
|
310
|
-
*
|
|
210
|
+
*Paul Nikitochkin*
|
|
311
211
|
|
|
312
|
-
*
|
|
212
|
+
* Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
|
|
213
|
+
favor of `ActiveRecord::Generators::ActiveModel#update`.
|
|
313
214
|
|
|
314
|
-
*
|
|
215
|
+
*Vipul A M*
|
|
315
216
|
|
|
316
|
-
*
|
|
317
|
-
See http://37signals.com/svn/posts/3372-put-chubby-models-on-a-diet-with-concerns for usage instructions.
|
|
217
|
+
* Remove deprecated `config.whiny_nils` option.
|
|
318
218
|
|
|
319
|
-
*
|
|
219
|
+
*Vipul A M*
|
|
320
220
|
|
|
321
|
-
*
|
|
221
|
+
* Rename `commands/plugin_new.rb` to `commands/plugin.rb` and fix references
|
|
322
222
|
|
|
323
223
|
*Richard Schneeman*
|
|
324
224
|
|
|
325
|
-
*
|
|
326
|
-
Page is replaced by internal `welcome_controller` inside of railties.
|
|
225
|
+
* Fix `rails plugin --help` command.
|
|
327
226
|
|
|
328
227
|
*Richard Schneeman*
|
|
329
228
|
|
|
330
|
-
*
|
|
331
|
-
|
|
332
|
-
*kennyj*
|
|
333
|
-
|
|
334
|
-
* Add `db` to list of folders included by `rake notes` and `rake notes:custom`. *Antonio Cangiano*
|
|
335
|
-
|
|
336
|
-
* Engines with a dummy app include the rake tasks of dependencies in the app namespace.
|
|
337
|
-
Fixes #8229.
|
|
338
|
-
|
|
339
|
-
*Yves Senn*
|
|
340
|
-
|
|
341
|
-
* Add `sqlserver.yml` template file to satisfy `-d sqlserver` being passed to `rails new`.
|
|
342
|
-
Fixes #6882.
|
|
343
|
-
|
|
344
|
-
*Robert Nesius*
|
|
345
|
-
|
|
346
|
-
* Rake test:uncommitted finds git directory in ancestors *Nicolas Despres*
|
|
347
|
-
|
|
348
|
-
* Add dummy app Rake tasks when `--skip-test-unit` and `--dummy-path` is passed to the plugin generator.
|
|
349
|
-
Fixes #8121.
|
|
350
|
-
|
|
351
|
-
*Yves Senn*
|
|
352
|
-
|
|
353
|
-
* Add `.rake` to list of file extensions included by `rake notes` and `rake notes:custom`. *Brent J. Nordquist*
|
|
354
|
-
|
|
355
|
-
* New test locations `test/models`, `test/helpers`, `test/controllers`, and
|
|
356
|
-
`test/mailers`. Corresponding rake tasks added as well. *Mike Moore*
|
|
357
|
-
|
|
358
|
-
* Set a different cache per environment for assets pipeline
|
|
359
|
-
through `config.assets.cache`.
|
|
360
|
-
|
|
361
|
-
*Guillermo Iguaran*
|
|
362
|
-
|
|
363
|
-
* `Rails.public_path` now returns a Pathname object. *Prem Sichanugrist*
|
|
364
|
-
|
|
365
|
-
* Remove highly uncommon `config.assets.manifest` option for moving the manifest path.
|
|
366
|
-
This option is now unsupported in sprockets-rails.
|
|
367
|
-
|
|
368
|
-
*Guillermo Iguaran & Dmitry Vorotilin*
|
|
369
|
-
|
|
370
|
-
* Add `config.action_controller.permit_all_parameters` to disable
|
|
371
|
-
StrongParameters protection, it's false by default.
|
|
372
|
-
|
|
373
|
-
*Guillermo Iguaran*
|
|
374
|
-
|
|
375
|
-
* Remove `config.active_record.whitelist_attributes` and
|
|
376
|
-
`config.active_record.mass_assignment_sanitizer` from new applications since
|
|
377
|
-
MassAssignmentSecurity has been extracted from Rails.
|
|
378
|
-
|
|
379
|
-
*Guillermo Iguaran*
|
|
380
|
-
|
|
381
|
-
* Change `rails new` and `rails plugin new` generators to name the `.gitkeep` files
|
|
382
|
-
as `.keep` in a more SCM-agnostic way.
|
|
383
|
-
|
|
384
|
-
Change `--skip-git` option to only skip the `.gitignore` file and still generate
|
|
385
|
-
the `.keep` files.
|
|
386
|
-
|
|
387
|
-
Add `--skip-keeps` option to skip the `.keep` files.
|
|
388
|
-
|
|
389
|
-
*Derek Prior & Francesco Rodriguez*
|
|
390
|
-
|
|
391
|
-
* Fixed support for `DATABASE_URL` environment variable for rake db tasks.
|
|
392
|
-
|
|
393
|
-
*Grace Liu*
|
|
394
|
-
|
|
395
|
-
* `rails dbconsole` now can use SSL for MySQL. The `database.yml` options sslca, sslcert, sslcapath, sslcipher
|
|
396
|
-
and sslkey now affect `rails dbconsole`.
|
|
397
|
-
|
|
398
|
-
*Jim Kingdon and Lars Petrus*
|
|
399
|
-
|
|
400
|
-
* Correctly handle SCRIPT_NAME when generating routes to engine in application
|
|
401
|
-
that's mounted at a sub-uri. With this behavior, you *should not* use
|
|
402
|
-
`default_url_options[:script_name]` to set proper application's mount point by
|
|
403
|
-
yourself.
|
|
404
|
-
|
|
405
|
-
*Piotr Sarnacki*
|
|
406
|
-
|
|
407
|
-
* `config.threadsafe!` is deprecated in favor of `config.eager_load` which provides a more fine grained control on what is eager loaded .
|
|
408
|
-
|
|
409
|
-
*José Valim*
|
|
410
|
-
|
|
411
|
-
* The migration generator will now produce AddXXXToYYY/RemoveXXXFromYYY migrations with references statements, for instance
|
|
412
|
-
|
|
413
|
-
rails g migration AddReferencesToProducts user:references supplier:references{polymorphic}
|
|
414
|
-
|
|
415
|
-
will generate the migration with:
|
|
416
|
-
|
|
417
|
-
add_reference :products, :user, index: true
|
|
418
|
-
add_reference :products, :supplier, polymorphic: true, index: true
|
|
419
|
-
|
|
420
|
-
*Aleksey Magusev*
|
|
421
|
-
|
|
422
|
-
* Allow scaffold/model/migration generators to accept a `polymorphic` modifier
|
|
423
|
-
for `references`/`belongs_to`, for instance
|
|
424
|
-
|
|
425
|
-
rails g model Product supplier:references{polymorphic}
|
|
426
|
-
|
|
427
|
-
will generate the model with `belongs_to :supplier, polymorphic: true`
|
|
428
|
-
association and appropriate migration.
|
|
429
|
-
|
|
430
|
-
*Aleksey Magusev*
|
|
431
|
-
|
|
432
|
-
* Set `config.active_record.migration_error` to `:page_load` for development.
|
|
433
|
-
|
|
434
|
-
*Richard Schneeman*
|
|
435
|
-
|
|
436
|
-
* Add runner to `Rails::Railtie` as a hook called just after runner starts.
|
|
437
|
-
|
|
438
|
-
*José Valim & kennyj*
|
|
439
|
-
|
|
440
|
-
* Add `/rails/info/routes` path, displays same information as `rake routes` .
|
|
441
|
-
|
|
442
|
-
*Richard Schneeman & Andrew White*
|
|
443
|
-
|
|
444
|
-
* Improved `rake routes` output for redirects.
|
|
445
|
-
|
|
446
|
-
*Łukasz Strzałkowski & Andrew White*
|
|
447
|
-
|
|
448
|
-
* Load all environments available in `config.paths["config/environments"]`.
|
|
449
|
-
|
|
450
|
-
*Piotr Sarnacki*
|
|
451
|
-
|
|
452
|
-
* Remove `Rack::SSL` in favour of `ActionDispatch::SSL`.
|
|
453
|
-
|
|
454
|
-
*Rafael Mendonça França*
|
|
229
|
+
* Omit turbolinks configuration completely on skip_javascript generator option.
|
|
455
230
|
|
|
456
|
-
*
|
|
231
|
+
*Nikita Fedyashev*
|
|
457
232
|
|
|
458
|
-
|
|
233
|
+
* Removed deprecated rake tasks for running tests: `rake test:uncommitted` and
|
|
234
|
+
`rake test:recent`.
|
|
459
235
|
|
|
460
|
-
*
|
|
236
|
+
*John Wang*
|
|
461
237
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
# it can be added to config/application.rb
|
|
465
|
-
console do
|
|
466
|
-
# this block is called only when running console,
|
|
467
|
-
# so we can safely require pry here
|
|
468
|
-
require "pry"
|
|
469
|
-
config.console = Pry
|
|
470
|
-
end
|
|
238
|
+
* Clearing autoloaded constants triggers routes reloading.
|
|
239
|
+
Fixes #10685.
|
|
471
240
|
|
|
472
|
-
*
|
|
241
|
+
*Xavier Noria*
|
|
473
242
|
|
|
474
|
-
*
|
|
475
|
-
|
|
243
|
+
* Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
|
|
244
|
+
Fixes #9525.
|
|
476
245
|
|
|
477
|
-
|
|
246
|
+
*Arun Agrawal*
|
|
478
247
|
|
|
479
|
-
* Rails::
|
|
248
|
+
* Rails::Railtie no longer forces the Rails::Configurable module on everything
|
|
249
|
+
that subclasses it. Instead, the methods from Rails::Configurable have been
|
|
250
|
+
moved to class methods in Railtie and the Railtie has been made abstract.
|
|
480
251
|
|
|
481
|
-
*
|
|
252
|
+
*John Wang*
|
|
482
253
|
|
|
483
|
-
*
|
|
484
|
-
message delivery.
|
|
254
|
+
* Changes repetitive th tags to use colspan attribute in `index.html.erb` template.
|
|
485
255
|
|
|
486
|
-
|
|
256
|
+
*Sıtkı Bağdat*
|
|
487
257
|
|
|
488
|
-
Please check [
|
|
258
|
+
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/railties/CHANGELOG.md) for previous changes.
|