Class: Latest::RubiniusRetriever
- Inherits:
-
Object
- Object
- Latest::RubiniusRetriever
- Defined in:
- lib/latest_ruby/retrievers/rubinius_retriever.rb
Instance Method Summary collapse
Instance Method Details
#retrieve(rbx) ⇒ Object
5 6 7 8 9 |
# File 'lib/latest_ruby/retrievers/rubinius_retriever.rb', line 5 def retrieve(rbx) page = Net::HTTP.get(URI(rbx.source)) latest_version = JSON.parse(page) RubyVersion.new(latest_version['tag_name'].scan(/\d.\d/).first) end |