prebundler 0.11.0 → 0.11.1

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: cdbc2df59f7a6b2a3cd74528a7d7616e66f77f3db95b33c0e8711a9f02e76fca
4
- data.tar.gz: 3567b92be6e9e2758eb355793afcbeb29b610d075f10a2c9b854ea2549e4b4a2
3
+ metadata.gz: a908fd14a0e3c7ce0342d02e4bcb8342071215b1b8f168d04ae84fadd09bfd70
4
+ data.tar.gz: db4b8827c8234bc052d7876c4282e211e7ca8b4291c21c641213143c8d403e9b
5
5
  SHA512:
6
- metadata.gz: 4d363752272279c388473875acaeae4d87d6cdb88d0effc192f685c7391f43ff5d6bb8c9278df2a92227d8fcf2534ce4b6289c7e9236607e91501a2d8ee0754e
7
- data.tar.gz: f3e839f0e5cf217638741833400bb47005d5ef6b86045513871ea779c00c03bd209efc80c2e6dd3cb61d8eca66aea49d1539ba2d5418e6cdbe4baf078487851d
6
+ metadata.gz: 1c84b849e59d79d167b3f182369be1f387ad32b9df5c0c3b877d988db5be44e3377fbe77597965ba94b4195f7343f57d17a2201e20373b325dd3b854af57b4b9
7
+ data.tar.gz: 5ed4dda5f56215f0d073e7bcf3741b8c8511a49c425c699799fcbb3ed77e5603e7179e90af57bc599a2888ec3c4b680dea426571ef978940e6f8aafb88b6911d
@@ -1,3 +1,7 @@
1
+ 0.11.1
2
+ ===
3
+ - Exit with nonzero status code if fallback `bundle install` fails.
4
+
1
5
  0.11.0
2
6
  ===
3
7
  - Allow the caller to pass in a s3 client for non-standard setups
@@ -6,6 +6,15 @@ require 'yaml'
6
6
 
7
7
  module Prebundler
8
8
  module Cli
9
+ class BundleFailedError < StandardError
10
+ attr_reader :exitstatus
11
+
12
+ def initialize(message, exitstatus)
13
+ super(message)
14
+ @exitstatus = exitstatus
15
+ end
16
+ end
17
+
9
18
  class Install < Base
10
19
  def run
11
20
  prepare
@@ -13,6 +22,9 @@ module Prebundler
13
22
  update_bundle_config
14
23
  generate_binstubs
15
24
  check
25
+ rescue BundleFailedError => e
26
+ out.puts e.message
27
+ exit e.exitstatus
16
28
  end
17
29
 
18
30
  private
@@ -130,6 +142,12 @@ module Prebundler
130
142
  if $?.exitstatus != 0
131
143
  out.puts 'Bundle not satisfied, falling back to `bundle install`'
132
144
  system "bundle install #{bundle_install_args}"
145
+
146
+ if $?.exitstatus != 0
147
+ raise BundleFailedError.new(
148
+ "bundler exited with status code #{$?.exitstatus}", $?.exitstatus
149
+ )
150
+ end
133
151
  end
134
152
  end
135
153
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prebundler
4
- VERSION = '0.11.0'
4
+ VERSION = '0.11.1'
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.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.7.6
133
+ rubygems_version: 2.7.6.2
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Gem dependency prebuilder