Skip to content

Instantly share code, notes, and snippets.

@mrsweaters
Created October 30, 2018 23:13
Show Gist options
  • Save mrsweaters/a37a92820bd6d589ce2b4bc434fdf49e to your computer and use it in GitHub Desktop.
Save mrsweaters/a37a92820bd6d589ce2b4bc434fdf49e to your computer and use it in GitHub Desktop.
PG Version Check
def pg_exists?
begin
Gem::Specification::find_all_by_name('pg', '1.1.3')
rescue Gem::MissingSpecVersionError
false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment