bluebird.rb 703 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Bluebird < UrlScraper
  3. self.type = 'simple'
  4. self.release = '3.5.1'
  5. self.base_url = 'http://bluebirdjs.com/docs/'
  6. self.root_path = 'api-reference.html'
  7. self.force_gzip = true
  8. self.links = {
  9. home: 'http://bluebirdjs.com/',
  10. code: 'https://github.com/petkaantonov/bluebird/'
  11. }
  12. html_filters.push 'bluebird/clean_html', 'bluebird/entries'
  13. options[:skip] = %w(support.html download-api-reference.html contribute.html)
  14. options[:attribution] = <<-HTML
  15. &copy; 2013&ndash;2017 Petka Antonov<br>
  16. Licensed under the MIT License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_npm_version('bluebird', opts)
  20. end
  21. end
  22. end