prebundler 0.11.1 → 0.11.2

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: a908fd14a0e3c7ce0342d02e4bcb8342071215b1b8f168d04ae84fadd09bfd70
4
- data.tar.gz: db4b8827c8234bc052d7876c4282e211e7ca8b4291c21c641213143c8d403e9b
3
+ metadata.gz: 7b05cab7105a867a900e0110f528c4a7484e410d68595e8110413e6a8c749312
4
+ data.tar.gz: 3d9b04e09ec3aefa8cea5a3bcc0b3e22fe7cd7febdc8e0ca0ce0b991cb89151e
5
5
  SHA512:
6
- metadata.gz: 1c84b849e59d79d167b3f182369be1f387ad32b9df5c0c3b877d988db5be44e3377fbe77597965ba94b4195f7343f57d17a2201e20373b325dd3b854af57b4b9
7
- data.tar.gz: 5ed4dda5f56215f0d073e7bcf3741b8c8511a49c425c699799fcbb3ed77e5603e7179e90af57bc599a2888ec3c4b680dea426571ef978940e6f8aafb88b6911d
6
+ metadata.gz: e38816cada1cd3a3f867a93a4dce913b45a991aa895dbc060312975d2104a686edcfdec218b28cb913b2735e5422183ff717b64230f529310825a2f7a02caab7
7
+ data.tar.gz: f151f57f6ce2a132ed1c6642a0b03e8edd99c25d5054328a1781dcfd37f1b3d6612ae105b2b2174591fa959a42bd49a4ab9239d4e14083e77b0e8f67aeec7498
@@ -1,3 +1,8 @@
1
+ 0.11.2
2
+ ===
3
+ - Always run `bundle install` just in case.
4
+ - Make sure `bundle check` is the _last_ thing that runs.
5
+
1
6
  0.11.1
2
7
  ===
3
8
  - Exit with nonzero status code if fallback `bundle install` fails.
@@ -21,7 +21,8 @@ module Prebundler
21
21
  install
22
22
  update_bundle_config
23
23
  generate_binstubs
24
- check
24
+ # always run `bundle install` just in case
25
+ bundle_install
25
26
  rescue BundleFailedError => e
26
27
  out.puts e.message
27
28
  exit e.exitstatus
@@ -136,18 +137,19 @@ module Prebundler
136
137
  out.puts 'Done generating binstubs'
137
138
  end
138
139
 
139
- def check
140
- system "bundle check --gemfile #{gemfile_path}"
140
+ def bundle_install
141
+ system "bundle install #{bundle_install_args}"
141
142
 
142
143
  if $?.exitstatus != 0
143
- out.puts 'Bundle not satisfied, falling back to `bundle install`'
144
- system "bundle install #{bundle_install_args}"
144
+ raise BundleFailedError.new(
145
+ "bundler exited with status code #{$?.exitstatus}", $?.exitstatus
146
+ )
147
+ end
145
148
 
146
- if $?.exitstatus != 0
147
- raise BundleFailedError.new(
148
- "bundler exited with status code #{$?.exitstatus}", $?.exitstatus
149
- )
150
- end
149
+ system "bundle check --gemfile #{gemfile_path}"
150
+
151
+ if $?.exitstatus != 0
152
+ raise BundleFailedError.new('bundle could not be satisfied', $?.exitstatus)
151
153
  end
152
154
  end
153
155
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prebundler
4
- VERSION = '0.11.1'
4
+ VERSION = '0.11.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prebundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-28 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler