Created
February 26, 2014 10:00
-
-
Save Atalanta/9226894 to your computer and use it in GitHub Desktop.
Get history of Ruby releases in 2013
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'open-uri' | |
news = Nokogiri::HTML(open("https://www.ruby-lang.org/en/news/2013/")) | |
news.xpath("//div[@class='post']/following-sibling::*").each do |item| | |
match = item.text.match /Ruby (\S+) is released.*Posted by.*on ((?:\d{1,2} [a-zA-z]{3} \d{4}))/m | |
if match | |
puts "Ruby #{match[1]} was announced on #{match[2]}" | |
end | |
end | |
Ruby 2.1.0-rc1 was announced on 20 Dec 2013 | |
Ruby 2.1.0-preview2 was announced on 22 Nov 2013 | |
Ruby 1.9.3-p484 was announced on 22 Nov 2013 | |
Ruby 2.0.0-p353 was announced on 22 Nov 2013 | |
Ruby 2.1.0-preview1 was announced on 23 Sep 2013 | |
Ruby 2.0.0-p247 was announced on 27 Jun 2013 | |
Ruby 1.9.3-p448 was announced on 27 Jun 2013 | |
Ruby 1.8.7-p374 was announced on 27 Jun 2013 | |
Ruby 1.9.3-p429 was announced on 14 May 2013 | |
Ruby 2.0.0-p195 was announced on 14 May 2013 | |
Ruby 2.0.0-p0 was announced on 24 Feb 2013 | |
Ruby 1.9.3-p392 was announced on 22 Feb 2013 | |
Ruby 2.0.0-rc2 was announced on 8 Feb 2013 | |
Ruby 1.9.3-p385 was announced on 6 Feb 2013 | |
Ruby 1.9.3-p374 was announced on 17 Jan 2013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment