History

Fix Bootstrap scraper get_latest_version

Phil Scherer committed 5 years ago

Commit 429f9e71 parent 23a00041 file · +2 −2Browse files

Unified · Split

lib/docs/scrapers/bootstrap.rb+2−2
@@ -37,8 +37,8 @@ module Docs · 36 unmodified lines
3737 end
3838
3939 def get_latest_version(opts)
40− doc = fetch_doc('https://getbootstrap.com/', opts)
41− doc.at_css('#bd-versions').content.strip[1..-1]
40+ doc = fetch_doc('https://getbootstrap.com/docs/versions/', opts)
41+ doc.at_css('span:contains("Latest")').parent.content.split(' ').first
4242 end
4343 end
4444 end