mirror of https://github.com/freeCodeCamp/devdocs
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.
42 lines
997 B
42 lines
997 B
module Docs
|
|
class Sinon < UrlScraper
|
|
self.name = 'Sinon.JS'
|
|
self.slug = 'sinon'
|
|
self.type = 'sinon'
|
|
self.links = {
|
|
home: 'http://sinonjs.org/',
|
|
code: 'https://github.com/sinonjs/sinon'
|
|
}
|
|
|
|
html_filters.push 'sinon/clean_html', 'sinon/entries'
|
|
|
|
options[:title] = 'Sinon.JS'
|
|
options[:container] = '.content .container'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2010–2018 Christian Johansen<br>
|
|
Licensed under the BSD License.
|
|
HTML
|
|
|
|
version '4' do
|
|
self.release = '4.4.2'
|
|
self.base_url = "http://sinonjs.org/releases/v#{release}/"
|
|
end
|
|
|
|
version '3' do
|
|
self.release = '3.3.0'
|
|
self.base_url = "http://sinonjs.org/releases/v#{release}/"
|
|
end
|
|
|
|
version '2' do
|
|
self.release = '2.4.1'
|
|
self.base_url = "http://sinonjs.org/releases/v#{release}/"
|
|
end
|
|
|
|
version '1' do
|
|
self.release = '1.17.7'
|
|
self.base_url = "http://sinonjs.org/releases/v#{release}/"
|
|
end
|
|
end
|
|
end
|