Created
December 31, 2014 23:07
-
-
Save nickserv/0e79b06e15e162be123c to your computer and use it in GitHub Desktop.
Script to list the codename for every AngularJS release
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 'open-uri' | |
changelog = open 'https://raw.githubusercontent.com/angular/angular.js/master/CHANGELOG.md' | |
headlines = changelog.grep(/^# /) | |
headlines.each do |headline| | |
version, codename = headline.match(/(\S+) +(\S+) +\([\d-]+\)/).captures | |
puts "#{version}: #{codename}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment