| @@ -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] = <<-HTML | 16 | options[:attribution] = <<-HTML |
| 19 | Copyright © 2002 - 2020 Pivotal, Inc. All Rights Reserved. | 17 | Copyright © 2002–2020 Pivotal, Inc. All Rights Reserved. |
| 20 | HTML | 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 | 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 | end | 27 | end |
| 26 | | 28 | |
| 27 | end | 29 | end |