|
|
@ -2,7 +2,7 @@ module Docs
|
|
|
|
class Crystal < UrlScraper
|
|
|
|
class Crystal < UrlScraper
|
|
|
|
include MultipleBaseUrls
|
|
|
|
include MultipleBaseUrls
|
|
|
|
self.type = 'crystal'
|
|
|
|
self.type = 'crystal'
|
|
|
|
self.release = '1.14.0'
|
|
|
|
self.release = '1.15.0'
|
|
|
|
self.base_urls = [
|
|
|
|
self.base_urls = [
|
|
|
|
"https://crystal-lang.org/api/#{release}/",
|
|
|
|
"https://crystal-lang.org/api/#{release}/",
|
|
|
|
"https://crystal-lang.org/reference/#{release[0..2]}/",
|
|
|
|
"https://crystal-lang.org/reference/#{release[0..2]}/",
|
|
|
@ -21,6 +21,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
%r{\ACrystal/System/},
|
|
|
|
%r{\ACrystal/System/},
|
|
|
|
|
|
|
|
%r{\ACrystal/PointerPairingHeap/},
|
|
|
|
%r{\AIO/Evented.html\z},
|
|
|
|
%r{\AIO/Evented.html\z},
|
|
|
|
%r{\ARegex/PCRE2.html\z}
|
|
|
|
%r{\ARegex/PCRE2.html\z}
|
|
|
|
]
|
|
|
|
]
|
|
|
@ -34,7 +35,7 @@ module Docs
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
else
|
|
|
|
else
|
|
|
|
<<-HTML
|
|
|
|
<<-HTML
|
|
|
|
© 2012–2024 Manas Technology Solutions.<br>
|
|
|
|
© 2012–2025 Manas Technology Solutions.<br>
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|
|
|
|