1
0

gnuplot.rb 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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('http://www.gnuplot.info/download.html', opts)
  36. label = doc.at_css('h2').content.strip
  37. label.sub(/[^0-9.]*/, '')
  38. end
  39. end
  40. end