Skip to content

Commit 18ca208

Browse files
committed
Update URLs for tcl_tk and fix version check
1 parent 8b3f552 commit 18ca208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/docs/scrapers/tcl_tk.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ class TclTk < UrlScraper
44
self.type = 'tcl_tk'
55
self.slug = 'tcl_tk'
66
self.release = '8.6.6'
7-
self.base_url = 'https://www.tcl.tk/man/tcl/'
7+
self.base_url = 'https://www.tcl-lang.org/man/tcl/'
88
self.root_path = 'contents.htm'
99
self.links = {
10-
home: 'https://www.tcl.tk/',
10+
home: 'https://www.tcl-lang.org/',
1111
code: 'https://sourceforge.net/projects/tcl/files/Tcl/'
1212
}
1313

@@ -27,11 +27,11 @@ class TclTk < UrlScraper
2727
]
2828

2929
options[:attribution] = <<-HTML
30-
Licensed under <a href="http://tcl.tk/software/tcltk/license.html">Tcl/Tk terms</a>
30+
Licensed under <a href="http://www.tcl-lang.org/software/tcltk/license.html">Tcl/Tk terms</a>
3131
HTML
3232

3333
def get_latest_version(opts)
34-
doc = fetch_doc('https://www.tcl.tk/man/tcl/contents.htm', opts)
34+
doc = fetch_doc('https://www.tcl-lang.org/man/tcl/', opts)
3535
doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]
3636
end
3737
end

0 commit comments

Comments
 (0)