codeception.rb 718 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Codeception < UrlScraper
  3. self.name = 'Codeception'
  4. self.type = 'codeception'
  5. self.release = '4.1.22'
  6. self.base_url = 'https://codeception.com/docs/'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://codeception.com/',
  10. code: 'https://github.com/Codeception/Codeception'
  11. }
  12. html_filters.push 'codeception/entries', 'codeception/clean_html'
  13. options[:skip_patterns] = [/install/]
  14. options[:attribution] = <<-HTML
  15. &copy; 2011 Michael Bodnarchuk and contributors<br>
  16. Licensed under the MIT License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_github_tags("Codeception", "Codeception", opts)[1]["name"]
  20. end
  21. end
  22. end