summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-08-06 14:25:19 +0200
committerEugen Wissner <belka@caraus.de>2023-08-06 14:25:19 +0200
commit69ba04a7314aa5750a5fedbb9533cf775486870f (patch)
tree2d9f88b4020b8e3136494074dceb5e48c9828591 /lib
parent028f64d25a93e0430f22240024e255eec12bfb09 (diff)
downloadslackbuilder-69ba04a7314aa5750a5fedbb9533cf775486870f.tar.gz
Move text URL check to the Haskell binary
Diffstat (limited to 'lib')
-rw-r--r--lib/up2date.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/up2date.rb b/lib/up2date.rb
index 322cb9c..06e46e3 100644
--- a/lib/up2date.rb
+++ b/lib/up2date.rb
@@ -77,7 +77,7 @@ module SlackBuilder
end
def latest
- `./bin/slackbuilder #{@vendor} #{@name}`.strip
+ `./bin/slackbuilder packagist #{@vendor} #{@name}`.strip
end
end
@@ -86,14 +86,11 @@ module SlackBuilder
def initialize(latest_url)
super()
- @latest_url = URI latest_url
+ @latest_url = latest_url
end
def latest
- response = Net::HTTP.get @latest_url, {
- 'content-type' => 'text/plain'
- }
- response.strip
+ `./bin/slackbuilder text #{@latest_url}`.strip
end
end