Skip to content

Commit 9d73a4d

Browse files
debasishbswsnevans
authored andcommitted
set to use utf-8 encoding
Signed-off-by: Debasish Biswas <[email protected]>
1 parent ebdee6d commit 9d73a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-imap.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

0 commit comments

Comments
 (0)