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