#!/bin/bash
set -e

dir="$(mktemp -d)"
trap "rm -rf '$dir'" EXIT

cp Gemfile "$dir"

# make sure that running "bundle" twice doesn't change Gemfile.lock the second time
cd "$dir"
bundle
cp Gemfile.lock{,.orig}
bundle
diff -u Gemfile.lock{.orig,} >&2

#!/bin/bash
set -e

dir="$(mktemp -d)"
trap "rm -rf '$dir'" EXIT

cp Gemfile "$dir"

# make sure that running "bundle" twice doesn't change Gemfile.lock the second time
cd "$dir"
BUNDLE_FROZEN=0 bundle install
cp Gemfile.lock{,.orig}
BUNDLE_FROZEN=1 bundle install
diff -u Gemfile.lock{.orig,} >&2

Fix ruby-bundler with respect to BUNDLE_FROZEN (which is enabled in "ruby:onbuild" tags)
Fix ruby-bundler with respect to BUNDLE_FROZEN (which is enabled in "ruby:onbuild" tags)
