railties 8.0.4.1 → 8.0.5

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
  SHA256:
3
- metadata.gz: 68377cd052cfae70f162f56d5b93fc4eb20175a8ab34141b6eb2f1ef851ddd71
4
- data.tar.gz: 15158832e5534684beaf2a1b090decf0bcdc81c4a757bc52663a0174c2082678
3
+ metadata.gz: 664663d9e6513cdea42ce00026cfd1a3248e696a9410064f13e9e1de36e6b438
4
+ data.tar.gz: a81210cc416f95b59cce06656ecd36303e5c0be6c96e1430506d26b51c4e5f7c
5
5
  SHA512:
6
- metadata.gz: dac3357f8a02ea7d9b065044e258173ea5288cf03e729b8520898d1e22097735c5d6a08b5cfe81302ab6361199f5af3aa01c688d1b1dabb57716c236b996b743
7
- data.tar.gz: 6b4a61ac19fcc50a98729185a7ee9fdec8db664125979951113b95a57057ccffc1609c85caaae388de700221590064e34d653e14cc0e01d324d186e6c0bc68bb
6
+ metadata.gz: 8d292ad13dee2d276f86fd1d96acc74a382b1c05c1063898895cfeda2a41fc7b3390901fbd89219c4f4036e84f2a2a0dc22efb5d302e766db602d88cb46e6dfd
7
+ data.tar.gz: 5298c4febcca27bc252e640f212d20e1d91f8715bbc993dac23777abff52687a03deba0789e5db1d850aba50ee0c22c35e073ffc0672fc0f7c649bc571327c75
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## Rails 8.0.5 (March 24, 2026) ##
2
+
3
+ * Fixed the `rails notes` command to properly extract notes in CSS files.
4
+
5
+ *David White*
6
+
7
+ * Fixed the default Dockerfile to properly include the `vendor/` directory during `bundle install`.
8
+
9
+ *Zhong Sheng*
10
+
11
+
1
12
  ## Rails 8.0.4.1 (March 23, 2026) ##
2
13
 
3
14
  * No changes.
@@ -80,6 +80,13 @@ module Minitest
80
80
  options[:fail_fast] = true
81
81
  end
82
82
 
83
+ if Minitest::VERSION > "6" then
84
+ opts.on "-n", "--name PATTERN", "Include /regexp/ or string for run." do |a|
85
+ warn "Please switch from -n/--name to -i/--include"
86
+ options[:include] = a
87
+ end
88
+ end
89
+
83
90
  opts.on("-c", "--[no-]color", "Enable color in the output") do |value|
84
91
  options[:color] = value
85
92
  end
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 8
11
11
  MINOR = 0
12
- TINY = 4
13
- PRE = "1"
12
+ TINY = 5
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -748,6 +748,19 @@ module Rails
748
748
  defined?(JRUBY_VERSION)
749
749
  end
750
750
 
751
+ def version_manager_ruby_version
752
+ return ENV["RBENV_VERSION"] if ENV["RBENV_VERSION"]
753
+ return ENV["rvm_ruby_string"] if ENV["rvm_ruby_string"]
754
+
755
+ version = if RUBY_ENGINE == "ruby"
756
+ Gem.ruby_version.to_s.sub(/\.([a-zA-Z])/, '-\1')
757
+ else
758
+ RUBY_ENGINE_VERSION
759
+ end
760
+
761
+ "#{RUBY_ENGINE}-#{version}"
762
+ end
763
+
751
764
  def empty_directory_with_keep_file(destination, config = {})
752
765
  empty_directory(destination, config)
753
766
  keep_file(destination)
@@ -59,6 +59,7 @@ RUN curl -fsSL https://bun.sh/install | bash -s -- "bun-v${BUN_VERSION}"
59
59
 
60
60
  <% end -%>
61
61
  # Install application gems
