| @@ -2,7 +2,6 @@ module Docs · 1 unmodified line |
| 2 | class Perl < UrlScraper | 2 | class Perl < UrlScraper |
| 3 | self.name = 'Perl' | 3 | self.name = 'Perl' |
| 4 | self.type = 'perl' | 4 | self.type = 'perl' |
| 5 | # self.root_path = 'index.html' | | |
| 6 | self.initial_paths = ['modules.html', 'perlutil.html', 'perl.html'] | 5 | self.initial_paths = ['modules.html', 'perlutil.html', 'perl.html'] |
| 7 | self.links = { | 6 | self.links = { |
| 8 | home: 'https://www.perl.org/' | 7 | home: 'https://www.perl.org/' |
| @@ -20,11 +19,16 @@ module Docs · 11 unmodified lines |
| 20 | options[:skip_patterns] = [/\Afunctions/, /\Avariables/, /\.pdf/, /delta/] | 19 | options[:skip_patterns] = [/\Afunctions/, /\Avariables/, /\.pdf/, /delta/] |
| 21 | | 20 | |
| 22 | options[:attribution] = <<-HTML | 21 | options[:attribution] = <<-HTML |
| 23 | © 1993–2020 Larry Wall and others<br> | 22 | © 1993–2021 Larry Wall and others<br> |
| 24 | Licensed under the GNU General Public License version 1 or later, or the Artistic License.<br> | 23 | Licensed under the GNU General Public License version 1 or later, or the Artistic License.<br> |
| 25 | The Perl logo is a trademark of the Perl Foundation. | 24 | The Perl logo is a trademark of the Perl Foundation. |
| 26 | HTML | 25 | HTML |
| 27 | | 26 | |
| | 27 | version '5.34' do |
| | 28 | self.release = '5.34.0' |
| | 29 | self.base_url = "https://perldoc.perl.org/#{self.release}/" |
| | 30 | end |
| | 31 | |
| 28 | version '5.32' do | 32 | version '5.32' do |
| 29 | self.release = '5.32.0' | 33 | self.release = '5.32.0' |
| 30 | self.base_url = "https://perldoc.perl.org/#{self.release}/" | 34 | self.base_url = "https://perldoc.perl.org/#{self.release}/" |