1
0

bluebird.rb 676 B

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