Unified · Split
| @@ -42,6 +42,8 @@ module Docs · 41 unmodified lines | |||
| 42 | node.parent.content = node.parent.content | 42 | node.parent.content = node.parent.content |
| 43 | end | 43 | end |
| 44 | 44 | ||
| 45 | css('.alert-warning').remove | ||
| 46 | |||
| 45 | doc | 47 | doc |
| 46 | end | 48 | end |
| 47 | end | 49 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Codeception < UrlScraper | 2 | class Codeception < UrlScraper |
| 3 | self.name = 'Codeception' | 3 | self.name = 'Codeception' |
| 4 | self.type = 'codeception' | 4 | self.type = 'codeception' |
| 5 | self.release = '4.1.12' | 5 | self.release = '4.1.22' |
| 6 | self.base_url = 'https://codeception.com/docs/' | 6 | self.base_url = 'https://codeception.com/docs/' |
| 7 | self.root_path = 'index.html' | 7 | self.root_path = 'index.html' |
| 8 | self.links = { | 8 | self.links = { |
| @@ -20,8 +20,7 @@ module Docs · 11 unmodified lines | |||
| 20 | HTML | 20 | HTML |
| 21 | 21 | ||
| 22 | def get_latest_version(opts) | 22 | def get_latest_version(opts) |
| 23 | doc = fetch_doc('https://codeception.com/changelog', opts) | 23 | get_github_tags("Codeception", "Codeception", opts)[1]["name"] |
| 24 | doc.at_css('#page > h4').content | ||
| 25 | end | 24 | end |
| 26 | end | 25 | end |
| 27 | end | 26 | end |