History

Update Gnu Cobol to 3.1

MasterEnoc committed 5 years ago

Commit 25a37931 parent 63ea6aa2 files · +7 −5Browse files

Unified · Split

2 files
  1. lib/docs/filters/gnu_cobol/clean_html.rb +1 −1
  2. lib/docs/scrapers/gnu_cobol.rb +6 −4
lib/docs/filters/gnu_cobol/clean_html.rb+1−1
@@ -21,7 +21,7 @@ module Docs · 20 unmodified lines
21 21
22 # Remove everything after Appendix B22 # Remove everything after Appendix B
23 # This includes the license text, the document changelog, the compiler changelog and the footnote23 # This includes the license text, the document changelog, the compiler changelog and the footnote
24 current_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous24 current_element = at_css('a[name="Appendix-C1-_002d-Grouped-Word-Lists-by-feature-and-function"]').previous
25 until current_element.nil?25 until current_element.nil?
26 next_element = current_element.next26 next_element = current_element.next
27 current_element.remove27 current_element.remove
lib/docs/scrapers/gnu_cobol.rb+6−4
@@ -3,15 +3,17 @@ module Docs · 2 unmodified lines
3 self.name = 'GnuCOBOL'3 self.name = 'GnuCOBOL'
4 self.slug = 'gnu_cobol'4 self.slug = 'gnu_cobol'
5 self.type = 'simple'5 self.type = 'simple'
6 self.release = '2.2'6 self.release = '3.1'
7 self.base_url = 'https://open-cobol.sourceforge.io/HTML/gnucobpg.html'7 self.base_url = 'https://gnucobol.sourceforge.io/HTML/gnucobpg.html'
8 self.links = {8 self.links = {
9 home: 'https://sourceforge.net/projects/open-cobol/',9 home: 'https://gnucobol.sourceforge.io/',
10 code: 'https://sourceforge.net/p/open-cobol/code/HEAD/tree/trunk/'10 code: 'https://sourceforge.net/p/gnucobol/code/HEAD/tree/trunk/'
11 }11 }
12 12
13 html_filters.push 'gnu_cobol/entries', 'gnu_cobol/clean_html'13 html_filters.push 'gnu_cobol/entries', 'gnu_cobol/clean_html'
14 14
15 options[:skip_links] = true
16
15 options[:attribution] = <<-HTML17 options[:attribution] = <<-HTML
16 Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>18 Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
17 Licensed under the GNU Free Documentation License.19 Licensed under the GNU Free Documentation License.