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
823823 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
824824 ], [
825825 'Spring Boot',
826− '2002 - 2020 Pivotal, Inc. All Rights Reserved.',
826+ '2002-2020 Pivotal, Inc. All Rights Reserved.',
827827 'Apache License 2.0',
828828 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'
829829 ]
lib/docs/scrapers/spring_boot.rb+7−5
@@ -3,8 +3,6 @@ module Docs · 2 unmodified lines
33 self.name = 'Spring Boot'
44 self.slug = 'spring_boot'
55 self.type = 'simple'
6− self.release = '2.3.0.RELEASE'
7− self.base_url = 'https://docs.spring.io/spring-boot/docs/current/reference/html/'
86 self.root_path = "index.html"
97 self.links = {
108 home: 'https://spring.io/',
@@ -16,12 +14,16 @@ module Docs · 5 unmodified lines
1614 options[:skip_patterns] = [/legal/]
1715
1816 options[:attribution] = <<-HTML
19− Copyright &copy; 2002 - 2020 Pivotal, Inc. All Rights Reserved.
17+ Copyright &copy; 2002–2020 Pivotal, Inc. All Rights Reserved.
2018 HTML
2119
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+
2225 def get_latest_version(opts)
23− doc = fetch_doc('https://docs.spring.io/spring-boot/docs/current/reference/html/legal.html', opts)
24− table = doc.at_css('#content p').inner_text
26+ get_latest_github_release('spring-projects', 'spring-boot', opts)
2527 end
2628
2729 end