From 25591fad6d09d39b6ba6ee16ba6a0dcc3c5a7bc2 Mon Sep 17 00:00:00 2001 From: hahwul Date: Mon, 15 Aug 2022 22:35:02 +0900 Subject: [PATCH] y --- scripts/migration.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/migration.rb b/scripts/migration.rb index 850b47d..fbc3b6a 100644 --- a/scripts/migration.rb +++ b/scripts/migration.rb @@ -5,17 +5,16 @@ data_hash = JSON.parse(file) data_hash.each do | name, obj | puts "filename: "+name+".yaml" - puts obj['Description'] # Make object obj = {} obj['name'] = name obj['description'] = obj['Description'] obj['url'] = '' # parse DATA - obj['categories'] = [] + obj['category'] = 'tool' obj['types'] = [] obj['lang'] = [] # parse DATA obj['tags'] = [] - + # Save file end \ No newline at end of file