mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 11:08:54 +00:00
Fix updates.rss.erb for new json structure
This commit is contained in:
parent
888b352567
commit
a6863d79e3
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@
|
||||||
require 'time'
|
require 'time'
|
||||||
require 'ostruct'
|
require 'ostruct'
|
||||||
packages = JSON.parse(File.open("archive.json").read).map do |pkgname, info|
|
packages = JSON.parse(File.open("archive.json").read).map do |pkgname, info|
|
||||||
versions, deps, descr, pkgtype = info
|
versions = info["ver"]
|
||||||
|
deps = info["deps"]
|
||||||
|
descr = info["desc"]
|
||||||
|
pkgtype = info["type"]
|
||||||
version = versions.join('.')
|
version = versions.join('.')
|
||||||
package = OpenStruct.new
|
package = OpenStruct.new
|
||||||
package.name = pkgname
|
package.name = pkgname
|
||||||
|
|
Loading…
Reference in a new issue