gnuplot.rb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. module Docs
  2. class Gnuplot < FileScraper
  3. self.type = 'gnuplot'
  4. self.release = '5.2.8'
  5. self.links = {
  6. home: 'http://gnuplot.sourceforge.net/'
  7. }
  8. self.root_path = 'nofigures.html'
  9. html_filters.push 'gnuplot/entries', 'gnuplot/clean_html'
  10. options[:skip_links] = false
  11. options[:skip] = %w(
  12. Copyright.html
  13. External_libraries.html
  14. Known_limitations.html
  15. Introduction.html
  16. About_this_document.html
  17. New_features.html
  18. Differences_from_version_4.html
  19. Seeking_assistance.html
  20. Gnuplot.html
  21. Deprecated_syntax.html
  22. Demos_Online_Examples.html
  23. Terminal_types.html
  24. Plotting_styles.html
  25. Commands.html
  26. Contents.html
  27. Bugs.html
  28. Index.html
  29. )
  30. options[:attribution] = <<-HTML
  31. Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley<br>
  32. Distributed under the <a href="https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright">gnuplot license</a> (rights to distribute modified versions are withheld).
  33. HTML
  34. def get_latest_version(opts)
  35. doc = fetch_doc('https://sourceforge.net/projects/gnuplot/files/gnuplot/', opts)
  36. doc.at_css('#files_list > tbody > tr:nth-child(2)')['title']
  37. end
  38. end
  39. end