diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-08-04 21:33:21 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-08-04 21:33:21 +0200 |
| commit | 028f64d25a93e0430f22240024e255eec12bfb09 (patch) | |
| tree | 8782148d6eedf7558b3af2c75ba8410207340ea6 /lib | |
| parent | 1bc410d86d0dcdb1fcb2eab74b0ace2b6781b0ff (diff) | |
| download | slackbuilder-028f64d25a93e0430f22240024e255eec12bfb09.tar.gz | |
Move packagist check to a Haskell binary
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/up2date.rb | 7 |
1 files changed, 1 insertions, 6 deletions
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 |
