Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-activemodel-7.0 for
openSUSE:Factory checked in at 2023-07-03 17:43:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-7.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activemodel-7.0.new.13546 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activemodel-7.0"
Mon Jul 3 17:43:11 2023 rev:9 rq:1096442 version:7.0.5.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activemodel-7.0/rubygem-activemodel-7.0.changes
2023-04-21 18:47:49.436186196 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activemodel-7.0.new.13546/rubygem-activemodel-7.0.changes
2023-07-03 17:43:15.456885379 +0200
@@ -1,0 +2,12 @@
+Tue Jun 27 19:31:09 UTC 2023 - Mykola Krachkovsky <[email protected]>
+
+- updated to version 7.0.5.1
+ *
https://rubyonrails.org/2023/6/26/Rails-Versions-7-0-5-1-6-1-7-4-have-been-released
+
+-------------------------------------------------------------------
+Mon Jun 26 19:11:57 UTC 2023 - Mykola Krachkovsky <[email protected]>
+
+- updated to version 7.0.5
+ * https://rubyonrails.org/2023/5/24/Rails-7-0-5-has-been-released
+
+-------------------------------------------------------------------
Old:
----
activemodel-7.0.4.3.gem
New:
----
activemodel-7.0.5.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activemodel-7.0.spec ++++++
--- /var/tmp/diff_new_pack.Mgdd4U/_old 2023-07-03 17:43:16.064888958 +0200
+++ /var/tmp/diff_new_pack.Mgdd4U/_new 2023-07-03 17:43:16.068888982 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activemodel-7.0
-Version: 7.0.4.3
+Version: 7.0.5.1
Release: 0
%define mod_name activemodel
%define mod_full_name %{mod_name}-%{version}
++++++ activemodel-7.0.4.3.gem -> activemodel-7.0.5.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2023-03-13 19:52:46.000000000 +0100
+++ new/CHANGELOG.md 2023-06-26 23:35:10.000000000 +0200
@@ -1,3 +1,13 @@
+## Rails 7.0.5.1 (June 26, 2023) ##
+
+* No changes.
+
+
+## Rails 7.0.5 (May 24, 2023) ##
+
+* No changes.
+
+
## Rails 7.0.4.3 (March 13, 2023) ##
* No changes.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/attribute_methods.rb
new/lib/active_model/attribute_methods.rb
--- old/lib/active_model/attribute_methods.rb 2023-03-13 19:52:46.000000000
+0100
+++ new/lib/active_model/attribute_methods.rb 2023-06-26 23:35:10.000000000
+0200
@@ -49,18 +49,17 @@
# end
#
# private
+ # def attribute_contrived?(attr)
+ # true
+ # end
#
- # def attribute_contrived?(attr)
- # true
- # end
- #
- # def clear_attribute(attr)
- # send("#{attr}=", nil)
- # end
+ # def clear_attribute(attr)
+ # send("#{attr}=", nil)
+ # end
#
- # def reset_attribute_to_default!(attr)
- # send("#{attr}=", 'Default Name')
- # end
+ # def reset_attribute_to_default!(attr)
+ # send("#{attr}=", 'Default Name')
+ # end
# end
module AttributeMethods
extend ActiveSupport::Concern
@@ -95,10 +94,9 @@
# define_attribute_methods :name
#
# private
- #
- # def clear_attribute(attr)
- # send("#{attr}=", nil)
- # end
+ # def clear_attribute(attr)
+ # send("#{attr}=", nil)
+ # end
# end
#
# person = Person.new
@@ -131,10 +129,9 @@
# define_attribute_methods :name
#
# private
- #
- # def attribute_short?(attr)
- # send(attr).length < 5
- # end
+ # def attribute_short?(attr)
+ # send(attr).length < 5
+ # end
# end
#
# person = Person.new
@@ -167,10 +164,9 @@
# define_attribute_methods :name
#
# private
- #
- # def reset_attribute_to_default!(attr)
- # send("#{attr}=", 'Default Name')
- # end
+ # def reset_attribute_to_default!(attr)
+ # send("#{attr}=", 'Default Name')
+ # end
# end
#
# person = Person.new
@@ -194,10 +190,9 @@
# alias_attribute :nickname, :name
#
# private
- #
- # def attribute_short?(attr)
- # send(attr).length < 5
- # end
+ # def attribute_short?(attr)
+ # send(attr).length < 5
+ # end
# end
#
# person = Person.new
@@ -268,10 +263,9 @@
# define_attribute_methods :name, :age, :address
#
# private
- #
- # def clear_attribute(attr)
- # send("#{attr}=", nil)
- # end
+ # def clear_attribute(attr)
+ # send("#{attr}=", nil)
+ # end
# end
def define_attribute_methods(*attr_names)
ActiveSupport::CodeGenerator.batch(generated_attribute_methods,
__FILE__, __LINE__) do |owner|
@@ -298,10 +292,9 @@
# define_attribute_method :name
#
# private
- #
- # def attribute_short?(attr)
- # send(attr).length < 5
- # end
+ # def attribute_short?(attr)
+ # send(attr).length < 5
+ # end
# end
#
# person = Person.new
@@ -337,10 +330,9 @@
# define_attribute_method :name
#
# private
- #
- # def attribute_short?(attr)
- # send(attr).length < 5
- # end
+ # def attribute_short?(attr)
+ # send(attr).length < 5
+ # end
# end
#
# person = Person.new
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/attribute_mutation_tracker.rb
new/lib/active_model/attribute_mutation_tracker.rb
--- old/lib/active_model/attribute_mutation_tracker.rb 2023-03-13
19:52:46.000000000 +0100
+++ new/lib/active_model/attribute_mutation_tracker.rb 2023-06-26
23:35:10.000000000 +0200
@@ -43,8 +43,8 @@
def changed?(attr_name, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN)
attribute_changed?(attr_name) &&
- (OPTION_NOT_GIVEN == from || original_value(attr_name) == from) &&
- (OPTION_NOT_GIVEN == to || fetch_value(attr_name) == to)
+ (OPTION_NOT_GIVEN == from || original_value(attr_name) ==
type_cast(attr_name, from)) &&
+ (OPTION_NOT_GIVEN == to || fetch_value(attr_name) ==
type_cast(attr_name, to))
end
def changed_in_place?(attr_name)
@@ -82,6 +82,10 @@
def fetch_value(attr_name)
attributes.fetch_value(attr_name)
end
+
+ def type_cast(attr_name, value)
+ attributes[attr_name].type_cast(value)
+ end
end
class ForcedMutationTracker < AttributeMutationTracker # :nodoc:
@@ -143,6 +147,10 @@
rescue TypeError, NoMethodError
value
end
+
+ def type_cast(attr_name, value)
+ value
+ end
end
class NullMutationTracker # :nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/callbacks.rb
new/lib/active_model/callbacks.rb
--- old/lib/active_model/callbacks.rb 2023-03-13 19:52:46.000000000 +0100
+++ new/lib/active_model/callbacks.rb 2023-06-26 23:35:10.000000000 +0200
@@ -74,7 +74,7 @@
# <tt>:only</tt> option, where you can choose if you want all types
(before,
# around or after) or just some.
#
- # define_model_callbacks :initializer, only: :after
+ # define_model_callbacks :initialize, only: :after
#
# Note, the <tt>only: <type></tt> hash will apply to all callbacks defined
# on that method call. To get around this you can call the
define_model_callbacks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/gem_version.rb
new/lib/active_model/gem_version.rb
--- old/lib/active_model/gem_version.rb 2023-03-13 19:52:46.000000000 +0100
+++ new/lib/active_model/gem_version.rb 2023-06-26 23:35:10.000000000 +0200
@@ -9,8 +9,8 @@
module VERSION
MAJOR = 7
MINOR = 0
- TINY = 4
- PRE = "3"
+ TINY = 5
+ PRE = "1"
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/binary.rb
new/lib/active_model/type/binary.rb
--- old/lib/active_model/type/binary.rb 2023-03-13 19:52:46.000000000 +0100
+++ new/lib/active_model/type/binary.rb 2023-06-26 23:35:10.000000000 +0200
@@ -31,7 +31,9 @@
class Data # :nodoc:
def initialize(value)
- @value = value.to_s
+ value = value.to_s
+ value = value.b unless value.encoding == Encoding::BINARY
+ @value = value
end
def to_s
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/helpers/mutable.rb
new/lib/active_model/type/helpers/mutable.rb
--- old/lib/active_model/type/helpers/mutable.rb 2023-03-13
19:52:46.000000000 +0100
+++ new/lib/active_model/type/helpers/mutable.rb 2023-06-26
23:35:10.000000000 +0200
@@ -4,6 +4,10 @@
module Type
module Helpers # :nodoc: all
module Mutable
+ def immutable_value(value)
+ value.deep_dup.freeze
+ end
+
def cast(value)
deserialize(serialize(value))
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/value.rb
new/lib/active_model/type/value.rb
--- old/lib/active_model/type/value.rb 2023-03-13 19:52:46.000000000 +0100
+++ new/lib/active_model/type/value.rb 2023-06-26 23:35:10.000000000 +0200
@@ -121,6 +121,10 @@
def assert_valid_value(_)
end
+ def immutable_value(value) # :nodoc:
+ value
+ end
+
private
# Convenience method for types which do not need separate type casting
# behavior for user and database inputs. Called by Value#cast for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/validations/callbacks.rb
new/lib/active_model/validations/callbacks.rb
--- old/lib/active_model/validations/callbacks.rb 2023-03-13
19:52:46.000000000 +0100
+++ new/lib/active_model/validations/callbacks.rb 2023-06-26
23:35:10.000000000 +0200
@@ -43,10 +43,9 @@
# before_validation :remove_whitespaces
#
# private
- #
- # def remove_whitespaces
- # name.strip!
- # end
+ # def remove_whitespaces
+ # name.strip!
+ # end
# end
#
# person = Person.new
@@ -74,10 +73,9 @@
# after_validation :set_status
#
# private
- #
- # def set_status
- # self.status = errors.empty?
- # end
+ # def set_status
+ # self.status = errors.empty?
+ # end
# end
#
# person = Person.new
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/validations/length.rb
new/lib/active_model/validations/length.rb
--- old/lib/active_model/validations/length.rb 2023-03-13 19:52:46.000000000
+0100
+++ new/lib/active_model/validations/length.rb 2023-06-26 23:35:10.000000000
+0200
@@ -85,10 +85,9 @@
# validates_length_of :words_in_essay, minimum: 100, too_short:
'Your essay must be at least 100 words.'
#
# private
- #
- # def words_in_essay
- # essay.scan(/\w+/)
- # end
+ # def words_in_essay
+ # essay.scan(/\w+/)
+ # end
# end
#
# Constraint options:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/validations/validates.rb
new/lib/active_model/validations/validates.rb
--- old/lib/active_model/validations/validates.rb 2023-03-13
19:52:46.000000000 +0100
+++ new/lib/active_model/validations/validates.rb 2023-06-26
23:35:10.000000000 +0200
@@ -96,7 +96,7 @@
# Example:
#
# validates :password, presence: true, confirmation: true, if:
:password_required?
- # validates :token, length: 24, strict: TokenLengthException
+ # validates :token, length: { is: 24 }, strict: TokenLengthException
#
#
# Finally, the options +:if+, +:unless+, +:on+, +:allow_blank+,
+:allow_nil+, +:strict+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model.rb new/lib/active_model.rb
--- old/lib/active_model.rb 2023-03-13 19:52:46.000000000 +0100
+++ new/lib/active_model.rb 2023-06-26 23:35:10.000000000 +0200
@@ -58,6 +58,7 @@
autoload :RangeError, "active_model/errors"
autoload :StrictValidationFailed, "active_model/errors"
autoload :UnknownAttributeError, "active_model/errors"
+ autoload :ValidationError, "active_model/validations"
end
module Serializers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2023-03-13 19:52:46.000000000 +0100
+++ new/metadata 2023-06-26 23:35:10.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activemodel
version: !ruby/object:Gem::Version
- version: 7.0.4.3
+ version: 7.0.5.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2023-03-13 00:00:00.000000000 Z
+date: 2023-06-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.4.3
+ version: 7.0.5.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 7.0.4.3
+ version: 7.0.5.1
description: A toolkit for building modeling frameworks like Active Record.
Rich support
for attributes, callbacks, validations, serialization, internationalization,
and
testing.
@@ -107,10 +107,10 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rails/rails/issues
- changelog_uri:
https://github.com/rails/rails/blob/v7.0.4.3/activemodel/CHANGELOG.md
- documentation_uri: https://api.rubyonrails.org/v7.0.4.3/
+ changelog_uri:
https://github.com/rails/rails/blob/v7.0.5.1/activemodel/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v7.0.5.1/
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
- source_code_uri: https://github.com/rails/rails/tree/v7.0.4.3/activemodel
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.5.1/activemodel
rubygems_mfa_required: 'true'
post_install_message:
rdoc_options: []
@@ -127,7 +127,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.4.3
+rubygems_version: 3.3.3
signing_key:
specification_version: 4
summary: A toolkit for building modeling frameworks (part of Rails).