Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-railties-8.0 for
openSUSE:Factory checked in at 2025-08-22 17:49:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-railties-8.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-railties-8.0.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-8.0"
Fri Aug 22 17:49:25 2025 rev:4 rq:1300937 version:8.0.2.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-railties-8.0/rubygem-railties-8.0.changes
2025-01-21 21:10:30.551062530 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-railties-8.0.new.29662/rubygem-railties-8.0.changes
2025-08-22 17:51:00.895976674 +0200
@@ -1,0 +2,6 @@
+Thu Aug 14 00:25:31 UTC 2025 - Marcus Rueckert <[email protected]>
+
+- Update to version 8.0.2.1:
+
https://rubyonrails.org/2025/8/13/Rails-Versions-8-0-2-1-7-2-2-2-and-7-1-5-2-have-been-released
+
+-------------------------------------------------------------------
Old:
----
railties-8.0.1.gem
New:
----
railties-8.0.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-railties-8.0.spec ++++++
--- /var/tmp/diff_new_pack.Dmn19g/_old 2025-08-22 17:51:01.419998511 +0200
+++ /var/tmp/diff_new_pack.Dmn19g/_new 2025-08-22 17:51:01.423998677 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-railties-8.0
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-railties-8.0
-Version: 8.0.1
+Version: 8.0.2.1
Release: 0
%define mod_name railties
%define mod_full_name %{mod_name}-%{version}
++++++ railties-8.0.1.gem -> railties-8.0.2.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2024-12-13 21:02:37.000000000 +0100
+++ new/CHANGELOG.md 1980-01-02 01:00:00.000000000 +0100
@@ -1,3 +1,38 @@
+## Rails 8.0.2.1 (August 13, 2025) ##
+
+* No changes.
+
+
+## Rails 8.0.2 (March 12, 2025) ##
+
+* No changes.
+
+
+## Rails 8.0.2 (March 12, 2025) ##
+
+* Fix Rails console to load routes.
+
+ Otherwise `*_path` and `*url` methods are missing on the `app` object.
+
+ *Édouard Chin*
+
+* Update `rails new --minimal` option
+
+ Extend the `--minimal` flag to exclude recently added features:
+ `skip_brakeman`, `skip_ci`, `skip_docker`, `skip_kamal`, `skip_rubocop`,
`skip_solid` and `skip_thruster`.
+
+ *eelcoj*
+
+* Use `secret_key_base` from ENV or credentials when present locally.
+
+ When ENV["SECRET_KEY_BASE"] or
+ `Rails.application.credentials.secret_key_base` is set for test or
+ development, it is used for the `Rails.config.secret_key_base`,
+ instead of generating a `tmp/local_secret.txt` file.
+
+ *Petrik de Heus*
+
+
## Rails 8.0.1 (December 13, 2024) ##
* Skip generation system tests related code for CI when `--skip-system-test`
is given.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/application/configuration.rb
new/lib/rails/application/configuration.rb
--- old/lib/rails/application/configuration.rb 2024-12-13 21:02:37.000000000
+0100
+++ new/lib/rails/application/configuration.rb 1980-01-02 01:00:00.000000000
+0100
@@ -503,16 +503,18 @@
def secret_key_base
@secret_key_base || begin
- self.secret_key_base = if generate_local_secret?
+ self.secret_key_base = if ENV["SECRET_KEY_BASE_DUMMY"]
generate_local_secret
else
- ENV["SECRET_KEY_BASE"] ||
Rails.application.credentials.secret_key_base
+ ENV["SECRET_KEY_BASE"] ||
+ Rails.application.credentials.secret_key_base ||
+ (Rails.env.local? && generate_local_secret)
end
end
end
def secret_key_base=(new_secret_key_base)
- if new_secret_key_base.nil? && generate_local_secret?
+ if new_secret_key_base.nil? && Rails.env.local?
@secret_key_base = generate_local_secret
elsif new_secret_key_base.is_a?(String) && new_secret_key_base.present?
@secret_key_base = new_secret_key_base
@@ -640,10 +642,6 @@
File.binread(key_file)
end
-
- def generate_local_secret?
- Rails.env.local? || ENV["SECRET_KEY_BASE_DUMMY"]
- end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/application.rb new/lib/rails/application.rb
--- old/lib/rails/application.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/application.rb 1980-01-02 01:00:00.000000000 +0100
@@ -459,18 +459,21 @@
# is used to create all ActiveSupport::MessageVerifier and
ActiveSupport::MessageEncryptor instances,
# including the ones that sign and encrypt cookies.
#
- # In development and test, this is randomly generated and stored in a
- # temporary file in <tt>tmp/local_secret.txt</tt>.
+ # We look for it first in <tt>ENV["SECRET_KEY_BASE"]</tt>, then in
+ # +credentials.secret_key_base+. For most applications, the correct place
+ # to store it is in the encrypted credentials file.
#
- # You can also set <tt>ENV["SECRET_KEY_BASE_DUMMY"]</tt> to trigger the
use of a randomly generated
- # secret_key_base that's stored in a temporary file. This is useful when
precompiling assets for
- # production as part of a build step that otherwise does not need access
to the production secrets.
+ # In development and test, if the secret_key_base is still empty, it is
+ # randomly generated and stored in a temporary file in
+ # <tt>tmp/local_secret.txt</tt>.
#
- # Dockerfile example: <tt>RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails
assets:precompile</tt>.
+ # Generating a random secret_key_base and storing it in
+ # <tt>tmp/local_secret.txt</tt> can also be triggered by setting
+ # <tt>ENV["SECRET_KEY_BASE_DUMMY"]</tt>. This is useful when precompiling
+ # assets for production as part of a build step that otherwise does not
+ # need access to the production secrets.
#
- # In all other environments, we look for it first in
<tt>ENV["SECRET_KEY_BASE"]</tt>,
- # then +credentials.secret_key_base+. For most applications, the correct
place to store it is in the
- # encrypted credentials file.
+ # Dockerfile example: <tt>RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails
assets:precompile</tt>.
def secret_key_base
config.secret_key_base
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/code_statistics.rb
new/lib/rails/code_statistics.rb
--- old/lib/rails/code_statistics.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/code_statistics.rb 1980-01-02 01:00:00.000000000 +0100
@@ -45,11 +45,11 @@
class_attribute :directories, default: DIRECTORIES
class_attribute :test_types, default: TEST_TYPES
- # Add directories to the output of the `bin/rails stats` command.
+ # Add directories to the output of the <tt>bin/rails stats</tt> command.
#
# Rails::CodeStatistics.register_directory("My Directory", "path/to/dir")
#
- # For directories that contain test code, set the `test_directory`
argument to true.
+ # For directories that contain test code, set the <tt>test_directory</tt>
argument to true.
#
# Rails::CodeStatistics.register_directory("Model specs", "spec/models",
test_directory: true)
def self.register_directory(label, path, test_directory: false)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/commands/app/update_command.rb
new/lib/rails/commands/app/update_command.rb
--- old/lib/rails/commands/app/update_command.rb 2024-12-13
21:02:37.000000000 +0100
+++ new/lib/rails/commands/app/update_command.rb 1980-01-02
01:00:00.000000000 +0100
@@ -24,22 +24,26 @@
desc "configs", "Update config files in the application config/
directory", hide: true
def configs
+ require_application!
app_generator.create_boot_file
app_generator.update_config_files
end
desc "bin", "Add or update executables in the application bin/
directory", hide: true
def bin
+ require_application!
app_generator.update_bin_files
end
desc "public_directory", "Add or update files in the application
public/ directory", hide: true
def public_directory
+ require_application!
app_generator.create_public_files
end
desc "active_storage", "Run the active_storage:update command", hide:
true
def active_storage
+ require_application!
app_generator.update_active_storage
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/commands/console/irb_console.rb
new/lib/rails/commands/console/irb_console.rb
--- old/lib/rails/commands/console/irb_console.rb 2024-12-13
21:02:37.000000000 +0100
+++ new/lib/rails/commands/console/irb_console.rb 1980-01-02
01:00:00.000000000 +0100
@@ -31,6 +31,7 @@
def execute(*)
app = Rails.application
+ app.reload_routes_unless_loaded
session = ActionDispatch::Integration::Session.new(app)
# This makes app.url_for and app.foo_path available in the console
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/commands/test/test_command.rb
new/lib/rails/commands/test/test_command.rb
--- old/lib/rails/commands/test/test_command.rb 2024-12-13 21:02:37.000000000
+0100
+++ new/lib/rails/commands/test/test_command.rb 1980-01-02 01:00:00.000000000
+0100
@@ -31,8 +31,6 @@
Rails::TestUnit::Runner.parse_options(args)
run_prepare_task if self.args.none?(EXACT_TEST_ARGUMENT_PATTERN)
Rails::TestUnit::Runner.run(args)
- rescue Rails::TestUnit::InvalidTestError => error
- raise ArgumentError, error.message
end
# Define Thor tasks to avoid going through Rake and booting twice when
using bin/rails test:*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/gem_version.rb new/lib/rails/gem_version.rb
--- old/lib/rails/gem_version.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/gem_version.rb 1980-01-02 01:00:00.000000000 +0100
@@ -9,8 +9,8 @@
module VERSION
MAJOR = 8
MINOR = 0
- TINY = 1
- PRE = nil
+ TINY = 2
+ PRE = "1"
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/actions.rb
new/lib/rails/generators/actions.rb
--- old/lib/rails/generators/actions.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/generators/actions.rb 1980-01-02 01:00:00.000000000 +0100
@@ -445,8 +445,8 @@
private
# Define log for backwards compatibility. If just one argument is sent,
- # invoke say, otherwise invoke say_status. Differently from say and
- # similarly to say_status, this method respects the quiet? option
given.
+ # invoke +say+, otherwise invoke +say_status+. Differently from +say+
and
+ # similarly to +say_status+, this method respects the +quiet?+ option
given.
def log(*args) # :doc:
if args.size == 1
say args.first.to_s unless options.quiet?
@@ -456,7 +456,7 @@
end
end
- # Runs the supplied command using either "rake ..." or "rails ..."
+ # Runs the supplied command using either +rake+ or +rails+
# based on the executor parameter provided.
def execute_command(executor, command, options = {}) # :doc:
log executor, command
@@ -490,12 +490,16 @@
end
alias rebase_indentation optimize_indentation
- # Indent the +Gemfile+ to the depth of @indentation
+ # Returns a string corresponding to the current indentation level
+ # (i.e. 2 * <code>@indentation</code> spaces). See also
+ # #with_indentation, which can be used to manage the indentation level.
def indentation # :doc:
" " * @indentation
end
- # Manage +Gemfile+ indentation for a DSL action block
+ # Increases the current indentation indentation level for the duration
+ # of the given block, and decreases it after the block ends. Call
+ # #indentation to get an indentation string.
def with_indentation(&block) # :doc:
@indentation += 1
instance_eval(&block)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/app_base.rb
new/lib/rails/generators/app_base.rb
--- old/lib/rails/generators/app_base.rb 2024-12-13 21:02:37.000000000
+0100
+++ new/lib/rails/generators/app_base.rb 1980-01-02 01:00:00.000000000
+0100
@@ -539,6 +539,11 @@
"latest"
end
+ def yarn_through_corepack?
+ true if dockerfile_yarn_version == "latest"
+ dockerfile_yarn_version >= "2"
+ end
+
def dockerfile_bun_version
using_bun? and `bun --version`[/\d+\.\d+\.\d+/]
rescue
@@ -592,7 +597,7 @@
def dockerfile_build_packages
# start with the essentials
- packages = %w(build-essential git pkg-config)
+ packages = %w(build-essential git pkg-config libyaml-dev)
# add database support
packages << database.build_package unless skip_active_record?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/rails/app/app_generator.rb
new/lib/rails/generators/rails/app/app_generator.rb
--- old/lib/rails/generators/rails/app/app_generator.rb 2024-12-13
21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/app/app_generator.rb 1980-01-02
01:00:00.000000000 +0100
@@ -305,11 +305,18 @@
:skip_active_job,
:skip_active_storage,
:skip_bootsnap,
+ :skip_brakeman,
+ :skip_ci,
:skip_dev_gems,
+ :skip_docker,
:skip_hotwire,
:skip_javascript,
:skip_jbuilder,
+ :skip_kamal,
+ :skip_rubocop,
+ :skip_solid,
:skip_system_test,
+ :skip_thruster
],
api: [
:skip_asset_pipeline,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/Dockerfile.tt
new/lib/rails/generators/rails/app/templates/Dockerfile.tt
--- old/lib/rails/generators/rails/app/templates/Dockerfile.tt 2024-12-13
21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/Dockerfile.tt 1980-01-02
01:00:00.000000000 +0100
@@ -38,10 +38,17 @@
ARG NODE_VERSION=<%= node_version %>
ARG YARN_VERSION=<%= dockerfile_yarn_version %>
ENV PATH=/usr/local/node/bin:$PATH
+<% if yarn_through_corepack? -%>
+RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar
xz -C /tmp/ && \
+ /tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node &&
\
+ rm -rf /tmp/node-build-master
+RUN corepack enable && yarn set version $YARN_VERSION
+<% else -%>
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar
xz -C /tmp/ && \
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node &&
\
npm install -g yarn@$YARN_VERSION && \
rm -rf /tmp/node-build-master
+<% end -%>
<% end -%>
<% if using_bun? -%>
@@ -60,7 +67,7 @@
<% if using_node? -%>
# Install node modules
COPY package.json yarn.lock ./
-RUN yarn install --frozen-lockfile
+RUN yarn install --immutable
<% end -%>
<% if using_bun? -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/Gemfile.tt
new/lib/rails/generators/rails/app/templates/Gemfile.tt
--- old/lib/rails/generators/rails/app/templates/Gemfile.tt 2024-12-13
21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/Gemfile.tt 1980-01-02
01:00:00.000000000 +0100
@@ -66,15 +66,15 @@
<%- end -%>
end
<% end -%>
-
<%- unless options.api? || options.skip_dev_gems? -%>
+
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"
end
<%- end -%>
-
<%- if depends_on_system_test? -%>
+
group :test do
# Use system testing
[https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt
new/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt
--- old/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt
2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt
1980-01-02 01:00:00.000000000 +0100
@@ -1,4 +1,4 @@
-# MySQL. Versions 5.5.8 and up are supported.
+# MySQL. Versions 5.6.4 and up are supported.
#
# Install the MySQL driver
# gem install mysql2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt
new/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt
---
old/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt
2024-12-13 21:02:37.000000000 +0100
+++
new/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt
1980-01-02 01:00:00.000000000 +0100
@@ -41,6 +41,16 @@
<<: *default
# database: path/to/persistent/storage/production_cache.sqlite3
migrations_paths: db/cache_migrate
+ queue:
+ <<: *default
+ # database: path/to/persistent/storage/production_queue.sqlite3
+ migrations_paths: db/queue_migrate
+ <%- unless options.skip_action_cable? -%>
+ cable:
+ <<: *default
+ # database: path/to/persistent/storage/production_cable.sqlite3
+ migrations_paths: db/cable_migrate
+ <%- end -%>
<%- end -%>
<%- else -%>
# Store production database in the storage/ directory, which by default
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
new/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
---
old/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
2024-12-13 21:02:37.000000000 +0100
+++
new/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt
1980-01-02 01:00:00.000000000 +0100
@@ -1,4 +1,4 @@
-# MySQL. Versions 5.5.8 and up are supported.
+# MySQL. Versions 5.6.4 and up are supported.
#
# Install the MySQL driver
# gem install trilogy
@@ -15,14 +15,13 @@
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: root
password:
-<% if database.socket -%>
- socket: <%= database.socket %>
-<% else -%>
host: <%%= ENV.fetch("DB_HOST") { "<%= database.host %>" } %>
-<% end -%>
development:
<<: *default
+<% if database.socket -%>
+ socket: <%= database.socket %>
+<% end -%>
database: <%= app_name %>_development
# Warning: The database defined as "test" will be erased and
@@ -30,6 +29,9 @@
# Do not set this db to the same as development or production.
test:
<<: *default
+<% if database.socket -%>
+ socket: <%= database.socket %>
+<% end -%>
database: <%= app_name %>_test
# As with config/credentials.yml, you never want to store sensitive
information,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/github/ci.yml.tt
new/lib/rails/generators/rails/app/templates/github/ci.yml.tt
--- old/lib/rails/generators/rails/app/templates/github/ci.yml.tt
2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/github/ci.yml.tt
1980-01-02 01:00:00.000000000 +0100
@@ -120,8 +120,10 @@
- name: Run tests
env:
RAILS_ENV: test
- <%- if options[:database] == "mysql" || options[:database] ==
"trilogy" -%>
+ <%- if options[:database] == "mysql" -%>
DATABASE_URL: mysql2://127.0.0.1:3306
+ <%- elsif options[:database] == "trilogy" -%>
+ DATABASE_URL: trilogy://127.0.0.1:3306
<%- elsif options[:database] == "postgresql" -%>
DATABASE_URL: postgres://postgres:postgres@localhost:5432
<%- end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt
new/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt
--- old/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt
2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt
1980-01-02 01:00:00.000000000 +0100
@@ -84,8 +84,10 @@
- name: Run tests
env:
RAILS_ENV: test
- <%- if options[:database] == "mysql" || options[:database] ==
"trilogy" -%>
+ <%- if options[:database] == "mysql" -%>
DATABASE_URL: mysql2://127.0.0.1:3306
+ <%- elsif options[:database] == "trilogy" -%>
+ DATABASE_URL: trilogy://127.0.0.1:3306
<%- elsif options[:database] == "postgresql" -%>
DATABASE_URL: postgres://postgres:postgres@localhost:5432
<%- end -%>
@@ -100,4 +102,3 @@
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
<% end -%>
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators.rb new/lib/rails/generators.rb
--- old/lib/rails/generators.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/generators.rb 1980-01-02 01:00:00.000000000 +0100
@@ -97,11 +97,11 @@
# generator group to fall back to another group in case of missing
generators,
# they can add a fallback.
#
- # For example, shoulda is considered a test_framework and is an extension
- # of test_unit. However, most part of shoulda generators are similar to
- # test_unit ones.
+ # For example, shoulda is considered a +test_framework+ and is an
extension
+ # of +test_unit+. However, most part of shoulda generators are similar to
+ # +test_unit+ ones.
#
- # Shoulda then can tell generators to search for test_unit generators
when
+ # Shoulda then can tell generators to search for +test_unit+ generators
when
# some of them are not available by adding a fallback:
#
# Rails::Generators.fallbacks[:shoulda] = :test_unit
@@ -317,7 +317,7 @@
def run_after_generate_callback
if defined?(@@generated_files) && !@@generated_files.empty?
- @after_generate_callbacks.each do |callback|
+ after_generate_callbacks.each do |callback|
callback.call(@@generated_files)
end
@@generated_files = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/test_unit/runner.rb
new/lib/rails/test_unit/runner.rb
--- old/lib/rails/test_unit/runner.rb 2024-12-13 21:02:37.000000000 +0100
+++ new/lib/rails/test_unit/runner.rb 1980-01-02 01:00:00.000000000 +0100
@@ -9,13 +9,17 @@
module Rails
module TestUnit
- class InvalidTestError < StandardError
+ class InvalidTestError < ArgumentError
def initialize(path, suggestion)
- super(<<~MESSAGE.squish)
+ super(<<~MESSAGE.rstrip)
Could not load test file: #{path}.
#{suggestion}
MESSAGE
end
+
+ def backtrace(*args)
+ []
+ end
end
class Runner
@@ -68,7 +72,7 @@
if corrections.empty?
raise exception
end
- raise InvalidTestError.new(path,
DidYouMean::Formatter.message_for(corrections))
+ raise(InvalidTestError.new(path,
DidYouMean::Formatter.message_for(corrections)), cause: nil)
else
raise
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2024-12-13 21:02:37.000000000 +0100
+++ new/metadata 1980-01-02 01:00:00.000000000 +0100
@@ -1,14 +1,13 @@
--- !ruby/object:Gem::Specification
name: railties
version: !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
platform: ruby
authors:
- David Heinemeier Hansson
-autorequire:
bindir: exe
cert_chain: []
-date: 2024-12-13 00:00:00.000000000 Z
+date: 1980-01-02 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,28 +15,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
- !ruby/object:Gem::Dependency
name: actionpack
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
- !ruby/object:Gem::Dependency
name: rackup
requirement: !ruby/object:Gem::Requirement
@@ -120,14 +119,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 8.0.1
+ version: 8.0.2.1
description: 'Rails internals: application bootup, plugins, generators, and
rake tasks.'
email: [email protected]
executables:
@@ -491,12 +490,11 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rails/rails/issues
- changelog_uri:
https://github.com/rails/rails/blob/v8.0.1/railties/CHANGELOG.md
- documentation_uri: https://api.rubyonrails.org/v8.0.1/
+ changelog_uri:
https://github.com/rails/rails/blob/v8.0.2.1/railties/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v8.0.2.1/
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
- source_code_uri: https://github.com/rails/rails/tree/v8.0.1/railties
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.2.1/railties
rubygems_mfa_required: 'true'
-post_install_message:
rdoc_options:
- "--exclude"
- "."
@@ -513,8 +511,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.5.22
-signing_key:
+rubygems_version: 3.6.9
specification_version: 4
summary: Tools for creating, working with, and running Rails applications.
test_files: []