Project

General

Profile

Actions

Bug #21113

closed

net-smtp.gemspec is broken at Ruby 3.3/3.4

Added by hsbt (Hiroshi SHIBATA) about 2 months ago. Updated 24 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:120879]

Description

The bundled net-smtp-0.4.0.1 at Ruby 3.3 and net-smtp-0.5.0 at Ruby 3.4 are broken.

❯ diff -u 3.2.7/lib/ruby/gems/3.2.0/specifications/net-smtp-0.3.4.gemspec 3.3.7/lib/ruby/gems/3.3.0/specifications/net-smtp-0.4.0.1.gemspec
--- 3.2.7/lib/ruby/gems/3.2.0/specifications/net-smtp-0.3.4.gemspec     2025-02-05 14:31:27
+++ 3.3.7/lib/ruby/gems/3.3.0/specifications/net-smtp-0.4.0.1.gemspec   2025-02-05 14:33:37
@@ -1,26 +1,22 @@
 # -*- encoding: utf-8 -*-
-# stub: net-smtp 0.3.4 ruby lib
+# stub: net-smtp 0.4.0.1 ruby lib

 Gem::Specification.new do |s|
   s.name = "net-smtp".freeze
-  s.version = "0.3.4"
+  s.version = "0.4.0.1".freeze

   s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
   s.metadata = { "homepage_uri" => "https://github.com/ruby/net-smtp", "source_code_uri" => "https://github.com/ruby/net-smtp" } if s.respond_to? :metadata=
   s.require_paths = ["lib".freeze]
   s.authors = ["Yukihiro Matsumoto".freeze]
-  s.date = "2025-02-04"
+  s.date = "2025-01-15"
   s.description = "Simple Mail Transfer Protocol client library for Ruby.".freeze
   s.email = ["matz@ruby-lang.org".freeze]
   s.homepage = "https://github.com/ruby/net-smtp".freeze
   s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze]
   s.required_ruby_version = Gem::Requirement.new(">= 2.6.0".freeze)
-  s.rubygems_version = "3.4.19".freeze
+  s.rubygems_version = "3.4.20".freeze
   s.summary = "Simple Mail Transfer Protocol client library for Ruby.".freeze

-  s.installed_by_version = "3.4.19" if s.respond_to? :installed_by_version
-
-  s.specification_version = 4
-
-  s.add_runtime_dependency(%q<net-protocol>.freeze, [">= 0"])
+  s.installed_by_version = "3.5.22".freeze
 end
❯ diff -u 3.2.7/lib/ruby/gems/3.2.0/specifications/net-smtp-0.3.4.gemspec 3.4.1/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.0.gemspec
--- 3.2.7/lib/ruby/gems/3.2.0/specifications/net-smtp-0.3.4.gemspec     2025-02-05 14:31:27
+++ 3.4.1/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.0.gemspec     2025-02-05 14:36:00
@@ -1,26 +1,22 @@
 # -*- encoding: utf-8 -*-
-# stub: net-smtp 0.3.4 ruby lib
+# stub: net-smtp 0.5.0 ruby lib

 Gem::Specification.new do |s|
   s.name = "net-smtp".freeze
-  s.version = "0.3.4"
+  s.version = "0.5.0".freeze

   s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
   s.metadata = { "homepage_uri" => "https://github.com/ruby/net-smtp", "source_code_uri" => "https://github.com/ruby/net-smtp" } if s.respond_to? :metadata=
   s.require_paths = ["lib".freeze]
   s.authors = ["Yukihiro Matsumoto".freeze]
-  s.date = "2025-02-04"
+  s.date = "2024-12-25"
   s.description = "Simple Mail Transfer Protocol client library for Ruby.".freeze
   s.email = ["matz@ruby-lang.org".freeze]
   s.homepage = "https://github.com/ruby/net-smtp".freeze
   s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze]
   s.required_ruby_version = Gem::Requirement.new(">= 2.6.0".freeze)
-  s.rubygems_version = "3.4.19".freeze
+  s.rubygems_version = "3.4.20".freeze
   s.summary = "Simple Mail Transfer Protocol client library for Ruby.".freeze

-  s.installed_by_version = "3.4.19" if s.respond_to? :installed_by_version
-
-  s.specification_version = 4
-
-  s.add_runtime_dependency(%q<net-protocol>.freeze, [">= 0"])
+  s.installed_by_version = "3.6.2".freeze
 end

The broken gemspecs lost net-protocol dependency at fresh installation from Ruby package. This is similar issue with #20581

The workaround is gem install net-smtp and overwrite net-smtp gemspec after Ruby installation.

Updated by hsbt (Hiroshi SHIBATA) about 2 months ago

  • Status changed from Open to Closed
  • Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: REQUIRED

Updated by k0kubun (Takashi Kokubun) about 2 months ago

  • Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: DONE
Actions #3

Updated by nagachika (Tomoyuki Chikanaga) 24 days ago

  • Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: DONE to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE, 3.4: DONE
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0