Skip to content

Instantly share code, notes, and snippets.

@jacquescrocker
Created March 22, 2010 02:24
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 jacquescrocker/339747 to your computer and use it in GitHub Desktop.
Save jacquescrocker/339747 to your computer and use it in GitHub Desktop.
# if Gem is defined i'll assume you are using rubygems and lock specific versions
# call me crazy but a plain old require will just get the latest version you have installed
# so i want to make sure that if you are using gems you do in fact have the correct versions
# if there is a better way to do this, please enlighten me!
if self.class.const_defined?(:Gem)
gem 'activesupport', '>= 2.3'
gem 'mongo', '0.19.1'
gem 'jnunemaker-validatable', '1.8.3'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment