railties 4.1.5 → 4.1.6.rc1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fe78668d2a567954f4203f0a20468ebe873537c
4
- data.tar.gz: e8f703fc8b8dee1f696db203a790658a5ed59fd8
3
+ metadata.gz: dcc8f12b305943d799437f2bd5c6a3dadd55ed2f
4
+ data.tar.gz: 9ea7cb5d9a06d5b2efb698d66f760487c33906f5
5
5
  SHA512:
6
- metadata.gz: 223c50286466285dfc883953104ac08dc6ee366e8246e87df89a999677242c85fc99a332587997b8d96df8d8f2cc2b2b3f65ca6e4b1bde7bb16659a92f234e57
7
- data.tar.gz: 0dfb3f819badf4391535173628064986e041c18bb4e3d158d5b319f2e5d79fb7ac533cce36d11e1c23bda4f74ae7bf3eb62a403f49a827261a1b74e27951d614
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`.
@@ -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
@@ -7,8 +7,8 @@ module Rails
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 1
10
- TINY = 5
11
- PRE = nil
10
+ TINY = 6
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -17,7 +17,7 @@
17
17
  <%%= f.label :password %><br>
18
18
  <%%= f.password_field :password %>
19
19
  </div>
20
- <div>
20
+ <div class="field">
21
21
  <%%= f.label :password_confirmation %><br>
22
22
  <%%= f.password_field :password_confirmation %>
23
23
  <% else -%>
@@ -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` has moved to config/initializers/assets.rb
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 = class_path.length
30
+ depth = regular_class_path.length
31
31
  # Create 'namespace' ladder
32
32
  # namespace :foo do
33
33
  # namespace :bar do
34
- namespace_ladder = class_path.each_with_index.map do |ns, i|
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
 
@@ -1,3 +1,5 @@
1
+ require 'shellwords'
2
+
1
3
  module Rails
2
4
  module Generators
3
5
  module Testing
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.5
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-18 00:00:00.000000000 Z
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.5
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.5
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.5
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.5
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.5
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.5
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: '0'
354
+ version: 1.3.1
355
355
  requirements: []
356
356
  rubyforge_project:
357
357
  rubygems_version: 2.3.0