Sha256: a1466e2b38628f0975fda7b08beff533bf86f402600e9b62ce5983b0ba1d867f

Contents?: true

Size: 350 Bytes

Versions: 30

Compression:

Stored size: 350 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

30 entries across 30 versions & 1 rubygems

Version Path
bard-0.52.0 install_files/specified_bundler.rb
bard-0.51.2 install_files/specified_bundler.rb
bard-0.51.1 install_files/specified_bundler.rb
bard-0.51.0 install_files/specified_bundler.rb
bard-0.50.5 install_files/specified_bundler.rb
bard-0.50.4 install_files/specified_bundler.rb
bard-0.50.3 install_files/specified_bundler.rb
bard-0.50.2 install_files/specified_bundler.rb
bard-0.50.1 install_files/specified_bundler.rb
bard-0.50.0 install_files/specified_bundler.rb
bard-0.49.0 install_files/specified_bundler.rb
bard-0.48.1 install_files/specified_bundler.rb
bard-0.48.0 install_files/specified_bundler.rb
bard-0.47.0 install_files/specified_bundler.rb
bard-0.46.0 install_files/specified_bundler.rb
bard-0.45.1 install_files/specified_bundler.rb
bard-0.45.0 install_files/specified_bundler.rb
bard-0.44.2 install_files/specified_bundler.rb
bard-0.44.1 install_files/specified_bundler.rb
bard-0.44.0 install_files/specified_bundler.rb