lib/smilodon.rb in smilodon-0.3.9 vs lib/smilodon.rb in smilodon-0.3.10
- old
+ new
@@ -120,9 +120,9 @@
# @raise [DataFileNotConfigured] Raises an exception when the file is not configured.
# @raise [MissingDataFile] Raises an exception when the configured file is missing.
def read(file)
raise DataFileNotConfigured unless file
raise MissingDataFile unless File.exist?(path(file))
- File.open(path(file), 'r:UTF-8').read
+ File.open(path(file)).read
end
end
end