enzyme.rb 620 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Enzyme < UrlScraper
  3. self.type = 'simple'
  4. self.release = '3.10.0'
  5. self.base_url = 'https://airbnb.io/enzyme/'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. code: 'https://github.com/airbnb/enzyme'
  9. }
  10. html_filters.push 'enzyme/entries', 'enzyme/clean_html'
  11. options[:skip] = %w(CHANGELOG.html docs/future.html docs/guides.html docs/api/ CONTRIBUTING.html)
  12. options[:attribution] = <<-HTML
  13. &copy; 2015 Airbnb, Inc.<br>
  14. Licensed under the MIT License.
  15. HTML
  16. def get_latest_version(opts)
  17. get_npm_version('enzyme', opts)
  18. end
  19. end
  20. end