railties 6.0.3.5 → 6.0.4.1

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: fc8bdf4e6581369ba789f0c0d448644b570e0ffd0b903e7406ba8ec22f5ef746
4
- data.tar.gz: fa5232fd956a1cd0d22f32521200d67ac239b2c149e698f4b2319221d1f38f0e
3
+ metadata.gz: cbd6871c55e2811f5b0b784f7530ab285155d2e3f13820515037125400ef74e0
4
+ data.tar.gz: 781e2173eef207ff97dcdc106d4a38723de507ba7a73bb8481a4f5db4e1a042a
5
5
  SHA512:
6
- metadata.gz: 5daf5aae47c7f8866d3f089b0d2569a72b6196885ba451247e422b9c72e6a6b6fa8155217363d49dc06b55e6915eb719f17694a33411bbbdec68203468761910
7
- data.tar.gz: c790d21db99d71744c5e3574f180dddefaa05ef57476813841023353a3915dd80e6379f329b96fbfe0b8a55b2f011a229224dced891dac17954fb80527ffa04d
6
+ metadata.gz: 52b48bd7a0e96a68a2216ce2aaa20e4b343e3a4ee6116fb08ec0ace5bf2da9178c4dea66b06ad911c6b76670e82a41758aad4af31d78a9be1ba4b6402e0876e3
7
+ data.tar.gz: 076d0c0ebbbd26dbd537d4150cabfe0ad7855dbc336f07aa742fb362a2924ac6fc8013a206557202f214c344a77917905f5eec025ba0cea6612b12da8a1c06d2
data/CHANGELOG.md CHANGED
@@ -1,8 +1,37 @@
1
+ ## Rails 6.0.4.1 (August 19, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.0.4 (June 15, 2021) ##
7
+
8
+ * Allow relative paths with trailing slashes to be passed to `rails test`.
9
+
10
+ *Eugene Kenny*
11
+
12
+ * Return a 405 Method Not Allowed response when a request uses an unknown HTTP method.
13
+
14
+ Fixes #38998.
15
+
16
+ *Loren Norman*
17
+
18
+
19
+ ## Rails 6.0.3.7 (May 05, 2021) ##
20
+
21
+ * No changes.
22
+
23
+
24
+ ## Rails 6.0.3.6 (March 26, 2021) ##
25
+
26
+ * No changes.
27
+
28
+
1
29
  ## Rails 6.0.3.5 (February 10, 2021) ##
2
30
 
3
31
  * No changes.
4
32
 
5
33
 
34
+
6
35
  ## Rails 6.0.3.4 (October 07, 2020) ##
7
36
 
8
37
  * No changes.
data/README.rdoc CHANGED
@@ -17,7 +17,7 @@ The latest version of Railties can be installed with RubyGems:
17
17
 
18
18
  Source code can be downloaded as part of the Rails project on GitHub
19
19
 
20
- * https://github.com/rails/rails/tree/master/railties
20
+ * https://github.com/rails/rails/tree/main/railties
21
21
 
22
22
  == License
23
23
 
@@ -189,7 +189,7 @@ module Rails
189
189
 
190
190
  class EdgeTask < RepoTask
191
191
  def rails_version
192
- "master@#{`git rev-parse HEAD`[0, 7]}"
192
+ "main@#{`git rev-parse HEAD`[0, 7]}"
193
193
  end
194
194
  end
195
195
 
@@ -220,27 +220,27 @@ module Rails
220
220
  # config.middleware.use ExceptionNotifier, config_for(:exception_notification)
221
221
  # end
222
222
  def config_for(name, env: Rails.env)
223
- if name.is_a?(Pathname)
224
- yaml = name
225
- else
226
- yaml = Pathname.new("#{paths["config"].existent.first}/#{name}.yml")
227
- end
223
+ yaml = name.is_a?(Pathname) ? name : Pathname.new("#{paths["config"].existent.first}/#{name}.yml")
228
224
 
229
225
  if yaml.exist?
230
226
  require "erb"
231
- config = YAML.load(ERB.new(yaml.read).result) || {}
232
- config = (config["shared"] || {}).merge(config[env] || {})
227
+ all_configs = YAML.load(ERB.new(yaml.read).result) || {}
228
+ config, shared = all_configs[env], all_configs["shared"]
233
229
 
234
- ActiveSupport::OrderedOptions.new.tap do |options|
235
- options.update(NonSymbolAccessDeprecatedHash.new(config))
230
+ config ||= {} if shared.nil? || shared.is_a?(Hash)
231
+
232
+ if config.is_a?(Hash)
233
+ ActiveSupport::OrderedOptions.new.update(NonSymbolAccessDeprecatedHash.new(shared&.deep_merge(config) || config))
234
+ else
235
+ config || shared
236
236
  end
237
237
  else
238
238
  raise "Could not load configuration. No such file - #{yaml}"
239
239
  end
