Skip to content

Instantly share code, notes, and snippets.

@kiliman
Created August 25, 2010 14:21
Show Gist options
  • Save kiliman/549597 to your computer and use it in GitHub Desktop.
Save kiliman/549597 to your computer and use it in GitHub Desktop.
def gem_available?
if @version == nil
Gem.available? @gem_name
else
Gem.available? @gem_name, @version
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment