From 5362c9110e36e7a117f97b6a9cd4fd2f0907ae2b Mon Sep 17 00:00:00 2001 From: dkhamsing Date: Thu, 12 May 2016 07:35:44 -0700 Subject: [PATCH] [script] create inspect [ci skip] --- .github/inspect.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/inspect.rb diff --git a/.github/inspect.rb b/.github/inspect.rb new file mode 100644 index 00000000..12f783d5 --- /dev/null +++ b/.github/inspect.rb @@ -0,0 +1,15 @@ +require 'json' +require 'pp' + +if ARGV.count == 0 + puts "Usage: ruby inspect.rb " + exit +end + +c = File.read 'contents.json' +j = JSON.parse c + +projects = j['projects'] + +proj = ARGV[0].to_i +pp projects[proj]