Unified · Split
| @@ -823,7 +823,7 @@ credits = [ · 822 unmodified lines | ||
| 823 | 823 | 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE' |
| 824 | 824 | ], [ |
| 825 | 825 | 'Spring Boot', |
| 826 | − '2002 - 2020 Pivotal, Inc. All Rights Reserved.', | |
| 826 | + '2002-2020 Pivotal, Inc. All Rights Reserved.', | |
| 827 | 827 | 'Apache License 2.0', |
| 828 | 828 | 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt' |
| 829 | 829 | ] |
| @@ -3,8 +3,6 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'Spring Boot' |
| 4 | 4 | self.slug = 'spring_boot' |
| 5 | 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 | 6 | self.root_path = "index.html" |
| 9 | 7 | self.links = { |
| 10 | 8 | home: 'https://spring.io/', |
| @@ -16,12 +14,16 @@ module Docs · 5 unmodified lines | ||
| 16 | 14 | options[:skip_patterns] = [/legal/] |
| 17 | 15 | |
| 18 | 16 | options[:attribution] = <<-HTML |
| 19 | − Copyright © 2002 - 2020 Pivotal, Inc. All Rights Reserved. | |
| 17 | + Copyright © 2002–2020 Pivotal, Inc. All Rights Reserved. | |
| 20 | 18 | 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 | 25 | 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) | |
| 25 | 27 | end |
| 26 | 28 | |
| 27 | 29 | end |