Sha256: 93c5968fd3621bcd808c2759ecacd5a7182ce743cc9513e585e7089cd8722258
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 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 5.1].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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enumerate_it-1.6.1 | Appraisals |
enumerate_it-1.6.0 | Appraisals |