middleman-cli 4.3.2 → 4.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/middleman-cli/build.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c93c37f23e4b3787afb33ae8f76117ecaae72b20919bd3c479bd2cf0b073ffee
4
- data.tar.gz: d6dc613ddaba9c0bebadef21e6f40b07a6b4851f073a28f11e3924c769db4ecf
3
+ metadata.gz: 893a5b9ca714130bb6e4c95c462a07fd095bce80738ab8c4e333ce5d74f1900d
4
+ data.tar.gz: 85ba7c8dd7c21a0b96936c93d5814857b7ab578c5b442668e8bc34a8274ba922
5
5
  SHA512:
6
- metadata.gz: f7e36cae2d9e0d728cef27bd00d38eb76cbdd8deff3c9c8d0e10971bf756e24fc6b493ed809f12feded4d6b18037015821586613112ea9bb2bf6cb65d08dca5a
7
- data.tar.gz: d7db57356d8f90d54932d590237e116ae67e7565275f931068afbde8578edcb1d9a1edf93ba052b51ebff3d2f704c0bbd89164b5c1bb3e8d3222485a67fd7380
6
+ metadata.gz: 255e6fa575702f1e2301239304b68262f2271f03fcdaa4b063d1384ec1b0165fa2ab270f4a80bc5ce00e3521c85f11aa38b906a6f11cc5ca188f8fbbff69079b
7
+ data.tar.gz: e3d8386391a534b4645f7b755da46232debf252f9f9dbadc5204a9d07c3c860b57956d5cc2db9e3ed5fe82df8fd04f6cd2b321ea2dd5956e73b13c7feade5fa9
@@ -28,6 +28,10 @@ module Middleman::Cli
28
28
  type: :boolean,
29
29
  default: false,
30
30
  desc: 'Print debug messages'
31
+ class_option :bail,
32
+ type: :boolean,
33
+ default: false,
34
+ desc: 'Fail out on the first error and print error messages'
31
35
  class_option :instrument,
32
36
  type: :boolean,
33
37
  default: false,
@@ -103,7 +107,9 @@ module Middleman::Cli
103
107
  case event_type
104
108
  when :error
105
109
  say_status :error, target, :red
106
- shell.say extra, :red if options['verbose']
110
+ shell.say extra, :red if options['verbose'] || options['bail']
111
+
112
+ raise 'Build error' if options['bail']
107
113
  when :deleted
108
114
  say_status :remove, target, :green
109
115
  when :created
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-16 00:00:00.000000000 Z
12
+ date: 2019-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor