Skip to content

Commit

Permalink
set to use utf-8 encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Debasish Biswas <[email protected]>
  • Loading branch information
debasishbsws authored and nevans committed Oct 30, 2023
1 parent ebdee6d commit 9d73a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net-imap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = File.basename(__FILE__, ".gemspec")
version = ["lib", Array.new(name.count("-"), "..").join("/")].find do |dir|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb"), :encoding=> 'utf-8') do |line|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
end rescue nil
end
Expand Down

0 comments on commit 9d73a4d

Please sign in to comment.