bogo-ui 0.1.26 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/bogo-ui/ui.rb +5 -1
- data/lib/bogo-ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b36187eba0455ffe3bf0a0d89e3a2886b0837c31778c30a2f881d6560d7a1be
|
4
|
+
data.tar.gz: 238586675f8ef079659a12395411ddb495142c77b7759790e9769081cc763da9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7280f5a2090faccaaaf2ba161b4dd3005836ed6be81a167b737d50465ce751220aa7bf7417bc015bbec2d39fb6e2420a5351a9abed2a76c82afe6dba6b710407
|
7
|
+
data.tar.gz: 8f9352d41d18a509cdc8f2b6157010631b83e573dd9d110ce372ce88001508b56a4d83e88028c5cb97db5f4b9c7f02e432a3e54ff644b9015940777cbadd04c8
|
data/CHANGELOG.md
CHANGED
data/lib/bogo-ui/ui.rb
CHANGED
@@ -6,6 +6,10 @@ module Bogo
|
|
6
6
|
# CLI UI helper
|
7
7
|
class Ui
|
8
8
|
|
9
|
+
# Custom exception type when confirmation is
|
10
|
+
# declined by the user
|
11
|
+
class ConfirmationDeclined < StandardError; end
|
12
|
+
|
9
13
|
autoload :Table, 'bogo-ui/table'
|
10
14
|
|
11
15
|
# @return [Truthy, Falsey]
|
@@ -184,7 +188,7 @@ module Bogo
|
|
184
188
|
def confirm(question)
|
185
189
|
unless(auto_confirm)
|
186
190
|
result = ask("#{question} (Y/N)", :valid => /[YyNn]/).downcase
|
187
|
-
raise 'Confirmation declined!' unless result == 'y'
|
191
|
+
raise ConfirmationDeclined.new 'Confirmation declined!' unless result == 'y'
|
188
192
|
end
|
189
193
|
end
|
190
194
|
|
data/lib/bogo-ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bogo-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo
|