浏览代码

Update URLs for tcl_tk and fix version check

Chris Roberts 5 月之前
父节点
当前提交
18ca208b1d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/docs/scrapers/tcl_tk.rb

+ 4 - 4
lib/docs/scrapers/tcl_tk.rb

@@ -4,10 +4,10 @@ module Docs
     self.type = 'tcl_tk'
     self.slug = 'tcl_tk'
     self.release = '8.6.6'
-    self.base_url = 'https://www.tcl.tk/man/tcl/'
+    self.base_url = 'https://www.tcl-lang.org/man/tcl/'
     self.root_path = 'contents.htm'
     self.links = {
-      home: 'https://www.tcl.tk/',
+      home: 'https://www.tcl-lang.org/',
       code: 'https://sourceforge.net/projects/tcl/files/Tcl/'
     }
 
@@ -27,11 +27,11 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      Licensed under <a href="http://tcl.tk/software/tcltk/license.html">Tcl/Tk terms</a>
+      Licensed under <a href="http://www.tcl-lang.org/software/tcltk/license.html">Tcl/Tk terms</a>
     HTML
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://www.tcl.tk/man/tcl/contents.htm', opts)
+      doc = fetch_doc('https://www.tcl-lang.org/man/tcl/', opts)
       doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]
     end
   end