ramda.rb 749 B

12345678910111213141516171819202122232425262728293031
  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;2024 Scott Sauyet and Michael Hurley<br>
  12. Licensed under the MIT License.
  13. HTML
  14. version '0.30' do
  15. self.release = '0.30.1'
  16. self.base_url = "https://ramdajs.com/#{release}/docs/"
  17. end
  18. version '0.29' do
  19. self.release = '0.29.1'
  20. self.base_url = "https://ramdajs.com/#{release}/docs/"
  21. end
  22. def get_latest_version(opts)
  23. get_npm_version('ramda', opts)
  24. end
  25. end
  26. end