Sha256: 1d66c6486da4ceedb15fb8ade3c241e812f8cfad631dfa590841160ee48ea15f
Contents?: true
Size: 324 Bytes
Versions: 30
Compression:
Stored size: 324 Bytes
Contents
def gem_data_file path = File.realpath("spec/vatsim_data.txt") gem_data = File.open(path, :encoding => 'iso-8859-15').read data = Tempfile.new('vatsim_data', :encoding => 'iso-8859-15') data.write(gem_data.gsub(/["]/, '\s').force_encoding('iso-8859-15')) File.rename data.path, "#{Dir.tmpdir}/vatsim_data.txt" end
Version data entries
30 entries across 24 versions & 1 rubygems