Skip to content

Commit 57c5334

Browse files
committed
Fixed version detection paths in ruby repository
1 parent 38c2837 commit 57c5334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base64.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = File.basename(__FILE__, ".gemspec")
2-
version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
2+
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
33
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
44
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
55
end rescue nil

0 commit comments

Comments
 (0)