Browse Source

(ramda) $ specify the only 2 versions that make sense

Alex Bepple 5 months ago
parent
commit
d413aab015
1 changed files with 10 additions and 2 deletions
  1. 10 2
      lib/docs/scrapers/ramda.rb

+ 10 - 2
lib/docs/scrapers/ramda.rb

@@ -1,8 +1,6 @@
 module Docs
   class Ramda < UrlScraper
     self.type = 'ramda'
-    self.release = '0.29.0'
-    self.base_url = "https://ramdajs.com/#{release}/docs/"
     self.links = {
       home: 'http://ramdajs.com/',
       code: 'https://github.com/ramda/ramda/'
@@ -16,6 +14,16 @@ module Docs
       Licensed under the MIT License.
     HTML
 
+    version '0.30' do
+      self.release = '0.30.1'
+      self.base_url = "https://ramdajs.com/#{release}/docs/"
+    end
+
+    version '0.29' do
+      self.release = '0.29.1'
+      self.base_url = "https://ramdajs.com/#{release}/docs/"
+    end
+
     def get_latest_version(opts)
       get_npm_version('ramda', opts)
     end