lib/phonelib/core.rb in phonelib-0.3.0 vs lib/phonelib/core.rb in phonelib-0.3.1
- old
+ new
@@ -141,9 +141,9 @@
private
# Load data file into memory
def load_data
data_file = File.dirname(__FILE__) + '/../../data/phone_data.dat'
- Marshal.load(File.read(data_file))
+ Marshal.load(File.binread(data_file))
end
end
end