async.rb 700 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Async < UrlScraper
  3. self.type = 'async'
  4. self.release = '2.6.1'
  5. self.base_url = 'https://caolan.github.io/async/'
  6. self.root_path = 'docs.html'
  7. self.links = {
  8. home: 'https://caolan.github.io/async/',
  9. code: 'https://github.com/caolan/async'
  10. }
  11. html_filters.push 'async/entries', 'async/clean_html'
  12. options[:skip_links] = true
  13. options[:attribution] = <<-HTML
  14. &copy; 2010&ndash;2018 Caolan McMahon<br>
  15. Licensed under the MIT License.
  16. HTML
  17. def get_latest_version(opts)
  18. doc = fetch_doc('https://caolan.github.io/async/v3/', opts)
  19. doc.at_css('#version-dropdown > a').content.strip[1..-1]
  20. end
  21. end
  22. end