Just use Ruby's File.read

This commit is contained in:
Steve Purcell 2014-06-16 08:32:35 +01:00
parent 63502ec265
commit 10136d3bc7

View file

@ -15,7 +15,7 @@
require 'json' require 'json'
require 'time' require 'time'
require 'ostruct' require 'ostruct'
packages = JSON.parse(File.open("archive.json").read).map do |pkgname, info| packages = JSON.parse(File.read("archive.json")).map do |pkgname, info|
versions = info["ver"] versions = info["ver"]
deps = info["deps"] deps = info["deps"]
descr = info["desc"] descr = info["desc"]