railties 4.0.10.rc1 → 4.0.10.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b80050aab11ab93b6d0c7a171a35143069471178
4
- data.tar.gz: 662b22a8fbacffc02588762a1fbb592f069e10b6
3
+ metadata.gz: e0234dfd0fee5f1a9bb3fd91b187d16e44044e01
4
+ data.tar.gz: 672ba687112e5021f5426496dbcca62dc91639a1
5
5
  SHA512:
6
- metadata.gz: 42da06cf0fc6f9f2a6f7ed6846b8caff9a4d440619318f93118ea10b5632a2db7c6134411fbb1780b374a65ac4b613cb92ef72b7f1dbf00cd72a6b1cff4f17cb
7
- data.tar.gz: e52292c1c9a5aa48d6f569ac8680ab00cd6587b80be62b5ababf0750612a5e1ad734a522fb65b7ae296e6369863b30a7724b02f9c9994e825b3d5fa6844a9c75
6
+ metadata.gz: 480263ab13a409c59c6accac9d83759f5aad24edbd8c7a3a6f468c9d732dc754d1b345021f2fe6db9c750ada8f6f41c25552738daea576baf6c94d3aa0bcc0f1
7
+ data.tar.gz: bc9f09099889d61133aec373d475280a42caaf7122fc0358b93adbb0e5da86e739b6e62765b31584f17f035d98c56b4d434ab8463b66725ff2fffa122ca26b23
@@ -1,4 +1,4 @@
1
- ## Rails 4.0.10 (August 19, 2014) ##
1
+ ## Rails 4.0.10 (September 8, 2014) ##
2
2
 
3
3
  * Scaffold generator `_form` partial adds `class="field"` for password
4
4
  confirmation fields.
@@ -235,8 +235,14 @@ module Rails
235
235
  config.helpers_paths
236
236
  end
237
237
 
238
+ # Return an array of railties respecting the order they're loaded
239
+ # and the order specified by the +railties_order+ config.
240
+ #
241
+ # While when running initializers we need engines in reverse
242
+ # order here when copying migrations from railties we need then in the same
243
+ # order as given by +railties_order+
238
244
  def migration_railties # :nodoc:
239
- (ordered_railties & railties_without_main_app).reverse
245
+ ordered_railties.flatten - [self]
240
246
  end
241
247
 
242
248
  protected
@@ -270,11 +276,6 @@ module Rails
270
276
  super
271
277
  end
272
278
 
273
- def railties_without_main_app # :nodoc:
274
- @railties_without_main_app ||= Rails::Railtie.subclasses.map(&:instance) +
275
- Rails::Engine.subclasses.map(&:instance)
276
- end
277
-
278
279
  # Returns the ordered railties for this application considering railties_order.
279
280
  def ordered_railties #:nodoc:
280
281
  @ordered_railties ||= begin
@@ -294,13 +295,13 @@ module Rails
294
295
 
295
296
  index = order.index(:all)
296
297
  order[index] = all
297
- order.reverse.flatten
298
+ order
298
299
  end
299
300
  end
300
301
 
301
302
  def railties_initializers(current) #:nodoc:
302
303
  initializers = []
303
- ordered_railties.each do |r|
304
+ ordered_railties.reverse.flatten.each do |r|
304
305
  if r == self
305
306
  initializers += current
306
307
  else
@@ -3,7 +3,7 @@ module Rails
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
5
  TINY = 10
6
- PRE = "rc1"
6
+ PRE = "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
9
9
  end
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.0.10.rc1
4
+ version: 4.0.10.rc2
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-19 00:00:00.000000000 Z
11
+ date: 2014-09-08 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.0.10.rc1
19
+ version: 4.0.10.rc2
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.0.10.rc1
26
+ version: 4.0.10.rc2
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.0.10.rc1
33
+ version: 4.0.10.rc2
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.0.10.rc1
40
+ version: 4.0.10.rc2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: 1.3.1
327
327
  requirements: []
328
328
  rubyforge_project:
329
- rubygems_version: 2.3.0
329
+ rubygems_version: 2.2.2
330
330
  signing_key:
331
331
  specification_version: 4
332
332
  summary: Tools for creating, working with, and running Rails applications.