railties 6.0.1 → 6.0.2.rc1

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
  SHA256:
3
- metadata.gz: 8978d3b263c42b7a7f85938aa1440c25f6796c9be7616280cf2c97930e088a70
4
- data.tar.gz: 4f29426a081d75ad0716dfd4780280f62def9d25dcffa7b614b6c64e764cb9ad
3
+ metadata.gz: e53c51805ad9598e809632f5a35694017eb3645b5336f995221397f9598cd286
4
+ data.tar.gz: 7b93225441e1614af60280d10e506ce4497a6cf7b356b1598c13fe3f7224d335
5
5
  SHA512:
6
- metadata.gz: 4da34a4d6f2bb8c0d3b0d0580a785a6b31fa591c3875b47dd9f8ceeb30a7c7f19a0ec282f511be8f2f9cbf0132ddd29e4b21f8562beeeec3519935d143ef9f0f
7
- data.tar.gz: e96e83bf20181c578bc056b63a47397ea1db2d3075cbb9c1a88b79b4b19ce5e076dbc15a05fe9ec9e35b8f3724f075ce4cdb64df8ba7c037dd8524b5916bf938
6
+ metadata.gz: 0c191ad259fc9ba7231edbf23c1381a270972b3b337355079200b19a7ba2399c7801a0db92bb8c286130c6c9f3ef0b19840a5a8aef1f7a8cf58f086e0421fd99
7
+ data.tar.gz: b00314a37fd0c76357e5c5bf5cc1306bb146f8a7944b65ca1f56a4beda0b30a42a0c42219f3dc12411a585e87fb4bf34d79d3662045b74185de5a8000f3bf943
@@ -1,3 +1,16 @@
1
+ ## Rails 6.0.2.rc1 (November 27, 2019) ##
2
+
3
+ * Fix the collision check for the scaffold generator.
4
+
5
+ *Ryan Robeson*
6
+
7
+ * Configuration files for environments (`config/environments/*.rb`) are
8
+ now able to modify `autoload_paths`, `autoload_once_paths`, and
9
+ `eager_load_paths`.
10
+
11
+ *Allen Hsu* & *Xavier Noria*
12
+
13
+
1
14
  ## Rails 6.0.1 (November 5, 2019) ##
2
15
 
3
16
  * The `zeitwerk:check` Rake task reports files outside the app's root
@@ -71,6 +71,7 @@ module Rails
71
71
  @add_autoload_paths_to_load_path = true
72
72
  end
73
73
 
74
+ # Loads default configurations. See {the result of the method for each version}[https://guides.rubyonrails.org/configuring.html#results-of-config-load-defaults].
74
75
  def load_defaults(target_version)
75
76
  case target_version.to_s
76
77
  when "5.0"
@@ -17,6 +17,10 @@ module Rails
17
17
  include Actions
18
18
 
19
19
  class << self
20
+ def exit_on_failure? # :nodoc:
21
+ false
22
+ end
23
+
20
24
  # Returns true when the app is a Rails engine.
21
25
  def engine?
22
26
  defined?(ENGINE_ROOT)
@@ -559,6 +559,12 @@ module Rails
559
559
  end
560
560
  end
561
561
 
562
+ initializer :load_environment_config, before: :load_environment_hook, group: :all do
563
+ paths["config/environments"].existent.each do |environment|
564
+ require environment
565
+ end
566
+ end
567
+
562
568
  initializer :set_load_path, before: :bootstrap_hook do |app|
563
569
  _all_load_paths(app.config.add_autoload_paths_to_load_path).reverse_each do |path|
564
570
  $LOAD_PATH.unshift(path) if File.directory?(path)
@@ -607,12 +613,6 @@ module Rails
607
613
  end
608
614
  end
609
615
 
610
- initializer :load_environment_config, before: :load_environment_hook, group: :all do
611
- paths["config/environments"].existent.each do |environment|
612
- require environment
613
- end
614
- end
615
-
616
616
  initializer :prepend_helpers_path do |app|
617
617
  if !isolated? || (app == self)
618
618
  app.config.helpers_paths.unshift(*paths["app/helpers"].existent)
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 1
13
- PRE = nil
12
+ TINY = 2
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -24,6 +24,10 @@ module Rails
24
24
  add_runtime_options!
25
25
  strict_args_position!
26
26
 
27
+ def self.exit_on_failure? # :nodoc:
28
+ false
29
+ end
30
+
27
31
  # Returns the source root for this generator using default_source_root as default.
28
32
  def self.source_root(path = nil)
29
33
  @_source_root = path if path
@@ -213,7 +213,7 @@ module Rails
213
213
  #
214
214
  def self.check_class_collision(options = {}) # :doc:
215
215
  define_method :check_class_collision do
216
- name = if respond_to?(:controller_class_name) # for ResourceHelpers
216
+ name = if respond_to?(:controller_class_name, true) # for ResourceHelpers
217
217
  controller_class_name
218
218
  else
219
219
  class_name
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: 6.0.1
4
+ version: 6.0.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-27 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: 6.0.1
19
+ version: 6.0.2.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: 6.0.1
26
+ version: 6.0.2.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: 6.0.1
33
+ version: 6.0.2.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: 6.0.1
40
+ version: 6.0.2.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 6.0.1
95
+ version: 6.0.2.rc1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 6.0.1
102
+ version: 6.0.2.rc1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -432,10 +432,10 @@ licenses:
432
432
  - MIT
433
433
  metadata:
434
434
  bug_tracker_uri: https://github.com/rails/rails/issues
435
- changelog_uri: https://github.com/rails/rails/blob/v6.0.1/railties/CHANGELOG.md
436
- documentation_uri: https://api.rubyonrails.org/v6.0.1/
435
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc1/railties/CHANGELOG.md
436
+ documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
437
437
  mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
438
- source_code_uri: https://github.com/rails/rails/tree/v6.0.1/railties
438
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/railties
439
439
  post_install_message:
440
440
  rdoc_options:
441
441
  - "--exclude"
@@ -449,9 +449,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
449
449
  version: 2.5.0
450
450
  required_rubygems_version: !ruby/object:Gem::Requirement
451
451
  requirements:
452
- - - ">="
452
+ - - ">"
453
453
  - !ruby/object:Gem::Version
454
- version: '0'
454
+ version: 1.3.1
455
455
  requirements: []
456
456
  rubygems_version: 3.0.3
457
457
  signing_key: