setup_script_generator 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c829d0750e6fccda26bffda6ec50825da73518a8c93064848a8c9c46071d4e47
|
4
|
+
data.tar.gz: 7c02754e0c5f48330263ffa97a3ce1734a1806f36a66b81556189dcd2a7f9421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f7d03380b393dc293bd61ceb27399ffc374abbfcb672a1d588b3b33325827958d817eb13a4afbbc2ddfa5031d581cd549721088228e184230f9d7bd4021d402
|
7
|
+
data.tar.gz: aff1f842639f2acbe98238cc8f6ae9f68900bd90752dfdba934988c7b5d60d1f7c8e96318ce1e0cd4233fa0b59d404aa91f400c5296c79788829bfa57e47a828
|
data/Gemfile.lock
CHANGED
@@ -64,11 +64,17 @@ When you're done, close and re-open this terminal tab and re-run this script."
|
|
64
64
|
fi
|
65
65
|
}
|
66
66
|
|
67
|
+
has-bundler() {
|
68
|
+
has-executable bundle && bundle -v &>/dev/null
|
69
|
+
}
|
70
|
+
|
67
71
|
ensure-project-ruby-dependencies-installed() {
|
68
72
|
banner 'Installing Ruby dependencies'
|
69
73
|
|
70
|
-
if [[ $USE_BUNDLER_1 ]]; then
|
71
|
-
gem install bundler -v '~> 1.0'
|
74
|
+
if [[ $USE_BUNDLER_1 -eq 1 ]] && (! has-bundler || [[ $(bundle -v) =~ '^1\.' ]]); then
|
75
|
+
gem install bundler -v '~> 1.0'
|
76
|
+
elif ! has-bundler; then
|
77
|
+
gem install bundler
|
72
78
|
fi
|
73
79
|
|
74
80
|
bundle check || bundle install
|