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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/prebundler/cli/install.rb +18 -0
- data/lib/prebundler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a908fd14a0e3c7ce0342d02e4bcb8342071215b1b8f168d04ae84fadd09bfd70
|
4
|
+
data.tar.gz: db4b8827c8234bc052d7876c4282e211e7ca8b4291c21c641213143c8d403e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c84b849e59d79d167b3f182369be1f387ad32b9df5c0c3b877d988db5be44e3377fbe77597965ba94b4195f7343f57d17a2201e20373b325dd3b854af57b4b9
|
7
|
+
data.tar.gz: 5ed4dda5f56215f0d073e7bcf3741b8c8511a49c425c699799fcbb3ed77e5603e7179e90af57bc599a2888ec3c4b680dea426571ef978940e6f8aafb88b6911d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/prebundler/version.rb
CHANGED
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.
|
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:
|
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
|