62
+ COPY vendor/* ./vendor/
62
63
  COPY Gemfile Gemfile.lock ./
63
64
  RUN bundle install && \
64
65
  rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git<% if depend_on_bootsnap? -%> && \
@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  steps:
14
14
  - name: Checkout code
15
- uses: actions/checkout@v4
15
+ uses: actions/checkout@v6
16
16
 
17
17
  - name: Set up Ruby
18
18
  uses: ruby/setup-ruby@v1
@@ -30,7 +30,7 @@ jobs:
30
30
 
31
31
  steps:
32
32
  - name: Checkout code
33
- uses: actions/checkout@v4
33
+ uses: actions/checkout@v6
34
34
 
35
35
  - name: Set up Ruby
36
36
  uses: ruby/setup-ruby@v1
@@ -47,7 +47,7 @@ jobs:
47
47
  runs-on: ubuntu-latest
48
48
  steps:
49
49
  - name: Checkout code
50
- uses: actions/checkout@v4
50
+ uses: actions/checkout@v6
51
51
 
52
52
  - name: Set up Ruby
53
53
  uses: ruby/setup-ruby@v1
@@ -103,7 +103,7 @@ jobs:
103
103
  run: sudo apt-get update && sudo apt-get install --no-install-recommends -y <%= ci_packages.join(" ") %>
104
104
 
105
105
  - name: Checkout code
106
- uses: actions/checkout@v4
106
+ uses: actions/checkout@v6
107
107
 
108
108
  - name: Set up Ruby
109
109
  uses: ruby/setup-ruby@v1
@@ -1 +1 @@
1
- <%= ENV["RBENV_VERSION"] || ENV["rvm_ruby_string"] || "#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}" %>
1
+ <%= version_manager_ruby_version %>
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout code
14
- uses: actions/checkout@v4
14
+ uses: actions/checkout@v6
15
15
 
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
@@ -67,7 +67,7 @@ jobs:
67
67
  run: sudo apt-get update && sudo apt-get install --no-install-recommends -y <%= ci_packages.join(" ") %>
68
68
 
69
69
  - name: Checkout code
70
- uses: actions/checkout@v4
70
+ uses: actions/checkout@v6
71
71
 
72
72
  - name: Set up Ruby
73
73
  uses: ruby/setup-ruby@v1
@@ -107,10 +107,14 @@ module Rails
107
107
  PatternExtractor.new(/#\s*(#{tag}):?\s*(.*)$/)
108
108
  end
109
109
 
110
- register_extensions("css", "js") do |tag|
110
+ register_extensions("js") do |tag|
111
111
  PatternExtractor.new(/\/\/\s*(#{tag}):?\s*(.*)$/)
112
112
  end
113
113
 
114
+ register_extensions("css") do |tag|
115
+ PatternExtractor.new(/\/\*\s*(#{tag}):?\s*(.*?)(?:\*\/)?$/)
116
+ end
117
+
114
118
  register_extensions("erb") do |tag|
115
119
  PatternExtractor.new(/<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/)
116
120
  end
@@ -205,7 +209,7 @@ module Rails
205
209
  results.keys.sort.each do |file|
206
210
  puts "#{file}:"
207
211
  results[file].each do |note|
208
- puts " * #{note.to_s(options)}"
212
+ puts " * #{note.to_s(options).strip}"
209
213
  end
210
214
  puts
211
215
  end
@@ -4,10 +4,31 @@ require "rails/test_unit/runner"
4
4
 
5
5
  module Rails
6
6
  module LineFiltering # :nodoc:
7
- def run(reporter, options = {})
8
- options = options.merge(filter: Rails::TestUnit::Runner.compose_filter(self, options[:filter]))
7
+ def self.extended(obj)
8
+ require "minitest"
9
9
 
10
- super
10
+ case Minitest::VERSION
11
+ when /^5/ then
12
+ obj.extend MT5
13
+ when /^6/ then
14
+ obj.extend MT6
15
+ end
16
+ end
17
+
18
+ module MT5
19
+ def run(reporter, options = {})
20
+ options = options.merge(filter: Rails::TestUnit::Runner.compose_filter(self, options[:filter]))
21
+
22
+ super
23
+ end
24
+ end
25
+
26
+ module MT6
27
+ def run_suite(reporter, options = {})
28
+ options = options.merge(include: Rails::TestUnit::Runner.compose_filter(self, options[:include]))
29
+
30
+ super
31
+ end
11
32
  end
12
33
  end
13
34
  end
@@ -5,8 +5,8 @@ require "minitest"
5
5
 
6
6
  module Rails
7
7
  class TestUnitReporter < Minitest::StatisticsReporter
8
- class_attribute :app_root
9
- class_attribute :executable, default: "bin/rails test"
8
+ class_attribute :app_root, default: ENV["RAILS_TEST_PWD"]
9
+ class_attribute :executable, default: ENV.fetch("RAILS_TEST_EXECUTABLE", "bin/rails test")
10
10
 
11
11
  def prerecord(test_class, test_name)
12
12
  super
@@ -60,7 +60,7 @@ module Rails
60
60
 
61
61
  def relative_path_for(file)
62
62
  if app_root
63
- file.sub(/^#{app_root}\/?/, "")
63
+ File.expand_path(file).sub(/^#{app_root}\/?/, "")
64
64
  else
65
65
  file
66
66
  end
@@ -91,10 +91,14 @@ module Rails
91
91
 
92
92
  def app_root
93
93
  @app_root ||= self.class.app_root ||
94
- if defined?(ENGINE_ROOT)
94
+ if ENV["RAILS_TEST_PWD"]
95
+ ENV["RAILS_TEST_PWD"]
96
+ elsif defined?(ENGINE_ROOT)
95
97
  ENGINE_ROOT
96
98
  elsif Rails.respond_to?(:root)
97
99
  Rails.root
100
+ else
101
+ Dir.pwd
98
102
  end
99
103
  end
100
104
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.4.1
4
+ version: 8.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 8.0.4.1
18
+ version: 8.0.5
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 8.0.4.1
25
+ version: 8.0.5
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: actionpack
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 8.0.4.1
32
+ version: 8.0.5
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 8.0.4.1
39
+ version: 8.0.5
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rackup
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -133,14 +133,14 @@ dependencies:
133
133
  requirements:
134
134
  - - '='
135
135
  - !ruby/object:Gem::Version
136
- version: 8.0.4.1
136
+ version: 8.0.5
137
137
  type: :development
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - '='
142
142
  - !ruby/object:Gem::Version
143
- version: 8.0.4.1
143
+ version: 8.0.5
144
144
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
145
145
  email: david@loudthinking.com
146
146
  executables:
@@ -505,10 +505,10 @@ licenses:
505
505
  - MIT
506
506
  metadata:
507
507
  bug_tracker_uri: https://github.com/rails/rails/issues
508
- changelog_uri: https://github.com/rails/rails/blob/v8.0.4.1/railties/CHANGELOG.md
509
- documentation_uri: https://api.rubyonrails.org/v8.0.4.1/
508
+ changelog_uri: https://github.com/rails/rails/blob/v8.0.5/railties/CHANGELOG.md
509
+ documentation_uri: https://api.rubyonrails.org/v8.0.5/
510
510
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
511
- source_code_uri: https://github.com/rails/rails/tree/v8.0.4.1/railties
511
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.5/railties
512
512
  rubygems_mfa_required: 'true'
513
513
  rdoc_options:
514
514
  - "--exclude"