[devdocsgjs/main: 1674/1867] jq: get_latest_version




commit 9a8b94fad5f13275b0f6e3e26af5bbd649981ff0
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed May 26 21:27:50 2021 +0200

    jq: get_latest_version

 lib/docs/scrapers/jq.rb | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/lib/docs/scrapers/jq.rb b/lib/docs/scrapers/jq.rb
index 3a64d59e..4a733505 100644
--- a/lib/docs/scrapers/jq.rb
+++ b/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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]