jasmine.rb 720 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Jasmine < UrlScraper
  3. self.type = 'simple'
  4. self.release = '3.3.0'
  5. self.base_url = 'https://jasmine.github.io/api/3.2/'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. home: 'https://jasmine.github.io/',
  9. code: 'https://github.com/jasmine/jasmine'
  10. }
  11. html_filters.push 'jasmine/clean_html', 'jasmine/entries'
  12. options[:container] = '.main-content'
  13. options[:attribution] = <<-HTML
  14. &copy; 2008&ndash;2017 Pivotal Labs<br>
  15. Licensed under the MIT License.
  16. HTML
  17. def get_latest_version(options, &block)
  18. get_latest_github_release('jasmine', 'jasmine', options) do |release|
  19. block.call release['name']
  20. end
  21. end
  22. end
  23. end