Skip to content

Instantly share code, notes, and snippets.

@nickserv
Last active August 29, 2015 13:57
Show Gist options
  • Save nickserv/9730597 to your computer and use it in GitHub Desktop.
Save nickserv/9730597 to your computer and use it in GitHub Desktop.
Script to print out all AngularJS releases with version numbers and codenames
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