Sha256: 44a074e1ffdddb466f1d2074f6aeb175c523d8bd5aae47cb7e56fc3476bc0131

Contents?: true

Size: 352 Bytes

Versions: 39

Compression:

Stored size: 352 Bytes

Contents

module SpecifiedBundler
  extend self

  def ensure!
    system("gem install bundler --conservative --version=#{bundler_version}") or raise "Cannot install bundler!"
    "(bundle check || bundle install)"
  end

  private

  def bundler_version
    lines = File.readlines("Gemfile.lock")
    lines.last.strip if lines[-2] == "BUNDLED WITH\n"
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
bard-1.1.2 install_files/specified_bundler.rb
bard-1.1.1 install_files/specified_bundler.rb
bard-1.1.0 install_files/specified_bundler.rb
bard-1.0.8 install_files/specified_bundler.rb
bard-1.0.7 install_files/specified_bundler.rb
bard-1.0.6 install_files/specified_bundler.rb
bard-1.0.5 install_files/specified_bundler.rb
bard-1.0.4 install_files/specified_bundler.rb
bard-1.0.3 install_files/specified_bundler.rb
bard-1.0.2 install_files/specified_bundler.rb
bard-1.0.1 install_files/specified_bundler.rb
bard-1.0.0 install_files/specified_bundler.rb
bard-0.69.2 install_files/specified_bundler.rb
bard-0.69.1 install_files/specified_bundler.rb
bard-0.69.0 install_files/specified_bundler.rb
bard-0.68.0 install_files/specified_bundler.rb
bard-0.67.0 install_files/specified_bundler.rb
bard-0.66.0 install_files/specified_bundler.rb
bard-0.65.0 install_files/specified_bundler.rb
bard-0.64.1 install_files/specified_bundler.rb