Sha256: 72e069733ba64e884625d4e0c61c4a3f224f683abeee831c6f59d435271a1a50

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

gemfile = ENV["BUNDLE_GEMFILE"] || "Gemfile"

unless File.exist?(gemfile)
  warn "#{gemfile} not found"
  exec "bundle", *ARGV
end

lockfile = "#{gemfile}.lock"
if File.exist?(lockfile)
  content = File.read(lockfile)
else
  warn "Locking #{lockfile}"
  content = `bundle lock 2>&1`
  exec "bundle", *ARGV if $?.success?
end

require 'matching_bundle'
if version = MatchingBundle.find_or_install_matching_version(content)
  exec "bundle", "_#{version}_", *ARGV
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
matching_bundle-0.3.1 bin/matching_bundle
matching_bundle-0.3.0 bin/matching_bundle