Sha256: dd9a148fa943f9fb3f8932dec791444c5dafd2c1573a387f2f2dc802b64fb9ca

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

source :rubygems

MONGO_VERS = '1.5.2' unless defined? MONGO_VERS

RAILS_VERS = case ENV['RAILS_VERS']
             when '3.0'
               '~>3.0.0'
             when '3.1'
               '~>3.1.0'
             when '3.2'
               '~>3.2.0'
             when nil
               nil
             else
               raise "Invalid RAILS_VERS.  Available versions are 3.0, 3.1, and 3.2."
             end

gemspec

group :development, :test do
  gem 'rake'
  gem 'mongo_mapper', '>= 0.10.1'

  # this is hack-tastic :{
  # ENV['RAILS_VERS'] is only provided when we run
  # bundle update, but not when running the specs proper
  # we need an older version of mongoid for Rails 3.0
  # and bundler won't cherry-pick a matching gem version
  # out of a git repo like it will out of the rubygems repo
  if ENV['RAILS_VERS'] == '3.0' || RUBY_VERSION[0..2] == "1.8"
    # bundle updating for Rails 3.0
    # OR we're still on Ruby 1.8
    gem 'mongoid',      '>= 2.2.5'
  elsif ENV['RAILS_VERS']
    # bundle updating for Rails 3.1 or 3.2 on Ruby 1.9
    gem 'mongoid',      '>= 2.2.5', :git => 'git://github.com/mongoid/mongoid.git'
  elsif File.read('Gemfile.lock') =~ /^    rails \(3.0.\d+\)/
    # we're running tests on Rails 3.0 on Ruby 1.9
    gem 'mongoid',      '>= 2.2.5'
  else
    # we're running tests on Rails 3.1 or 3.2 on Ruby 1.9
    gem 'mongoid',      '>= 2.2.5', :git => 'git://github.com/mongoid/mongoid.git'
  end

  gem 'mongo',         MONGO_VERS
  gem 'bson_ext',      MONGO_VERS
  
  gem 'system_timer', :platforms => :ruby_18
  gem 'ruby-debug',   :platforms => :ruby_18
  gem 'ruby-debug19', :platforms => :ruby_19

  RAILS_VERS ? gem('rails', RAILS_VERS) : gem('rails')
  gem 'rspec-rails'
  gem 'devise'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_session_store-rails3-3.0.4 Gemfile