Sha256: 7c8a00589e53058113f3f8e2997fad5ee14a4530441aba2c39c87c9ed656945c

Contents?: true

Size: 1.42 KB

Versions: 10

Compression:

Stored size: 1.42 KB

Contents

source 'https://rubygems.org'

# Specify your gem's dependencies in mobility.gemspec
gemspec

orm, orm_version = ENV['ORM'], ENV['ORM_VERSION']

group :development, :test do
  case orm
  when 'active_record'
    orm_version ||= '6.1'
    case orm_version
    when '4.2', '5.0', '5.1', '5.2', '6.0', '6.1'
      gem 'activerecord', "~> #{orm_version}.0"
    when '6.2'
      git 'https://github.com/rails/rails.git' do
        gem 'activerecord'
        gem 'activesupport'
      end
    else
      raise ArgumentError, 'Invalid ActiveRecord version'
    end
  when 'sequel'
    orm_version ||= '5'
    case orm_version
    when '5'
      gem 'sequel', "~> #{orm_version}.0"
    else
      raise ArgumentError, 'Invalid Sequel version'
    end
  when nil, ''
  else
    raise ArgumentError, "Invalid ORM: #{orm}"
  end

  gem 'allocation_stats' if ENV['FEATURE'] == 'performance'

  if ENV['FEATURE'] == 'rails'
    gem 'rails'
    gem 'generator_spec', '~> 0.9.4'
  end

  platforms :ruby do
    gem 'guard-rspec'
    gem 'pry-byebug'
    case ENV['DB']
    when 'sqlite3'
      if orm == 'active_record' && orm_version < '5.2'
        gem 'sqlite3', '~> 1.3.13'
      else
        gem 'sqlite3', '~> 1.4.1'
      end
    when 'mysql'
      gem 'mysql2'
    when 'postgres'
      if orm == 'active_record' && orm_version < '5.0'
        gem 'pg', '< 1.0'
      else
        gem 'pg'
      end
    end
  end
end

group :benchmark do
  gem "benchmark-ips"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mobility-1.1.2 Gemfile
mobility-1.1.1 Gemfile
mobility-1.1.0 Gemfile
mobility-1.0.7 Gemfile
mobility-1.0.6 Gemfile
mobility-1.0.5 Gemfile
mobility-1.0.4 Gemfile
mobility-1.0.3 Gemfile
mobility-1.0.2 Gemfile
mobility-1.0.1 Gemfile