public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-mail] epel10: Update to mail 2.8.1.
@ 2026-11-20 23:23 Pavel Valena
0 siblings, 0 replies; only message in thread
From: Pavel Valena @ 2026-11-20 23:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rubygem-mail
Branch : epel10
Commit : 4099c12956b7d2f24bfbf42159a4edd132eb5e2b
Author : Pavel Valena <pvalena@redhat.com>
Date : 2023-09-21T16:34:42+02:00
Stats : +16/-144 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-mail/c/4099c12956b7d2f24bfbf42159a4edd132eb5e2b?branch=epel10
Log:
Update to mail 2.8.1.
Resolves: rhbz#2150476
---
diff --git a/.gitignore b/.gitignore
index 6029cc2..8b222c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/mail-*-specs.txz
/mail-*.gem
+/mail-*-specs.txz
diff --git a/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x-test.patch b/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x-test.patch
deleted file mode 100644
index ff2c72e..0000000
--- a/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x-test.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-From 641771dec33eb23c30c259ebbb98260e1dd80236 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= <josef.simanek@gmail.com>
-Date: Wed, 23 Mar 2022 19:23:08 +0100
-Subject: [PATCH] Add Mail::YAML#load compatible with Psych 3.x and Psych 4.x.
-
----
- spec/mail/message_spec.rb | 6 ++++----
- spec/mail/parts_list_spec.rb | 2 +-
- spec/mail/yaml_spec.rb | 13 +++++++++++++
- 3 files changed, 17 insertions(+), 4 deletions(-)
- create mode 100644 spec/mail/yaml_spec.rb
-
-diff --git a/spec/mail/message_spec.rb b/spec/mail/message_spec.rb
-index 033edf2bb..eb3831703 100644
---- a/spec/mail/message_spec.rb
-+++ b/spec/mail/message_spec.rb
-@@ -198,7 +198,7 @@ def create_mail_with_splat_args
-
- it "should serialize the basic information to YAML" do
- yaml = @yaml_mail.to_yaml
-- yaml_output = YAML.load(yaml)
-+ yaml_output = Mail::YAML.load(yaml)
- expect(yaml_output['headers']['To']).to eq "someone@somewhere.com"
- expect(yaml_output['headers']['Cc']).to eq "someoneelse@somewhere.com"
- expect(yaml_output['headers']['Subject']).to eq "subject"
-@@ -216,7 +216,7 @@ def create_mail_with_splat_args
- it "should serialize a Message with a custom delivery_handler" do
- @yaml_mail.delivery_handler = DeliveryAgent
- yaml = @yaml_mail.to_yaml
-- yaml_output = YAML.load(yaml)
-+ yaml_output = Mail::YAML.load(yaml)
- expect(yaml_output['delivery_handler']).to eq "DeliveryAgent"
- end
-
-@@ -228,7 +228,7 @@ def create_mail_with_splat_args
-
- it "should not deserialize a delivery_handler that does not exist" do
- yaml = @yaml_mail.to_yaml
-- yaml_hash = YAML.load(yaml)
-+ yaml_hash = Mail::YAML.load(yaml)
- yaml_hash['delivery_handler'] = "NotARealClass"
- deserialized = Mail::Message.from_yaml(yaml_hash.to_yaml)
- expect(deserialized.delivery_handler).to be_nil
-diff --git a/spec/mail/parts_list_spec.rb b/spec/mail/parts_list_spec.rb
-index 30dc7d7c8..d22846043 100644
---- a/spec/mail/parts_list_spec.rb
-+++ b/spec/mail/parts_list_spec.rb
-@@ -89,6 +89,6 @@
-
- it "should have a round-tripping YAML serialization" do
- p = Mail::PartsList.new([1, 2])
-- expect(YAML.load(YAML.dump(p))).to eq(p)
-+ expect(Mail::YAML.load(YAML.dump(p))).to eq(p)
- end
- end
-diff --git a/spec/mail/yaml_spec.rb b/spec/mail/yaml_spec.rb
-new file mode 100644
-index 000000000..7c72fe1ab
---- /dev/null
-+++ b/spec/mail/yaml_spec.rb
-@@ -0,0 +1,13 @@
-+# encoding: utf-8
-+# frozen_string_literal: true
-+require 'spec_helper'
-+
-+describe Mail::YAML do
-+
-+ describe "#load" do
-+
-+ it 'loads YAML' do
-+ expect(Mail::YAML.load('{}')).to eq({})
-+ end
-+ end
-+end
diff --git a/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x.patch b/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x.patch
deleted file mode 100644
index ec66510..0000000
--- a/rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 641771dec33eb23c30c259ebbb98260e1dd80236 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= <josef.simanek@gmail.com>
-Date: Wed, 23 Mar 2022 19:23:08 +0100
-Subject: [PATCH] Add Mail::YAML#load compatible with Psych 3.x and Psych 4.x.
-
----
- lib/mail/message.rb | 4 ++--
- lib/mail/yaml.rb | 16 ++++++++++++++++
- 2 files changed, 18 insertions(+), 2 deletions(-)
- create mode 100644 lib/mail/yaml.rb
-
-diff --git a/lib/mail/message.rb b/lib/mail/message.rb
-index f5176ac85..f3762f26f 100644
---- a/lib/mail/message.rb
-+++ b/lib/mail/message.rb
-@@ -1,6 +1,6 @@
- # encoding: utf-8
- # frozen_string_literal: true
--require "yaml"
-+require 'mail/yaml'
-
- module Mail
- # The Message class provides a single point of access to all things to do with an
-@@ -1867,7 +1867,7 @@ def to_yaml(opts = {})
- end
-
- def self.from_yaml(str)
-- hash = YAML.load(str)
-+ hash = Mail::YAML.load(str)
- m = self.new(:headers => hash['headers'])
- hash.delete('headers')
- hash.each do |k,v|
-diff --git a/lib/mail/yaml.rb b/lib/mail/yaml.rb
-new file mode 100644
-index 000000000..c09108558
---- /dev/null
-+++ b/lib/mail/yaml.rb
-@@ -0,0 +1,16 @@
-+require 'yaml'
-+
-+module Mail
-+ module YAML
-+ # unsafe loading compatible with Psych 3.x and Psych 4.x
-+ if ::YAML.respond_to?(:unsafe_load)
-+ def self.load(yaml)
-+ ::YAML.unsafe_load(yaml)
-+ end
-+ else
-+ def self.load(yaml)
-+ ::YAML.load(yaml)
-+ end
-+ end
-+ end
-+end
diff --git a/rubygem-mail.spec b/rubygem-mail.spec
index 9359228..8f77784 100644
--- a/rubygem-mail.spec
+++ b/rubygem-mail.spec
@@ -2,20 +2,16 @@
%global gem_name mail
Name: rubygem-%{gem_name}
-Version: 2.7.1
-Release: 9%{?dist}
+Version: 2.8.1
+Release: 1%{?dist}
Summary: Mail provides a nice Ruby DSL for making, sending and reading emails
License: MIT
URL: https://github.com/mikel/mail
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Specs are not shipped with the gem. You can get them like so:
# git clone https://github.com/mikel/mail.git --no-checkout
-# cd mail && git archive -v -o mail-2.7.1-specs.txz 2.7.1 spec/
+# cd mail && git archive -v -o mail-2.8.1-specs.txz 2.8.1 spec/
Source1: %{gem_name}-%{version}-specs.txz
-# Fix compatibility with Psych 4.0+.
-# https://github.com/mikel/mail/pull/1476
-Patch0: rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x.patch
-Patch1: rubygem-mail-2.7.1-Add-Mail-YAML-load-compatible-with-Psych-3.x-and-Psych-4.x-test.patch
# net-smtp is bundled gem, shipped in ruby-default-gems since Ruby 3.1.
# There might be explicit dependencies introduced later:
# https://github.com/mikel/mail/pull/1439
@@ -42,12 +38,6 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b1
-%patch0 -p1
-
-pushd %{_builddir}
-%patch1 -p1
-popd
-
%gemspec_add_file 'lib/mail/yaml.rb'
%build
@@ -62,6 +52,12 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/spec .
+
+# We don't want benchmarks
+sed -i -e '/require..rspec.benchmark/ s/^/#/' \
+ -e '/include.RSpec..Benchmark/ s/^/#/' \
+ spec/spec_helper.rb
+
rspec spec
popd
@@ -77,6 +73,10 @@ popd
%doc %{gem_instdir}/README.md
%changelog
+* Thu Sep 21 2023 Pavel Valena <pvalena@redhat.com> - 2.8.1-1
+- Update to mail 2.8.1.
+ Resolves: rhbz#2150476
+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/sources b/sources
index 98d15da..598060e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (mail-2.7.1.gem) = b8018ad089517ba058e922ec32653e6052c76a480178ae92452fdd678e3ba7f4916ee6643efa59dd673a6a8550f907fc7a2121c21f468c70b3659bf5615991d7
-SHA512 (mail-2.7.1-specs.txz) = 0ef6df35a3fa7258ef5033a6484d58fc6b2f7cb92871339f1e9e8a3257e484c238bdf3ff07fc2e50a38c7ab1b060c960f61b86df573fc11a423fdaa47459521c
+SHA512 (mail-2.8.1.gem) = ec234d938ec610fa383997a84168212e3a4b969db8e4d6f179bbfb460efa0da7641dbb87e85295a49705684a8c25756b92397cefefd480f176b7c0f284afb9a3
+SHA512 (mail-2.8.1-specs.txz) = 86c3d9db4bca80b2beaf2c114fed3b8c8f7e35371dc14991e69155e909d8be13849a15cd5ee58c2bd7107e5fc9982763d0bbc1446ed69fc9758bbffb65e8e9d1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 23:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 23:23 [rpms/rubygem-mail] epel10: Update to mail 2.8.1 Pavel Valena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox