Sha256: 4b3c0a26eb64c157d631164bc5c7046c9290e6f08d784d060bcca96b1a27e3f5

Contents?: true

Size: 927 Bytes

Versions: 5

Compression:

Stored size: 927 Bytes

Contents

# A sample Gemfile
source 'https://rubygems.org'

def activerecord?
  adapter.nil? || adapter == 'activerecord'
end

def datamapper?
  adapter == 'datamapper'
end

def mongoid?
  if RUBY_VERSION > '1.8.x'
    adapter == 'mongoid'
  else
    puts 'Mongoid requires Ruby higher than 1.8.x'
  end
end

def adapter
  ENV['ADAPTER']
end

group :development do
  # Standard gems across gemfiles
  gem 'jeweler', '2.0.1'
  gem 'travis-lint', '1.7.0'
  # Can I state that I really dislike camelcased gem names?
  gem 'RedCloth', '4.2.9'
  gem 'sqlite3', '1.3.7'

  if activerecord?
    gem 'activerecord', '4.0.3'
  end

  if datamapper?
    gem 'dm-core', '1.2.1'
    gem 'dm-migrations', '1.2.0'
    gem 'dm-sqlite-adapter', '1.2.0'
    gem 'dm-validations', '1.2.0'
  end

  if mongoid?
    gem 'mongoid', '3.1.6'
    gem 'i18n', '0.6.1'
  else
    # Everyone else can get the most up-to-date I18n
    gem 'i18n', '0.6.9'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stringex-2.5.2 Gemfile
stringex-2.5.1 Gemfile
stringex-2.5.0 Gemfile
stringex-2.4.2 Gemfile
stringex-2.4.1 Gemfile