History

openjdk: fix get_latest_version

Simon Legner committed 4 years ago

Commit 6bcdaaa1 parent 200e39c1 file · +1 −1Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/docs/scrapers/openjdk.rb+1−1
@@ -133,10 +133,10 @@ module Docs · 132 unmodified lines
133133
134134 def get_latest_version(opts)
135135 doc = fetch_doc("https://jdk.java.net/archive/", opts)
136− puts doc
137136 version = doc.at_css('#downloads > table > tr > th').content
138137 version.gsub!(/\(.*\)/, '')
139138 version.gsub!(/[a-zA-z]/, '')
139+ version
140140 end
141141 end
142142 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t