ramda.rb 620 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Ramda < UrlScraper
  3. self.type = 'ramda'
  4. self.links = {
  5. home: 'http://ramdajs.com/',
  6. code: 'https://github.com/ramda/ramda/'
  7. }
  8. html_filters.push 'ramda/entries', 'ramda/clean_html', 'title'
  9. options[:title] = 'Ramda'
  10. options[:attribution] = <<-HTML
  11. &copy; 2013&ndash;2025 Scott Sauyet and Michael Hurley<br>
  12. Licensed under the MIT License.
  13. HTML
  14. version do
  15. self.release = '0.31.3'
  16. self.base_url = "https://ramdajs.com/#{release}/docs/"
  17. end
  18. def get_latest_version(opts)
  19. get_npm_version('ramda', opts)
  20. end
  21. end
  22. end