Skip to content

Instantly share code, notes, and snippets.

@altV
altV / gemfile_changelog.rb
Created August 24, 2017 11:27 — forked from nrk/gemfile_changelog.rb
Get Changelogs for outdated gems in Gemfile
#!/usr/bin/env ruby
def changelog_for_gem(gem)
changelogs = `bundle exec gem contents #{gem}`.lines.grep(/history|changelog|news/i)
if changelogs.empty?
puts "No changelog found for gem #{gem}"
return nil
end