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: ed17c40212f0857cadb91986f31f099511dd1cf6245db95581948ce267be3a6c
4
- data.tar.gz: f867c2449067ceed2434b85214f038bc4b037a2fa351daf66917f7302ed408ed
3
+ metadata.gz: c829d0750e6fccda26bffda6ec50825da73518a8c93064848a8c9c46071d4e47
4
+ data.tar.gz: 7c02754e0c5f48330263ffa97a3ce1734a1806f36a66b81556189dcd2a7f9421
5
5
  SHA512:
6
- metadata.gz: 5a44e7899c89b1dd04b8f1892b0593f97614d550bb34e2e6ee6b62cabca6e97b36e3013c9aec203e0c1794bf4b6679aa26279c45502b24cd7c1b68a02bd097bf
7
- data.tar.gz: 602dedb74fb0fe247409905463325823e2b4f4bfc3d2898acf1a4d85abe7e7450844d6931eda9b19685a95d6683c176c57bdc81a6640cf0c2cc378a0d7f7e9d8
6
+ metadata.gz: 3f7d03380b393dc293bd61ceb27399ffc374abbfcb672a1d588b3b33325827958d817eb13a4afbbc2ddfa5031d581cd549721088228e184230f9d7bd4021d402
7
+ data.tar.gz: aff1f842639f2acbe98238cc8f6ae9f68900bd90752dfdba934988c7b5d60d1f7c8e96318ce1e0cd4233fa0b59d404aa91f400c5296c79788829bfa57e47a828
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setup_script_generator (0.2.2)
4
+ setup_script_generator (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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' --conservative
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
@@ -1,3 +1,3 @@
1
1
  module SetupScriptGenerator
2
- VERSION = "0.2.2".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setup_script_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Winkler