Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-actionview-7.0 for
openSUSE:Factory checked in at 2023-11-02 20:23:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionview-7.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-actionview-7.0.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionview-7.0"
Thu Nov 2 20:23:13 2023 rev:10 rq:1122875 version:7.0.8
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-actionview-7.0/rubygem-actionview-7.0.changes
2023-07-03 17:43:13.704875064 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-actionview-7.0.new.17445/rubygem-actionview-7.0.changes
2023-11-02 20:23:41.652746390 +0100
@@ -1,0 +2,45 @@
+Thu Nov 2 15:32:36 UTC 2023 - Dan Äermák <[email protected]>
+
+- ## Rails 7.0.8 (September 09, 2023) ##
+
+* Fix `form_for` missing the hidden `_method` input for models with a
+ namespaced route.
+
+ *Hartley McGuire*
+
+* Fix `render collection: @records, cache: true` inside `jbuilder` templates
+
+ The previous fix that shipped in `7.0.7` assumed template fragments are
always strings,
+ this isn't true with `jbuilder`.
+
+ *Jean Boussier*
+
+## Rails 7.0.7.2 (August 22, 2023) ##
+
+* No changes.
+
+## Rails 7.0.7.1 (August 22, 2023) ##
+
+* No changes.
+
+## Rails 7.0.7 (August 09, 2023) ##
+
+* Fix `render collection: @records, cache: true` to cache fragments as bare
strings
+
+ Previously it would incorrectly cache them as Action View buffers.
+
+ *Jean Boussier*
+
+* Don't double-encode nested `field_id` and `field_name` index values
+
+ Pass `index: @options` as a default keyword argument to `field_id` and
+ `field_name` view helper methods.
+
+ *Sean Doyle*
+
+## Rails 7.0.6 (June 29, 2023) ##
+
+* No changes.
+
+
+-------------------------------------------------------------------
Old:
----
actionview-7.0.5.1.gem
New:
----
actionview-7.0.8.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-actionview-7.0.spec ++++++
--- /var/tmp/diff_new_pack.baHSbC/_old 2023-11-02 20:23:42.220767291 +0100
+++ /var/tmp/diff_new_pack.baHSbC/_new 2023-11-02 20:23:42.224767438 +0100
@@ -24,12 +24,11 @@
#
Name: rubygem-actionview-7.0
-Version: 7.0.5.1
+Version: 7.0.8
Release: 0
%define mod_name actionview
%define mod_full_name %{mod_name}-%{version}
%define mod_version_suffix -7.0
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{ruby >= 2.7.0}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
@@ -38,7 +37,6 @@
Source1: gem2rpm.yml
Summary: Rendering framework putting the V in MVC (part of Rails)
License: MIT
-Group: Development/Languages/Ruby
%description
Simple, battle-tested conventions and helpers for building web pages.
++++++ actionview-7.0.5.1.gem -> actionview-7.0.8.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2023-06-26 23:35:15.000000000 +0200
+++ new/CHANGELOG.md 2023-09-09 21:09:47.000000000 +0200
@@ -1,3 +1,48 @@
+## Rails 7.0.8 (September 09, 2023) ##
+
+* Fix `form_for` missing the hidden `_method` input for models with a
+ namespaced route.
+
+ *Hartley McGuire*
+
+* Fix `render collection: @records, cache: true` inside `jbuilder` templates
+
+ The previous fix that shipped in `7.0.7` assumed template fragments are
always strings,
+ this isn't true with `jbuilder`.
+
+ *Jean Boussier*
+
+## Rails 7.0.7.2 (August 22, 2023) ##
+
+* No changes.
+
+
+## Rails 7.0.7.1 (August 22, 2023) ##
+
+* No changes.
+
+
+## Rails 7.0.7 (August 09, 2023) ##
+
+* Fix `render collection: @records, cache: true` to cache fragments as bare
strings
+
+ Previously it would incorrectly cache them as Action View buffers.
+
+ *Jean Boussier*
+
+* Don't double-encode nested `field_id` and `field_name` index values
+
+ Pass `index: @options` as a default keyword argument to `field_id` and
+ `field_name` view helper methods.
+
+ *Sean Doyle*
+
+
+## Rails 7.0.6 (June 29, 2023) ##
+
+* No changes.
+
+
## Rails 7.0.5.1 (June 26, 2023) ##
* No changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.rdoc new/README.rdoc
--- old/README.rdoc 2023-06-26 23:35:15.000000000 +0200
+++ new/README.rdoc 2023-09-09 21:09:47.000000000 +0200
@@ -13,7 +13,7 @@
$ gem install actionview
-Source code can be downloaded as part of the Rails project on GitHub:
+Source code can be downloaded as part of the \Rails project on GitHub:
* https://github.com/rails/rails/tree/main/actionview
@@ -31,7 +31,7 @@
* https://api.rubyonrails.org
-Bug reports for the Ruby on Rails project can be filed here:
+Bug reports for the Ruby on \Rails project can be filed here:
* https://github.com/rails/rails/issues
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/gem_version.rb
new/lib/action_view/gem_version.rb
--- old/lib/action_view/gem_version.rb 2023-06-26 23:35:15.000000000 +0200
+++ new/lib/action_view/gem_version.rb 2023-09-09 21:09:47.000000000 +0200
@@ -9,8 +9,8 @@
module VERSION
MAJOR = 7
MINOR = 0
- TINY = 5
- PRE = "1"
+ TINY = 8
+ PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_view/helpers/form_helper.rb
new/lib/action_view/helpers/form_helper.rb
--- old/lib/action_view/helpers/form_helper.rb 2023-06-26 23:35:15.000000000
+0200
+++ new/lib/action_view/helpers/form_helper.rb 2023-09-09 21:09:47.000000000
+0200
@@ -465,12 +465,13 @@
as = options[:as]
namespace = options[:namespace]
- action = object.respond_to?(:persisted?) && object.persisted? ? :edit
: :new
+ action, method = object.respond_to?(:persisted?) && object.persisted?
? [:edit, :patch] : [:new, :post]
options[:html] ||= {}
options[:html].reverse_merge!(
class: as ? "#{action}_#{as}" : dom_class(object, action),
id: (as ? [namespace, action, as] : [namespace, dom_id(object,
action)]).compact.join("_").presence,
)
+ options[:method] ||= method
end
private :apply_form_for_options!
@@ -1754,7 +1755,7 @@
# <tt>aria-describedby</tt> attribute referencing the <tt><span></tt>
# element, sharing a common <tt>id</tt> root (<tt>post_title</tt>, in
this
# case).
- def field_id(method, *suffixes, namespace: @options[:namespace], index:
@index)
+ def field_id(method, *suffixes, namespace: @options[:namespace], index:
@options[:index])
@template.field_id(@object_name, method, *suffixes, namespace:
namespace, index: index)
end
@@ -1774,7 +1775,7 @@
# <%# => <input type="text" name="post[tag][]">
# <% end %>
#
- def field_name(method, *methods, multiple: false, index: @index)
+ def field_name(method, *methods, multiple: false, index:
@options[:index])
object_name = @options.fetch(:as) { @object_name }
@template.field_name(object_name, method, *methods, index: index,
multiple: multiple)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/action_view/renderer/partial_renderer/collection_caching.rb
new/lib/action_view/renderer/partial_renderer/collection_caching.rb
--- old/lib/action_view/renderer/partial_renderer/collection_caching.rb
2023-06-26 23:35:15.000000000 +0200
+++ new/lib/action_view/renderer/partial_renderer/collection_caching.rb
2023-09-09 21:09:47.000000000 +0200
@@ -88,15 +88,32 @@
# If the partial is not already cached it will also be
# written back to the underlying cache store.
def fetch_or_cache_partial(cached_partials, template, order_by:)
- order_by.index_with do |cache_key|
+ entries_to_write = {}
+
+ keyed_partials = order_by.index_with do |cache_key|
if content = cached_partials[cache_key]
build_rendered_template(content, template)
else
- yield.tap do |rendered_partial|
- collection_cache.write(cache_key, rendered_partial.body)
+ rendered_partial = yield
+ body = rendered_partial.body
+
+ # We want to cache buffers as raw strings. This both improve
performance and
+ # avoid creating forward compatibility issues with the internal
representation
+ # of these two types.
+ if body.is_a?(ActiveSupport::SafeBuffer)
+ body = body.to_str
end
+
+ entries_to_write[cache_key] = body
+ rendered_partial
end
end
+
+ unless entries_to_write.empty?
+ collection_cache.write_multi(entries_to_write)
+ end
+
+ keyed_partials
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2023-06-26 23:35:15.000000000 +0200
+++ new/metadata 2023-09-09 21:09:47.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: actionview
version: !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2023-06-26 00:00:00.000000000 Z
+date: 2023-09-09 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
- !ruby/object:Gem::Dependency
name: builder
requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.5.1
+ version: 7.0.8
description: Simple, battle-tested conventions and helpers for building web
pages.
email: [email protected]
executables: []
@@ -246,10 +246,10 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rails/rails/issues
- changelog_uri:
https://github.com/rails/rails/blob/v7.0.5.1/actionview/CHANGELOG.md
- documentation_uri: https://api.rubyonrails.org/v7.0.5.1/
+ changelog_uri:
https://github.com/rails/rails/blob/v7.0.8/actionview/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v7.0.8/
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
- source_code_uri: https://github.com/rails/rails/tree/v7.0.5.1/actionview
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.8/actionview
rubygems_mfa_required: 'true'
post_install_message:
rdoc_options: []
@@ -267,7 +267,7 @@
version: '0'
requirements:
- none
-rubygems_version: 3.3.3
+rubygems_version: 3.4.18
signing_key:
specification_version: 4
summary: Rendering framework putting the V in MVC (part of Rails).