Merge pull request #1412 from scherepn/bootstrap-fix

Fix Bootstrap scraper get_latest_version
pull/1420/head
Simon Legner 4 years ago committed by GitHub
commit 0961912a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,8 +37,8 @@ module Docs
end
def get_latest_version(opts)
doc = fetch_doc('https://getbootstrap.com/', opts)
doc.at_css('#bd-versions').content.strip[1..-1]
doc = fetch_doc('https://getbootstrap.com/docs/versions/', opts)
doc.at_css('span:contains("Latest")').parent.content.split(' ').first
end
end
end

Loading…
Cancel
Save