Sha256: e4a71ac7dd155c81f3a7e87b04762c9139cb6b98aabaccc643c96d7ea0b3b28a

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

require "bundler/gem_tasks"

task :default => :test

desc "Run unit tests."
task :test do
  ruby "test.rb"
end

['3.2', '4.0', '4.1', '4.2', '5.0', '5.1', '5.2'].each do |version|
  dotless = version.delete('.')

  namespace :bundle do
    desc "Bundle with Rails #{version}.x"
    task :"rails#{dotless}" do
      ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
      sh "bundle"
    end
  end

  namespace :test do
    desc "Test with Rails #{version}.x"
    task :"rails#{dotless}" do
      ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
      ruby "test.rb"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-default_value_for-3.1.1 Rakefile