Skip to content

Commit d7a0962

Browse files
committed
Initialize the Gemfile.next.lock
We initialize the Gemfile.next.lock by copying the content of the existing Gemfile.lock. This prevents major version jumps when we use this gem without an initial Gemfile.next.lock. This commit closes: #24
1 parent f6161f0 commit d7a0962

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exe/next.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ STRING
1010
mv Gemfile.tmp Gemfile
1111

1212
ln -s Gemfile Gemfile.next
13+
14+
# Initialize the Gemfile.next.lock
15+
# Prevents major version jumps when we start without a Gemfile.next.lock
16+
if [ -f "Gemfile.lock" ] && [ ! -f "Gemfile.next.lock" ]; then
17+
cp Gemfile.lock Gemfile.next.lock
18+
fi
19+
1320
echo <<-MESSAGE
1421
Created Gemfile.next (a symlink to your Gemfile). Your Gemfile has been modified to support dual-booting!
1522

0 commit comments

Comments
 (0)