Skip to content

Instantly share code, notes, and snippets.

@tspangler
Created December 29, 2017 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tspangler/ccf1c56e1f8d1012af76a56ed03225e7 to your computer and use it in GitHub Desktop.
Save tspangler/ccf1c56e1f8d1012af76a56ed03225e7 to your computer and use it in GitHub Desktop.
Parse output of `bundle outdated`
Find: ^(.+) \(newest ([A-Za-z0-9\s\.]+), installed ([0-9\.]+).*\n
Replace: \1,\2,\3\n
This will take the output of `bundle outdated` and create a comma-delimited list in this format:
`gem_name,bundle_version,newest_version`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment