Skip to content

Instantly share code, notes, and snippets.

@tommi-lew
Last active August 29, 2015 13:58
Show Gist options
  • Save tommi-lew/10002675 to your computer and use it in GitHub Desktop.
Save tommi-lew/10002675 to your computer and use it in GitHub Desktop.
Check libyaml version used by Psych gem
#!/usr/bin/env rvm-auto-ruby
heroku_apps = `heroku apps`
heroku_apps = heroku_apps.split("\n")
heroku_apps.shift
heroku_apps.map! {|item| item.split(" ")[0] }
heroku_apps.each do |app|
puts "#{app}: "
output = `heroku run "ruby -rpsych -e 'p Psych.libyaml_version.join(\\".\\")'" -a #{app}`
puts output[/(\d.\d.\d)/, 1]
puts '------------------------------------'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment