From 0950168660fe5cd1d2d2c8fe6c069f6deec398bd Mon Sep 17 00:00:00 2001
From: icyleaf <icyleaf.cn@gmail.com>
Date: Thu, 21 Jun 2018 11:58:07 +0800
Subject: [PATCH] Update crystal documentation (0.25.0)

---
 lib/docs/filters/crystal/clean_html.rb | 2 +-
 lib/docs/filters/crystal/entries.rb    | 2 +-
 lib/docs/scrapers/crystal.rb           | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/docs/filters/crystal/clean_html.rb b/lib/docs/filters/crystal/clean_html.rb
index 3cfa0174..94f3f253 100644
--- a/lib/docs/filters/crystal/clean_html.rb
+++ b/lib/docs/filters/crystal/clean_html.rb
@@ -16,7 +16,7 @@ module Docs
       end
 
       def api
-        @doc = at_css('#main-content')
+        @doc = at_css('.main-content')
 
         at_css('h1 + p').remove if root_page?
 
diff --git a/lib/docs/filters/crystal/entries.rb b/lib/docs/filters/crystal/entries.rb
index a2449e19..3a54e3c6 100644
--- a/lib/docs/filters/crystal/entries.rb
+++ b/lib/docs/filters/crystal/entries.rb
@@ -32,7 +32,7 @@ module Docs
           if hierarchy && hierarchy.content.include?('Exception')
             'Exceptions'
           else
-            type = at_css('#types-list > ul > .current > a').content
+            type = at_css('.types-list > ul > .current > a').content
             type = 'Float' if type.start_with?('Float')
             type = 'Int' if type.start_with?('Int')
             type = 'UInt' if type.start_with?('UInt')
diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb
index 1e95e540..23629465 100644
--- a/lib/docs/scrapers/crystal.rb
+++ b/lib/docs/scrapers/crystal.rb
@@ -1,7 +1,7 @@
 module Docs
   class Crystal < UrlScraper
     self.type = 'crystal'
-    self.release = '0.24.1'
+    self.release = '0.25.0'
     self.base_url = 'https://crystal-lang.org/'
     self.root_path = "api/#{release}/index.html"
     self.initial_paths = %w(docs/index.html)
@@ -29,7 +29,7 @@ module Docs
         HTML
       else
         <<-HTML
-          &copy; 2012&ndash;2017 Manas Technology Solutions.<br>
+          &copy; 2012&ndash;2018 Manas Technology Solutions.<br>
           Licensed under the Apache License, Version 2.0.
         HTML
       end