240
- rescue Psych::SyntaxError => e
240
+ rescue Psych::SyntaxError => error
241
241
  raise "YAML syntax error occurred while parsing #{yaml}. " \
242
242
  "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \
243
- "Error: #{e.message}"
243
+ "Error: #{error.message}"
244
244
  end
245
245
 
246
246
  # Stores some of the Rails initial environment parameters which
@@ -5,7 +5,7 @@ require "rails/source_annotation_extractor"
5
5
  module Rails
6
6
  module Command
7
7
  class NotesCommand < Base # :nodoc:
8
- class_option :annotations, aliases: "-a", desc: "Filter by specific annotations, e.g. Foobar TODO", type: :array, default: Rails::SourceAnnotationExtractor::Annotation.tags
8
+ class_option :annotations, aliases: "-a", desc: "Filter by specific annotations, e.g. Foobar TODO", type: :array
9
9
 
10
10
  def perform(*)
11
11
  require_application_and_environment!
@@ -16,7 +16,7 @@ module Rails
16
16
 
17
17
  private
18
18
  def display_annotations
19
- annotations = options[:annotations]
19
+ annotations = options[:annotations] || Rails::SourceAnnotationExtractor::Annotation.tags
20
20
  tag = (annotations.length > 1)
21
21
 
22
22
  Rails::SourceAnnotationExtractor.enumerate annotations.join("|"), tag: tag, dirs: directories
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 3
13
- PRE = "5"
12
+ TINY = 4
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -286,7 +286,7 @@ module Rails
286
286
  else
287
287
  [GemfileEntry.version("rails",
288
288
  rails_version_specifier,
289
- "Bundle edge Rails instead: gem 'rails', github: 'rails/rails'")]
289
+ "Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'")]
290
290
  end
291
291
  end
292
292
 
@@ -47,7 +47,7 @@ module Rails
47
47
  # Started GET "/session/new" for 127.0.0.1 at 2012-09-26 14:51:42 -0700
48
48
  def started_request_message(request) # :doc:
49
49
  'Started %s "%s" for %s at %s' % [
50
- request.request_method,
50
+ request.raw_request_method,
51
51
  request.filtered_path,
52
52
  request.remote_ip,
53
53
  Time.now.to_default_s ]
data/lib/rails/railtie.rb CHANGED
@@ -192,6 +192,7 @@ module Rails
192
192
  super
193
193
  end
194
194
  end
195
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
195
196
 
196
197
  # receives an instance variable identifier, set the variable value if is
197
198
  # blank and append given block to value, which will be used later in
@@ -61,7 +61,7 @@ module Rails
61
61
  private
62
62
  def extract_filters(argv)
63
63
  # Extract absolute and relative paths but skip -n /.*/ regexp filters.
64
- argv.select { |arg| arg =~ %r%^/?\w+/% && !arg.end_with?("/") }.map do |path|
64
+ argv.select { |arg| path_argument?(arg) && !regexp_filter?(arg) }.map do |path|
65
65
  case
66
66
  when /(:\d+)+$/.match?(path)
67
67
  file, *lines = path.split(":")
@@ -75,6 +75,14 @@ module Rails
75
75
  end
76
76
  end
77
77
  end
78
+
79
+ def regexp_filter?(arg)
80
+ arg.start_with?("/") && arg.end_with?("/")
81
+ end
82
+
83
+ def path_argument?(arg)
84
+ %r%^/?\w+/%.match?(arg)
85
+ end
78
86
  end
79
87
  end
80
88
 
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.3.5
4
+ version: 6.0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-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: 6.0.3.5
19
+ version: 6.0.4.1
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.3.5
26
+ version: 6.0.4.1
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.3.5
33
+ version: 6.0.4.1
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.3.5
40
+ version: 6.0.4.1
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.3.5
95
+ version: 6.0.4.1
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.3.5
102
+ version: 6.0.4.1
103
103
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
104
104
  email: david@loudthinking.com
105
105
  executables:
@@ -432,11 +432,11 @@ 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.3.5/railties/CHANGELOG.md
436
- documentation_uri: https://api.rubyonrails.org/v6.0.3.5/
435
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.4.1/railties/CHANGELOG.md
436
+ documentation_uri: https://api.rubyonrails.org/v6.0.4.1/
437
437
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
438
- source_code_uri: https://github.com/rails/rails/tree/v6.0.3.5/railties
439
- post_install_message:
438
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.4.1/railties
439
+ post_install_message:
440
440
  rdoc_options:
441
441
  - "--exclude"
442
442
  - "."
@@ -453,8 +453,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
453
  - !ruby/object:Gem::Version
454
454
  version: '0'
455
455
  requirements: []
456
- rubygems_version: 3.0.3
457
- signing_key:
456
+ rubygems_version: 3.2.15
457
+ signing_key:
458
458
  specification_version: 4
459
459
  summary: Tools for creating, working with, and running Rails applications.
460
460
  test_files: []