From 30554f85d3e90e323077977d34bd3e8ebefbeabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz> Date: Tue, 21 Feb 2017 07:48:39 +0100 Subject: [PATCH] Make sure to get the proper project at upstream --- scripts/check_version.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/check_version.rb b/scripts/check_version.rb index 26fd13730..8071e0eb1 100644 --- a/scripts/check_version.rb +++ b/scripts/check_version.rb @@ -2,10 +2,12 @@ require 'faraday' require 'json' #print ARGV[0].downcase +puts "Checking the ver for #{ARGV[0]}" response = Faraday.get "https://release-monitoring.org/api/projects/?pattern=#{ARGV[0].downcase}" -fedora = JSON.parse( response.body )['projects'][0]['version'] +fedora_j = JSON.parse( response.body )['projects'] +fedora = fedora_j.select { |h| h['name'] == ARGV[0].downcase }.first['version'] response = Faraday.get "https://docs.it4i.cz/devel/52-module-matrix-json-export/modules-matrix.json" -- GitLab