[devdocsgjs/main: 1050/1867] Update haxe.rb




commit e75655ac086c2f1c9dd9d05dc6c7b81ba45e5748
Author: Mark Knol <mark knol gmail com>
Date:   Thu Feb 20 11:41:43 2020 +0100

    Update haxe.rb

 lib/docs/scrapers/haxe.rb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/scrapers/haxe.rb b/lib/docs/scrapers/haxe.rb
index 2dbab01a..892085be 100644
--- a/lib/docs/scrapers/haxe.rb
+++ b/lib/docs/scrapers/haxe.rb
@@ -2,7 +2,7 @@ module Docs
   class Haxe < UrlScraper
     self.name = 'Haxe'
     self.type = 'simple'
-    self.release = '3.4.7'
+    self.release = '4.0.5'
     self.base_url = 'https://api.haxe.org/'
 
     html_filters.push 'haxe/clean_html', 'haxe/entries'
@@ -10,7 +10,7 @@ module Docs
     options[:container] = '.span9'
 
     options[:attribution] = <<-HTML
-      &copy; 2005&ndash;2018 Haxe Foundation<br>
+      &copy; 2005&ndash;2020 Haxe Foundation<br>
       Licensed under a MIT license.
     HTML
 
@@ -20,7 +20,7 @@ module Docs
         code: 'https://github.com/HaxeFoundation/haxe'
       }
 
-      options[:skip_patterns] = [/\A(?:cpp|cs|flash|java|js|neko|php|python|lua|hl|sys)/i]
+      options[:skip_patterns] = [/\A(?:cpp|cs|flash|java|js|neko|php|python|lua|hl|sys|eval)/i]
     end
 
     version 'C++' do
@@ -67,6 +67,10 @@ module Docs
       self.base_url = 'https://api.haxe.org/python/'
     end
 
+    version 'Eval' do
+      self.base_url = 'https://api.haxe.org/eval/'
+    end
+
     def get_latest_version(opts)
       doc = fetch_doc('https://api.haxe.org/', opts)
       label = doc.at_css('.container.main-content h1 > small').content


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]