railties 4.1.5 → 4.1.6.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/rails/application.rb +9 -0
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +1 -7
- data/lib/rails/generators/rails/controller/controller_generator.rb +2 -2
- data/lib/rails/generators/testing/assertions.rb +2 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc8f12b305943d799437f2bd5c6a3dadd55ed2f
|
4
|
+
data.tar.gz: 9ea7cb5d9a06d5b2efb698d66f760487c33906f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9e7dac2f1af356de76e78029d290929659639eaefe42a890a2548b916a083f30ff67e438af11ce0179646bfec5ec5fe475a326f2a88ee89e1896e65c574192
|
7
|
+
data.tar.gz: 8405199c8a6467fa2fd592b00db483b5eacb0860fd42fc5524decc3636d419c46e3c624b70e1d6df9ffe9b1e21bbcbbac2159ba0511ea1ae166ed9255d6616c6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## Rails 4.1.6 (August 19, 2014) ##
|
2
|
+
|
3
|
+
* Scaffold generator `_form` partial adds `class="field"` for password
|
4
|
+
confirmation fields.
|
5
|
+
|
6
|
+
*noinkling*
|
7
|
+
|
8
|
+
* Avoid namespacing routes inside engines.
|
9
|
+
|
10
|
+
Mountable engines are namespaced by default so the generated routes
|
11
|
+
were too while they should not.
|
12
|
+
|
13
|
+
Fixes #14079.
|
14
|
+
|
15
|
+
*Yves Senn*, *Carlos Antonio da Silva*, *Robin Dupret*
|
16
|
+
|
17
|
+
|
1
18
|
## Rails 4.1.5 (August 18, 2014) ##
|
2
19
|
|
3
20
|
* Check attributes passed to `create_with` and `where`.
|
data/lib/rails/application.rb
CHANGED
@@ -365,6 +365,10 @@ module Rails
|
|
365
365
|
end
|
366
366
|
end
|
367
367
|
|
368
|
+
def migration_railties # :nodoc:
|
369
|
+
(ordered_railties & railties_without_main_app).reverse
|
370
|
+
end
|
371
|
+
|
368
372
|
protected
|
369
373
|
|
370
374
|
alias :build_middleware_stack :app
|
@@ -395,6 +399,11 @@ module Rails
|
|
395
399
|
super
|
396
400
|
end
|
397
401
|
|
402
|
+
def railties_without_main_app # :nodoc:
|
403
|
+
@railties_without_main_app ||= Rails::Railtie.subclasses.map(&:instance) +
|
404
|
+
Rails::Engine.subclasses.map(&:instance)
|
405
|
+
end
|
406
|
+
|
398
407
|
# Returns the ordered railties for this application considering railties_order.
|
399
408
|
def ordered_railties #:nodoc:
|
400
409
|
@ordered_railties ||= begin
|
data/lib/rails/gem_version.rb
CHANGED
@@ -33,7 +33,7 @@ Rails.application.configure do
|
|
33
33
|
# Generate digests for assets URLs.
|
34
34
|
config.assets.digest = true
|
35
35
|
|
36
|
-
# `config.assets.precompile`
|
36
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
37
37
|
<%- end -%>
|
38
38
|
|
39
39
|
# Specifies the header that your server uses for sending files.
|
@@ -58,12 +58,6 @@ Rails.application.configure do
|
|
58
58
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
59
59
|
# config.action_controller.asset_host = "http://assets.example.com"
|
60
60
|
|
61
|
-
<%- unless options.skip_sprockets? -%>
|
62
|
-
# Precompile additional assets.
|
63
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
64
|
-
# config.assets.precompile += %w( search.js )
|
65
|
-
<%- end -%>
|
66
|
-
|
67
61
|
# Ignore bad email addresses and do not raise email delivery errors.
|
68
62
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
69
63
|
# config.action_mailer.raise_delivery_errors = false
|
@@ -27,11 +27,11 @@ module Rails
|
|
27
27
|
# end
|
28
28
|
# end
|
29
29
|
def generate_routing_code(action)
|
30
|
-
depth =
|
30
|
+
depth = regular_class_path.length
|
31
31
|
# Create 'namespace' ladder
|
32
32
|
# namespace :foo do
|
33
33
|
# namespace :bar do
|
34
|
-
namespace_ladder =
|
34
|
+
namespace_ladder = regular_class_path.each_with_index.map do |ns, i|
|
35
35
|
indent("namespace :#{ns} do\n", i * 2)
|
36
36
|
end.join
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.6.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.1.
|
19
|
+
version: 4.1.6.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.1.
|
26
|
+
version: 4.1.6.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.1.
|
33
|
+
version: 4.1.6.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.1.
|
40
|
+
version: 4.1.6.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - '='
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 4.1.
|
81
|
+
version: 4.1.6.rc1
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - '='
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 4.1.
|
88
|
+
version: 4.1.6.rc1
|
89
89
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
90
90
|
email: david@loudthinking.com
|
91
91
|
executables:
|
@@ -349,9 +349,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
349
349
|
version: 1.9.3
|
350
350
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
351
|
requirements:
|
352
|
-
- - "
|
352
|
+
- - ">"
|
353
353
|
- !ruby/object:Gem::Version
|
354
|
-
version:
|
354
|
+
version: 1.3.1
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
357
|
rubygems_version: 2.3.0
|