Skip to content

Commit

Permalink
Fixed the inconsistency gemspec location with net-* gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 5, 2020
1 parent 5cbe564 commit 7af91bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net-smtp.gemspec
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7af91bc

Please sign in to comment.