[devdocsgjs/main: 1129/1867] spring_boot: update release 2.4.0




commit eb14545f79e7c2b5224776187ddf3d2557828e76
Author: Simon Legner <Simon Legner gmail com>
Date:   Sat Nov 14 12:20:50 2020 +0100

    spring_boot: update release 2.4.0

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 lib/docs/scrapers/spring_boot.rb                     | 12 +++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index b86ab6e6..dc523938 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -823,7 +823,7 @@ credits = [
     'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
   ], [
     'Spring Boot',
-    '2002 - 2020 Pivotal, Inc. All Rights Reserved.',
+    '2002-2020 Pivotal, Inc. All Rights Reserved.',
     'Apache License 2.0',
     'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'
   ]
diff --git a/lib/docs/scrapers/spring_boot.rb b/lib/docs/scrapers/spring_boot.rb
index 10792cb9..9e9cbc33 100644
--- a/lib/docs/scrapers/spring_boot.rb
+++ b/lib/docs/scrapers/spring_boot.rb
@@ -3,8 +3,6 @@ module Docs
     self.name = 'Spring Boot'
     self.slug = 'spring_boot'
     self.type = 'simple'
-    self.release = '2.3.0.RELEASE'
-    self.base_url = 'https://docs.spring.io/spring-boot/docs/current/reference/html/'
     self.root_path = "index.html"
     self.links = {
       home: 'https://spring.io/',
@@ -16,12 +14,16 @@ module Docs
     options[:skip_patterns] = [/legal/]
 
     options[:attribution] = <<-HTML
-    Copyright &copy; 2002 - 2020 Pivotal, Inc. All Rights Reserved.
+    Copyright &copy; 2002–2020 Pivotal, Inc. All Rights Reserved.
     HTML
 
+    version do
+      self.release = '2.4.0'
+      self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/";
+    end
+
     def get_latest_version(opts)
-      doc = fetch_doc('https://docs.spring.io/spring-boot/docs/current/reference/html/legal.html', opts)
-      table = doc.at_css('#content p').inner_text
+      get_latest_github_release('spring-projects', 'spring-boot', opts)
     end
 
   end


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