Skip to content

Commit 1e0614c

Browse files
committed
Move gemspec files to top of lib directory.
They have version.rb files with same directory. But version.rb have been removed at ruby/ruby#3375 There is no reason to locate under the library name of directory.
1 parent 5ae4433 commit 1e0614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weakref.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
name = File.basename(__FILE__, ".gemspec")
4-
version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
4+
version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
55
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
66
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
77
end rescue nil

0 commit comments

Comments
 (0)