Skip to content

Commit 0a4ef6a

Browse files
committed
Update Crystal documentation (1.0.0)
1 parent 40fa61e commit 0a4ef6a

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ credits = [
208208
'https://creativecommons.org/licenses/by-sa/2.5/'
209209
], [
210210
'Crystal',
211-
'2012-2020 Manas Technology Solutions',
211+
'2012-2021 Manas Technology Solutions',
212212
'Apache',
213213
'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
214214
], [

lib/docs/scrapers/crystal.rb

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,22 @@ class Crystal < UrlScraper
1919
HTML
2020
else
2121
<<-HTML
22-
&copy; 2012&ndash;2020 Manas Technology Solutions.<br>
22+
&copy; 2012&ndash;2021 Manas Technology Solutions.<br>
2323
Licensed under the Apache License, Version 2.0.
2424
HTML
2525
end
2626
}
2727

28-
version do
29-
self.release = '0.36.1'
30-
self.root_path = "api/#{release}/index.html"
28+
self.release = '1.0.0'
29+
self.root_path = "api/#{release}/index.html"
3130

32-
options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
33-
options[:skip_patterns] = [/debug/i]
31+
options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
32+
options[:skip_patterns] = [/debug/i]
3433

35-
options[:replace_paths] = {
36-
"api/#{release}/" => "api/#{release}/index.html",
37-
'reference/' => 'reference/index.html'
38-
}
39-
end
34+
options[:replace_paths] = {
35+
"api/#{release}/" => "api/#{release}/index.html",
36+
'reference/' => 'reference/index.html'
37+
}
4038

4139
def get_latest_version(opts)
4240
doc = fetch_doc('https://crystal-lang.org/', opts)

0 commit comments

Comments
 (0)