summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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