mocha.rb 690 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Mocha < UrlScraper
  3. self.type = 'simple'
  4. self.release = '8.3.2'
  5. self.base_url = 'https://mochajs.org/'
  6. self.links = {
  7. home: 'https://mochajs.org/',
  8. code: 'https://github.com/mochajs/mocha'
  9. }
  10. html_filters.push 'mocha/clean_html', 'mocha/entries', 'title'
  11. options[:container] = '#content'
  12. options[:title] = 'mocha'
  13. options[:skip_links] = true
  14. options[:attribution] = <<-HTML
  15. &copy; 2011&ndash;2021 JS Foundation and contributors<br>
  16. Licensed under the Creative Commons Attribution 4.0 International License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_npm_version('mocha', opts)
  20. end
  21. end
  22. end