railties 6.0.3.6 → 6.0.4.2

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: fd9ccda0944c52309685a406966d61e43510f753ec1582e8b59d849c8a2a777a
4
- data.tar.gz: 3ffb5be9bbd39e09273aa33c69a98ae5491cb3d701240a36137b3ef3c557f2d6
3
+ metadata.gz: 156a4f71959ba9a19639e03ab7436a04524a426be8872e1b3842f0e5148bfcaf
4
+ data.tar.gz: cfebc9acbcb54dfff43975eed8794333051c12b3bc44854688ca1c58782366d7
5
5
  SHA512:
6
- metadata.gz: 1c0500b8c2d94aec546b8c50e514011a52b64f559d9c51d999c6f5116431b69bcb047067cf85e523c98b18886092b788853fb1756c1ee859cdeb85a9a7816733
7
- data.tar.gz: 2683645466cd18b8989cf0f8542b45f7094a09e6dee6d7956b5d1e9833f05783680e8e268ecf90911e65bfac955a0e43f4f78b02edf963517279a3b1bb597fe5
6
+ metadata.gz: 90fec3882f973958145f0528126390d4c5b956a3f9c95d74f75011a515dba37907c665627c80dafd87c6fb9368727ea9a90b3dfc30950d77eec959e46f17eac7
7
+ data.tar.gz: b47dae2fb8dbe4bf47b78c4a101211a6b67d3a00877219204d9a0f6ccb7935f8620f626d12c9bd2dc1a033177a1264e90fa85da54a49506f0176f2fbce07b42e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## Rails 6.0.4.2 (December 14, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.0.4.1 (August 19, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.0.4 (June 15, 2021) ##
12
+
13
+ * Allow relative paths with trailing slashes to be passed to `rails test`.
14
+
15
+ *Eugene Kenny*
16
+
17
+ * Return a 405 Method Not Allowed response when a request uses an unknown HTTP method.
18
+
19
+ Fixes #38998.
20
+
21
+ *Loren Norman*
22
+
23
+
24
+ ## Rails 6.0.3.7 (May 05, 2021) ##
25
+
26
+ * No changes.
27
+
28
+
1
29
  ## Rails 6.0.3.6 (March 26, 2021) ##
2
30
 
3
31
  * No changes.
@@ -8,6 +36,7 @@
8
36
  * No changes.
9
37
 
10
38
 
39
+
11
40
  ## Rails 6.0.3.4 (October 07, 2020) ##
12
41
 
13
42
  * 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 = "6"
12
+ TINY = 4
13
+ PRE = "2"
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.6
4
+ version: 6.0.4.2
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-03-26 00:00:00.000000000 Z
11
+ date: 2021-12-14 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.6
19
+ version: 6.0.4.2
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.6
26
+ version: 6.0.4.2
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.6
33
+ version: 6.0.4.2
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.6
40
+ version: 6.0.4.2
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.6
95
+ version: 6.0.4.2
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.6
102
+ version: 6.0.4.2
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.6/railties/CHANGELOG.md
436
- documentation_uri: https://api.rubyonrails.org/v6.0.3.6/
435
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.4.2/railties/CHANGELOG.md
436
+ documentation_uri: https://api.rubyonrails.org/v6.0.4.2/
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.6/railties
439
- post_install_message:
438
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.4.2/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.1.2
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: []