Browse Source

jq: get_latest_version

Simon Legner 4 years ago
parent
commit
9a8b94fad5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/docs/scrapers/jq.rb

+ 4 - 0
lib/docs/scrapers/jq.rb

@@ -19,5 +19,9 @@ module Docs
       Licensed under the <a href="https://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 license</a>
     HTML
 
+    def get_latest_version(opts)
+      get_latest_github_release('stedolan', 'jq', opts).split('-')[1]
+    end
+
   end
 end