Sha256: d09dd7a502cfc572699d4e9090f2b84aa9bbed01977a88c5e5cef0da43fe0a88

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

require 'net/http'
require 'json'

rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versions/rails.json')))
  .group_by { |version| version['number'] }.keys.grep_v(/rc|racecar|beta|pre/)

%w[6.0 6.1 7.0 7.1].each do |rails_version|
  appraise "rails_#{rails_version}" do
    current_version = rails_versions
      .select { |key| key.match(/\A#{rails_version}/) }
      .max { |a, b| Gem::Version.new(a) <=> Gem::Version.new(b) }

    gem 'activesupport', "~> #{current_version}"
    gem 'activerecord',  "~> #{current_version}"

    gem 'sqlite3', '< 2' # v2.x isn't yet working. See: https://github.com/sparklemotion/sqlite3-ruby/issues/529
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enumerate_it-4.0.0 Appraisals