Explorar el Código

crystal: provide only latest release 0.35.1

Simon Legner hace 5 años
padre
commit
4288fe5104

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -203,7 +203,7 @@ credits = [
     'https://creativecommons.org/licenses/by-sa/2.5/'
   ], [
     'Crystal',
-    '2012-2019 Manas Technology Solutions',
+    '2012-2020 Manas Technology Solutions',
     'Apache',
     'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
   ], [

+ 1 - 1
lib/docs/filters/crystal/entries.rb

@@ -14,7 +14,7 @@ module Docs
 
           name
         else
-          name = at_css('h1').children.last.content.strip
+          name = at_css('.type-name').children.last.content.strip
           name.remove! %r{\(.*\)}
           name
         end

+ 3 - 16
lib/docs/scrapers/crystal.rb

@@ -19,27 +19,14 @@ module Docs
         HTML
       else
         <<-HTML
-          &copy; 2012&ndash;2019 Manas Technology Solutions.<br>
+          &copy; 2012&ndash;2020 Manas Technology Solutions.<br>
           Licensed under the Apache License, Version 2.0.
         HTML
       end
     }
 
-    version '0.34' do
-      self.release = '0.34.0'
-      self.root_path = "api/#{release}/index.html"
-
-      options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]
-      options[:skip_patterns] = [/debug/i]
-
-      options[:replace_paths] = {
-        "api/#{release}/" => "api/#{release}/index.html",
-        'docs/' => 'docs/index.html'
-      }
-    end
-
-    version '0.33' do
-      self.release = '0.33.0'
+    version do
+      self.release = '0.35.1'
       self.root_path = "api/#{release}/index.html"
 
       options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]