2015-11-26 02:55:53 +01:00
|
|
|
module Docs
|
2017-01-16 00:35:17 +01:00
|
|
|
class Cakephp < UrlScraper
|
2015-11-26 02:55:53 +01:00
|
|
|
self.name = 'CakePHP'
|
|
|
|
self.type = 'cakephp'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
2017-01-16 00:35:17 +01:00
|
|
|
home: 'https://cakephp.org/',
|
2015-11-26 02:55:53 +01:00
|
|
|
code: 'https://github.com/cakephp/cakephp'
|
|
|
|
}
|
|
|
|
|
2020-11-15 22:32:18 +01:00
|
|
|
options[:skip_patterns] = [/\Asource-/, /\Anamespace-Cake.html/]
|
2015-11-26 02:55:53 +01:00
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
2019-09-03 01:48:22 +02:00
|
|
|
© 2005–present The Cake Software Foundation, Inc.<br>
|
2016-02-14 18:50:38 +01:00
|
|
|
Licensed under the MIT License.<br>
|
|
|
|
CakePHP is a registered trademark of Cake Software Foundation, Inc.<br>
|
|
|
|
We are not endorsed by or affiliated with CakePHP.
|
2015-11-26 02:55:53 +01:00
|
|
|
HTML
|
2016-02-14 18:50:38 +01:00
|
|
|
|
2022-10-08 20:40:17 +02:00
|
|
|
version '4.4' do
|
|
|
|
self.release = '4.4.6'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '4.3' do
|
|
|
|
self.release = '4.3.10'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '4.2' do
|
|
|
|
self.release = '4.2.10'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
2020-11-15 10:29:35 +01:00
|
|
|
version '4.1' do
|
|
|
|
self.release = '4.1.6'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '4.0' do
|
|
|
|
self.release = '4.0.8'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '3.9' do
|
|
|
|
self.release = '3.9.4'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
|
|
|
|
|
|
|
|
options[:container] = '.page-container'
|
|
|
|
end
|
|
|
|
|
2019-09-03 01:48:22 +02:00
|
|
|
version '3.8' do
|
|
|
|
self.release = '3.8.3'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2019-09-03 01:48:22 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
version '3.7' do
|
|
|
|
self.release = '3.7.9'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2019-09-03 01:48:22 +02:00
|
|
|
end
|
|
|
|
|
2018-04-28 15:55:28 +02:00
|
|
|
version '3.6' do
|
2019-09-03 01:48:22 +02:00
|
|
|
self.release = '3.6.15'
|
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2018-04-28 15:55:28 +02:00
|
|
|
end
|
|
|
|
|
2017-08-26 16:39:57 +02:00
|
|
|
version '3.5' do
|
2018-04-28 15:55:28 +02:00
|
|
|
self.release = '3.5.15'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2017-08-26 16:39:57 +02:00
|
|
|
end
|
|
|
|
|
2017-02-18 14:49:46 +01:00
|
|
|
version '3.4' do
|
2017-08-26 16:39:57 +02:00
|
|
|
self.release = '3.4.13'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2017-02-18 14:49:46 +01:00
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '3.3' do
|
2017-02-18 14:49:46 +01:00
|
|
|
self.release = '3.3.15'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2016-08-21 23:39:43 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
version '3.2' do
|
2016-09-17 17:20:47 +02:00
|
|
|
self.release = '3.2.14'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2016-02-14 18:50:38 +01:00
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '3.1' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '3.1.13'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2017-01-16 00:35:17 +01:00
|
|
|
end
|
|
|
|
|
2017-08-26 16:39:57 +02:00
|
|
|
version '2.10' do
|
2017-09-24 19:29:35 +02:00
|
|
|
self.release = '2.10.3'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2017-08-26 16:39:57 +02:00
|
|
|
end
|
|
|
|
|
2017-01-16 00:35:17 +01:00
|
|
|
version '2.9' do
|
|
|
|
self.release = '2.9.4'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2016-02-14 18:50:38 +01:00
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '2.8' do
|
2016-09-17 17:20:47 +02:00
|
|
|
self.release = '2.8.8'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2016-02-14 18:50:38 +01:00
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '2.7' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '2.7.11'
|
2019-09-03 01:48:22 +02:00
|
|
|
self.base_url = "https://api.cakephp.org/#{self.version}/"
|
2020-11-15 10:29:35 +01:00
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
|
|
|
options[:container] = '#right'
|
2016-02-14 18:50:38 +01:00
|
|
|
end
|
2016-08-21 23:39:43 +02:00
|
|
|
|
2019-03-10 03:02:24 +01:00
|
|
|
def get_latest_version(opts)
|
2022-10-08 20:40:17 +02:00
|
|
|
get_latest_github_release('cakephp', 'cakephp', opts)
|
2019-03-09 02:36:05 +01:00
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
private
|
|
|
|
|
2017-02-18 16:33:02 +01:00
|
|
|
def parse(response)
|
|
|
|
response.body.gsub! '<h5 class="method-name">', '<h3 class="method-name">'
|
2016-08-21 23:39:43 +02:00
|
|
|
super
|
|
|
|
end
|
2015-11-26 02:55:53 +01:00
|
|
|
end
|
|
|
|
end
|