Unified · Split
| @@ -1,8 +1,6 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Ramda < UrlScraper | 2 | class Ramda < UrlScraper |
| 3 | self.type = 'ramda' | 3 | self.type = 'ramda' |
| 4 | self.release = '0.29.0' | ||
| 5 | self.base_url = "https://ramdajs.com/#{release}/docs/" | ||
| 6 | self.links = { | 4 | self.links = { |
| 7 | home: 'http://ramdajs.com/', | 5 | home: 'http://ramdajs.com/', |
| 8 | code: 'https://github.com/ramda/ramda/' | 6 | code: 'https://github.com/ramda/ramda/' |
| @@ -16,6 +14,16 @@ module Docs · 7 unmodified lines | |||
| 16 | Licensed under the MIT License. | 14 | Licensed under the MIT License. |
| 17 | HTML | 15 | HTML |
| 18 | 16 | ||
| 17 | version '0.30' do | ||
| 18 | self.release = '0.30.1' | ||
| 19 | self.base_url = "https://ramdajs.com/#{release}/docs/" | ||
| 20 | end | ||
| 21 | |||
| 22 | version '0.29' do | ||
| 23 | self.release = '0.29.1' | ||
| 24 | self.base_url = "https://ramdajs.com/#{release}/docs/" | ||
| 25 | end | ||
| 26 | |||
| 19 | def get_latest_version(opts) | 27 | def get_latest_version(opts) |
| 20 | get_npm_version('ramda', opts) | 28 | get_npm_version('ramda', opts) |
| 21 | end | 29 | end |