[devdocsgjs/main: 847/1867] jest: finish update




commit b1ab6743f52fbac7d93d82e6daf97ab50682ffca
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Tue Aug 20 14:14:15 2019 +0200

    jest: finish update

 assets/javascripts/templates/pages/about_tmpl.coffee |  4 ++--
 lib/docs/filters/jest/entries.rb                     | 14 +++++++++++---
 lib/docs/scrapers/jest.rb                            |  8 ++++----
 3 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 5e9dc6cc..7e655337 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -354,8 +354,8 @@ credits = [
     'https://raw.githubusercontent.com/jekyll/jekyll/master/LICENSE'
   ], [
     'Jest',
-    '2014-present Facebook Inc.',
-    'BSD',
+    'Facebook, Inc. and its affiliates.',
+    'MIT',
     'https://raw.githubusercontent.com/facebook/jest/master/LICENSE'
   ], [
     'jQuery',
diff --git a/lib/docs/filters/jest/entries.rb b/lib/docs/filters/jest/entries.rb
index f87e4f77..febe3e7f 100644
--- a/lib/docs/filters/jest/entries.rb
+++ b/lib/docs/filters/jest/entries.rb
@@ -20,15 +20,23 @@ module Docs
       def additional_entries
         return [] unless !root_page? && self.type == self.name # api page
 
-        at_css('.mainContainer ul').css('li > a').map do |node|
-          name = node.at_css('code').content.strip
+        entries = []
+
+        at_css('.mainContainer ul').css('li > a').each do |node|
+          code = node.at_css('code')
+          next if code.nil?
+
+          name = code.content.strip
           name.sub! %r{\(.*\)}, '()'
           name.remove! %r{[\s=<].*}
           name.prepend 'jest ' if name.start_with?('--')
           name.prepend 'Config: ' if slug == 'configuration'
           id = node['href'].remove('#')
-          [name, id]
+
+          entries << [name, id]
         end
+
+        entries
       end
     end
   end
diff --git a/lib/docs/scrapers/jest.rb b/lib/docs/scrapers/jest.rb
index 3aff5b21..4b60ba75 100644
--- a/lib/docs/scrapers/jest.rb
+++ b/lib/docs/scrapers/jest.rb
@@ -1,11 +1,11 @@
 module Docs
   class Jest < UrlScraper
     self.type = 'simple'
-    self.release = '24.8.0'
+    self.release = '24.9'
     self.base_url = 'https://jestjs.io/docs/en/'
     self.root_path = 'getting-started'
     self.links = {
-      home: 'https://facebook.github.io/jest/',
+      home: 'https://jestjs.io/',
       code: 'https://github.com/facebook/jest'
     }
 
@@ -14,8 +14,8 @@ module Docs
     options[:container] = '.docMainWrapper'
 
     options[:attribution] = <<-HTML
-      &copy; 2014&ndash;present Facebook Inc.<br>
-      Licensed under the BSD License.
+      &copy; 2019 Facebook, Inc. and its affiliates.<br>
+      Licensed under the MIT License.
     HTML
 
     def get_latest_version(opts)


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