Sha256: ad2c1af1d5382162369ff7e8d9376836964ba24b8079bfb51070af39d9ac1891
Contents?: true
Size: 566 Bytes
Versions: 5
Compression:
Stored size: 566 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 = PubGrub::VersionSolver.new(source: source) require 'irb' IRB.setup(__FILE__) workspace = IRB::WorkSpace.new(binding) IRB::Irb.new(workspace).run(IRB.conf)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pub_grub-0.4.1 | bin/console |
pub_grub-0.4.0 | bin/console |
pub_grub-0.3.2 | bin/console |
pub_grub-0.3.1 | bin/console |
pub_grub-0.3.0 | bin/console |