From 028f64d25a93e0430f22240024e255eec12bfb09 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 4 Aug 2023 21:33:21 +0200 Subject: Move packagist check to a Haskell binary --- lib/up2date.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/up2date.rb b/lib/up2date.rb index 3387941..322cb9c 100644 --- a/lib/up2date.rb +++ b/lib/up2date.rb @@ -77,12 +77,7 @@ module SlackBuilder end def latest - full_name = [@vendor, @name].join '/' - uri = URI "https://repo.packagist.org/p2/#{full_name}.json" - response = Net::HTTP.get uri, { - 'content-type' => 'application/json' - } - JSON.parse(response)['packages'][full_name].first['version'] + `./bin/slackbuilder #{@vendor} #{@name}`.strip end end -- cgit v1.2.3