History

Add tcl9.0

Chris Roberts committed 1 year ago

Commit 63a1e661 parent 18ca2081 file · +11 −3Browse files

Unified · Split

lib/docs/scrapers/tcl_tk.rb+11−3
@@ -3,9 +3,6 @@ module Docs · 2 unmodified lines
3 self.name = 'Tcl/Tk'3 self.name = 'Tcl/Tk'
4 self.type = 'tcl_tk'4 self.type = 'tcl_tk'
5 self.slug = 'tcl_tk'5 self.slug = 'tcl_tk'
6 self.release = '8.6.6'
7 self.base_url = 'https://www.tcl-lang.org/man/tcl/'
8 self.root_path = 'contents.htm'
9 self.links = {6 self.links = {
10 home: 'https://www.tcl-lang.org/',7 home: 'https://www.tcl-lang.org/',
11 code: 'https://sourceforge.net/projects/tcl/files/Tcl/'8 code: 'https://sourceforge.net/projects/tcl/files/Tcl/'
@@ -30,6 +27,17 @@ module Docs · 18 unmodified lines
30 Licensed under <a href="http://www.tcl-lang.org/software/tcltk/license.html">Tcl/Tk terms</a>27 Licensed under <a href="http://www.tcl-lang.org/software/tcltk/license.html">Tcl/Tk terms</a>
31 HTML28 HTML
32 29
30 version '8.6' do
31 self.base_url = "https://www.tcl-lang.org/man/tcl#{self.version}/"
32 self.root_path = 'contents.htm'
33 self.release = '8.6.6'
34 end
35
36 version '9.0' do
37 self.base_url = "https://www.tcl-lang.org/man/tcl#{self.version}/"
38 self.release = '9.0.2'
39 end
40
33 def get_latest_version(opts)41 def get_latest_version(opts)
34 doc = fetch_doc('https://www.tcl-lang.org/man/tcl/', opts)42 doc = fetch_doc('https://www.tcl-lang.org/man/tcl/', opts)
35 doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]43 doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]