History

spring_boot: update release 2.4.0

Simon Legner committed 6 years ago

Commit eb145451 parent f4b66062 files · +8 −6Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/spring_boot.rb +7 −5
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -823,7 +823,7 @@ credits = [ · 822 unmodified lines
823 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'823 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
824 ], [824 ], [
825 'Spring Boot',825 'Spring Boot',
826 '2002 - 2020 Pivotal, Inc. All Rights Reserved.',826 '2002-2020 Pivotal, Inc. All Rights Reserved.',
827 'Apache License 2.0',827 'Apache License 2.0',
828 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'828 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'
829 ]829 ]
lib/docs/scrapers/spring_boot.rb+7−5
@@ -3,8 +3,6 @@ module Docs · 2 unmodified lines
3 self.name = 'Spring Boot'3 self.name = 'Spring Boot'
4 self.slug = 'spring_boot'4 self.slug = 'spring_boot'
5 self.type = 'simple'5 self.type = 'simple'
6 self.release = '2.3.0.RELEASE'
7 self.base_url = 'https://docs.spring.io/spring-boot/docs/current/reference/html/'
8 self.root_path = "index.html"6 self.root_path = "index.html"
9 self.links = {7 self.links = {
10 home: 'https://spring.io/',8 home: 'https://spring.io/',
@@ -16,12 +14,16 @@ module Docs · 5 unmodified lines
16 options[:skip_patterns] = [/legal/]14 options[:skip_patterns] = [/legal/]
17 15
18 options[:attribution] = <<-HTML16 options[:attribution] = <<-HTML
19 Copyright &copy; 2002 - 2020 Pivotal, Inc. All Rights Reserved.17 Copyright &copy; 2002–2020 Pivotal, Inc. All Rights Reserved.
20 HTML18 HTML
21 19
20 version do
21 self.release = '2.4.0'
22 self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
23 end
24
22 def get_latest_version(opts)25 def get_latest_version(opts)
23 doc = fetch_doc('https://docs.spring.io/spring-boot/docs/current/reference/html/legal.html', opts)26 get_latest_github_release('spring-projects', 'spring-boot', opts)
24 table = doc.at_css('#content p').inner_text
25 end27 end
26 28
27 end29 end