summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-08-04 21:33:21 +0200
committerEugen Wissner <belka@caraus.de>2023-08-04 21:33:21 +0200
commit028f64d25a93e0430f22240024e255eec12bfb09 (patch)
tree8782148d6eedf7558b3af2c75ba8410207340ea6 /lib
parent1bc410d86d0dcdb1fcb2eab74b0ace2b6781b0ff (diff)
downloadslackbuilder-028f64d25a93e0430f22240024e255eec12bfb09.tar.gz
Move packagist check to a Haskell binary
Diffstat (limited to 'lib')
-rw-r--r--lib/up2date.rb7
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