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
2121
2222 # Remove everything after Appendix B
2323 # 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"]').previous
24+ current_element = at_css('a[name="Appendix-C1-_002d-Grouped-Word-Lists-by-feature-and-function"]').previous
2525 until current_element.nil?
2626 next_element = current_element.next
2727 current_element.remove
lib/docs/scrapers/gnu_cobol.rb+6−4
@@ -3,15 +3,17 @@ module Docs · 2 unmodified lines
33 self.name = 'GnuCOBOL'
44 self.slug = 'gnu_cobol'
55 self.type = 'simple'
6− self.release = '2.2'
7− self.base_url = 'https://open-cobol.sourceforge.io/HTML/gnucobpg.html'
6+ self.release = '3.1'
7+ self.base_url = 'https://gnucobol.sourceforge.io/HTML/gnucobpg.html'
88 self.links = {
9− home: 'https://sourceforge.net/projects/open-cobol/',
10− code: 'https://sourceforge.net/p/open-cobol/code/HEAD/tree/trunk/'
9+ home: 'https://gnucobol.sourceforge.io/',
10+ code: 'https://sourceforge.net/p/gnucobol/code/HEAD/tree/trunk/'
1111 }
1212
1313 html_filters.push 'gnu_cobol/entries', 'gnu_cobol/clean_html'
1414
15+ options[:skip_links] = true
16+
1517 options[:attribution] = <<-HTML
1618 Copyright &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
1719 Licensed under the GNU Free Documentation License.