ruby-changes:62515
From: Hiroshi <ko1@a...>
Date: Mon, 3 Aug 2020 17:52:21 +0900 (JST)
Subject: [ruby-changes:62515] 3ec860ae88 (master): net-ftp is under `lib/net` instead of `lib/net/ftp`
https://git.ruby-lang.org/ruby.git/commit/?id=3ec860ae88 From 3ec860ae8870ee955e34bfa0acc576197012a0c7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 3 Aug 2020 17:52:01 +0900 Subject: net-ftp is under `lib/net` instead of `lib/net/ftp` diff --git a/lib/net/net-ftp.gemspec b/lib/net/net-ftp.gemspec index 893305c..e89ff8a 100644 --- a/lib/net/net-ftp.gemspec +++ b/lib/net/net-ftp.gemspec @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/net-ftp.gemspec#L1 # frozen_string_literal: true name = File.basename(__FILE__, ".gemspec") -version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir| +version = ["lib", Array.new(name.count("-"), "..").join("/")].find do |dir| break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line| /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1 end rescue nil -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/