Sha256: 9fc5624fe6bcd7399d30ef9bb23d93b514b5484c74758c96be1400ff28d348db
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "pub_grub" source = PubGrub::StaticPackageSource.new do |s| s.add "foo", "2.0.0", deps: { "bar" => "~> 2.0" } s.add "foo", "1.1.0", deps: { "bar" => "~> 1.0" } s.add "foo", "1.0.0", deps: { "bar" => "~> 1.0" } s.add "bar", "2.0.0" s.add "bar", "1.0.0" end foo = source.get_package("foo") bar = source.get_package("bar") solver = VersionSolver.new(source: source) require 'irb' IRB.setup(__FILE__) workspace = IRB::WorkSpace.new(binding) IRB::Irb.new(workspace).run(IRB.conf)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pub_grub-0.2.0 | bin/console |
pub_grub-0.1.0 | bin/console |