[devdocsgjs/main: 935/1867] Update Crystal documentation (0.31.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 935/1867] Update Crystal documentation (0.31.0)
- Date: Fri, 19 Nov 2021 23:47:36 +0000 (UTC)
commit 84afa65bcb02171baa7b6935b1868aa05e9a9b84
Author: Oleksii Filonenko <brightone protonmail com>
Date: Tue Sep 24 15:53:25 2019 +0300
Update Crystal documentation (0.31.0)
lib/docs/scrapers/crystal.rb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb
index 92eb54e3..6c98dd4e 100644
--- a/lib/docs/scrapers/crystal.rb
+++ b/lib/docs/scrapers/crystal.rb
@@ -1,7 +1,6 @@
module Docs
class Crystal < UrlScraper
self.type = 'crystal'
- self.release = '0.30.1'
self.base_url = 'https://crystal-lang.org/'
self.root_path = "api/#{release}/index.html"
self.initial_paths = %w(docs/index.html)
@@ -35,6 +34,14 @@ module Docs
end
}
+ version '0.31' do
+ self.release = '0.31.0'
+ end
+
+ version '0.30' do
+ self.release = '0.30.1'
+ end
+
def get_latest_version(opts)
body = fetch('https://crystal-lang.org/api', opts)
body.scan(/Crystal Docs ([0-9.]+)/)[0][0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]