Newer
Older
require 'faraday'
require 'json'
#print ARGV[0].downcase
response = Faraday.get "https://release-monitoring.org/api/projects/?pattern=#{ARGV[0].downcase}"
fedora = JSON.parse( response.body )['projects'][0]['version']
response = Faraday.get "https://docs.it4i.cz/devel/52-module-matrix-json-export/modules-matrix.json"
it4i = JSON.parse( response.body )['projects'][ARGV[0]]
it4i_short = it4i.split('-')[0]
puts "IT4Innovations: #{it4i_short} (#{it4i})"
puts "Upstream : #{fedora}"