rack.git  about / heads / tags
a modular Ruby webserver interface
blob f38c803607cb95a8eb599a6de01c775ba17d5433 329 bytes (raw)
$ git show no-unicorn:test/gemloader.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
# frozen_string_literal: true

require 'rubygems'
project = 'rack'
gemspec = File.expand_path("#{project}.gemspec", Dir.pwd)
Gem::Specification.load(gemspec).dependencies.each do |dep|
  begin
    gem dep.name, *dep.requirement.as_list
  rescue Gem::LoadError
    warn "Cannot load #{dep.name} #{dep.requirement.to_s}"
  end
end

git clone https://yhbt.net/rack.git