|
|
@@ -1,8 +1,6 @@
|
|
|
module Docs
|
|
|
class Ramda < UrlScraper
|
|
|
self.type = 'ramda'
|
|
|
- self.release = '0.27.0'
|
|
|
- self.base_url = "https://ramdajs.com/#{release}/docs/"
|
|
|
self.links = {
|
|
|
home: 'http://ramdajs.com/',
|
|
|
code: 'https://github.com/ramda/ramda/'
|
|
|
@@ -12,13 +10,17 @@ module Docs
|
|
|
|
|
|
options[:title] = 'Ramda'
|
|
|
options[:attribution] = <<-HTML
|
|
|
- © 2013–2020 Scott Sauyet and Michael Hurley<br>
|
|
|
+ © 2013–2025 Scott Sauyet and Michael Hurley<br>
|
|
|
Licensed under the MIT License.
|
|
|
HTML
|
|
|
|
|
|
+ version do
|
|
|
+ self.release = '0.31.3'
|
|
|
+ self.base_url = "https://ramdajs.com/#{release}/docs/"
|
|
|
+ end
|
|
|
+
|
|
|
def get_latest_version(opts)
|
|
|
- doc = fetch_doc('https://ramdajs.com/docs/', opts)
|
|
|
- doc.at_css('.navbar-brand > .version').content[1..-1]
|
|
|
+ get_npm_version('ramda', opts)
|
|
|
end
|
|
|
end
|
|
|
end
|