Skip to content

Instantly share code, notes, and snippets.

@nickserv
Created December 31, 2014 23:07
Show Gist options
  • Save nickserv/0e79b06e15e162be123c to your computer and use it in GitHub Desktop.
Save nickserv/0e79b06e15e162be123c to your computer and use it in GitHub Desktop.
Script to list the codename for every AngularJS release
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