[前][次][番号順一覧][スレッド一覧]

ruby-changes:66665

From: nagachika <ko1@a...>
Date: Sat, 3 Jul 2021 12:15:40 +0900 (JST)
Subject: [ruby-changes:66665] 934001fb08 (ruby_3_0): merge revision(s) 5d710d7e41ef3a9877426c87de121be3bf770e34: [Backport #17476]

https://git.ruby-lang.org/ruby.git/commit/?id=934001fb08

From 934001fb08ef133b2925f1651f36f83ddcd2f46d Mon Sep 17 00:00:00 2001
From: nagachika <nagachika@r...>
Date: Sat, 3 Jul 2021 11:38:10 +0900
Subject: merge revision(s) 5d710d7e41ef3a9877426c87de121be3bf770e34: [Backport
 #17476]

	Fix the wrong file detection for net-*.gemspec

	[Bug #17476][ruby-core:101724]
	---
	 tool/rbinstall.rb | 5 +++++
	 1 file changed, 5 insertions(+)
---
 tool/rbinstall.rb | 5 +++++
 version.h         | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index b49d91f..7232865 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -20,6 +20,7 @@ require 'fileutils' https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L20
 require 'shellwords'
 require 'optparse'
 require 'optparse/shellwords'
+require 'pathname'
 require 'rubygems'
 begin
   require "zlib"
@@ -701,6 +702,10 @@ module RbInstall https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L702
         when "lib"
           base = @base_dir
           prefix = base.sub(/lib\/.*?\z/, "") + "lib/"
+          # for lib/net/net-smtp.gemspec
+          if m = Pathname.new(@gemspec).basename(".gemspec").to_s.match(/.*\-(.*)\z/)
+            base = "#{@base_dir}/#{m[1]}" unless remove_prefix(prefix, @base_dir).include?(m[1])
+          end
         end
 
         if base
diff --git a/version.h b/version.h
index 35b5225..53bcf6f 100644
--- a/version.h
+++ b/version.h
@@ -12,11 +12,11 @@ https://github.com/ruby/ruby/blob/trunk/version.h#L12
 # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
 #define RUBY_VERSION_TEENY 2
 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 103
+#define RUBY_PATCHLEVEL 104
 
 #define RUBY_RELEASE_YEAR 2021
-#define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 13
+#define RUBY_RELEASE_MONTH 7
+#define RUBY_RELEASE_DAY 3
 
 #include "ruby/version.h"
 
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]