Skip to content

Commit c4c45f7

Browse files
authored
Fix Ramda scraper (#999)
Fix Ramda scraper Co-authored-by: Jasper van Merle <[email protected]>
2 parents 8ff4ace + b38e396 commit c4c45f7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/docs/filters/ramda/clean_html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def call
1111
css('.card').each do |card|
1212
title = card.at_css('h2')
1313
added_in = card.at_css('small')
14-
added_in.parent = title
14+
added_in.parent = title if added_in.present?
1515
end
1616

1717
css('.params').each do |node|

lib/docs/scrapers/ramda.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Docs
22
class Ramda < UrlScraper
33
self.type = 'ramda'
4-
self.release = '0.25.0'
5-
self.base_url = "http://ramdajs.com/#{release}/docs/"
4+
self.release = '0.26.1'
5+
self.base_url = "https://ramdajs.com/#{release}/docs/"
66
self.links = {
77
home: 'http://ramdajs.com/',
88
code: 'https://github.com/ramda/ramda/'
@@ -22,4 +22,3 @@ def get_latest_version(opts)
2222
end
2323
end
2424
end
25-

0 commit comments

Comments
 (0)