1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

net-ftp is under lib/net instead of lib/net/ftp

This commit is contained in:
Hiroshi SHIBATA 2020-08-03 17:52:01 +09:00
parent 2346e2f0db
commit 3ec860ae88
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -1,7 +1,7 @@
# 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