|
|
@ -14,7 +14,7 @@ module Docs
|
|
|
|
options[:container] = '.content .container'
|
|
|
|
options[:container] = '.content .container'
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2010–2021 Christian Johansen<br>
|
|
|
|
© 2010–2022 Christian Johansen<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
@ -27,59 +27,29 @@ module Docs
|
|
|
|
url
|
|
|
|
url
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
version '11' do
|
|
|
|
RELEASE_MAPPINGS = {
|
|
|
|
self.release = '11.1.2'
|
|
|
|
'15' => '15.0.1',
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
'14' => '14.0.2',
|
|
|
|
end
|
|
|
|
'13' => '13.0.1',
|
|
|
|
|
|
|
|
'12' => '12.0.1',
|
|
|
|
version '10' do
|
|
|
|
'11' => '11.1.2',
|
|
|
|
self.release = '10.0.1'
|
|
|
|
'10' => '10.0.1',
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
'9' => '9.2.2.',
|
|
|
|
end
|
|
|
|
'8' => '8.1.1',
|
|
|
|
|
|
|
|
'7' => '7.5.0',
|
|
|
|
version '9' do
|
|
|
|
'6' => '6.3.5',
|
|
|
|
self.release = '9.2.2'
|
|
|
|
'5' => '5.1.0',
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
'4' => '4.5.0',
|
|
|
|
end
|
|
|
|
'3' => '3.3.0',
|
|
|
|
|
|
|
|
'2' => '2.4.1',
|
|
|
|
version '8' do
|
|
|
|
'1' => '1.17.7'
|
|
|
|
self.release = '8.1.1'
|
|
|
|
}
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '7' do
|
|
|
|
|
|
|
|
self.release = '7.5.0'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '6' do
|
|
|
|
|
|
|
|
self.release = '6.3.5'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '5' do
|
|
|
|
|
|
|
|
self.release = '5.1.0'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '4' do
|
|
|
|
|
|
|
|
self.release = '4.5.0'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '3' do
|
|
|
|
|
|
|
|
self.release = '3.3.0'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '2' do
|
|
|
|
RELEASE_MAPPINGS.each do |ver, release|
|
|
|
|
self.release = '2.4.1'
|
|
|
|
version ver do
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
self.release = release
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{ver}/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
version '1' do
|
|
|
|
|
|
|
|
self.release = '1.17.7'
|
|
|
|
|
|
|
|
self.base_url = "https://sinonjs.org/releases/v#{release}/"
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
def get_latest_version(opts)
|
|
|
|