Sha256: 80a186ed3f999e6ef5cb099c134d353e06e55fcc6c4f9168c252b4322d0b898e

Contents?: true

Size: 1.24 KB

Versions: 51

Compression:

Stored size: 1.24 KB

Contents

require "rubygems"

require "bundler/setup"
Bundler::GemHelper.install_tasks

require "standard/rake"

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new
task default: [:spec, "standard:fix"]

task :clobber_package do
  begin
    rm_r "pkg"
  rescue
    nil
  end
end

desc "Delete all generated files"
task clobber: [:clobber_package]

desc "Test all Gemfiles from spec/*.gemfile"
task :test_all do
  require "pty"
  require "shellwords"
  cmd      = "bundle update && bundle exec rake --trace"
  statuses = Dir.glob("./sprockets*.gemfile").map { |gemfile|
    Bundler.with_clean_env do
      env = {"BUNDLE_GEMFILE" => gemfile}
      warn "Testing #{File.basename(gemfile)}:"
      warn "  export BUNDLE_GEMFILE=#{gemfile}"
      warn "  #{cmd}"
      PTY.spawn(env, cmd) do |r, _w, pid|
        begin
          r.each_line { |l| puts l }
        rescue Errno::EIO
          # Errno:EIO error means that the process has finished giving output.
        ensure
          ::Process.wait pid
        end
      end
      [$? && $?.exitstatus == 0, gemfile]
    end
  }
  failed = statuses.reject(&:first).map(&:last)
  if failed.empty?
    warn "✓ Tests pass with all #{statuses.size} gemfiles"
  else
    warn "❌ FAILING #{failed * "\n"}"
    exit 1
  end
end

Version data entries

51 entries across 36 versions & 2 rubygems

Version Path
autoprefixer-rails-9.8.6 Rakefile
autoprefixer-rails-9.8.5 Rakefile
autoprefixer-rails-9.8.4 Rakefile
autoprefixer-rails-9.8.3 Rakefile
autoprefixer-rails-9.8.2 Rakefile
autoprefixer-rails-9.8.1 Rakefile
autoprefixer-rails-9.7.6 Rakefile
autoprefixer-rails-9.7.5 Rakefile
autoprefixer-rails-9.7.4 Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.7.3/Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.7.1/Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1/Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.4/Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Rakefile
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.5/Rakefile
autoprefixer-rails-9.7.3 Rakefile
autoprefixer-rails-9.7.2 Rakefile
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Rakefile
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1/Rakefile
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.4/Rakefile