History

Update Crystal documentation (0.31.0)

Oleksii Filonenko committed 7 years ago

Commit 84afa651 parent eda3a7f1 file · +8 −1Browse files

Unified · Split

lib/docs/scrapers/crystal.rb+8−1
@@ -1,7 +1,6 @@
11 module Docs
22 class Crystal < UrlScraper
33 self.type = 'crystal'
4− self.release = '0.30.1'
54 self.base_url = 'https://crystal-lang.org/'
65 self.root_path = "api/#{release}/index.html"
76 self.initial_paths = %w(docs/index.html)
@@ -35,6 +34,14 @@ module Docs · 27 unmodified lines
3534 end
3635 }
3736
37+ version '0.31' do
38+ self.release = '0.31.0'
39+ end
40+
41+ version '0.30' do
42+ self.release = '0.30.1'
43+ end
44+
3845 def get_latest_version(opts)
3946 body = fetch('https://crystal-lang.org/api', opts)
4047 body.scan(/Crystal Docs ([0-9.]+)/)[0][0]