You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/jasmine.rb

28 lines
720 B

module Docs
class Jasmine < UrlScraper
self.type = 'simple'
self.release = '3.3.0'
self.base_url = 'https://jasmine.github.io/api/3.2/'
self.root_path = 'index.html'
self.links = {
home: 'https://jasmine.github.io/',
code: 'https://github.com/jasmine/jasmine'
}
html_filters.push 'jasmine/clean_html', 'jasmine/entries'
options[:container] = '.main-content'
options[:attribution] = <<-HTML
&copy; 2008&ndash;2017 Pivotal Labs<br>
Licensed under the MIT License.
HTML
def get_latest_version(options, &block)
get_latest_github_release('jasmine', 'jasmine', options) do |release|
block.call release['name']
end
end
end
end