Sha256: 101cc3e01979d6072d4087a6bb73f6ca2ea66452e11256998a28b9fc500cdc3e
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 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.reject { |key| key =~ /rc|racecar|beta|pre/ } %w[3.0 3.1 3.2 4.0 4.1 4.2 5.0].each do |version| appraise "rails_#{version}" do current_version = rails_versions.select { |key| key.match(/\A#{version}/) }.max gem 'activesupport', "~> #{current_version}" gem 'activerecord', "~> #{current_version}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enumerate_it-1.5.0 | Appraisals |