prompter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/prompter.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/prompter.rb
CHANGED
@@ -212,11 +212,11 @@ class Prompter
|
|
212
212
|
# @param [Hash] opts the standard opts to pass along (see #say)
|
213
213
|
#
|
214
214
|
# @yield yields the block when the answer is no
|
215
|
-
# @return [Boolean] true for '
|
215
|
+
# @return [Boolean] true for 'n' and false for 'y'
|
216
216
|
#
|
217
217
|
def no?(prompt, opts={})
|
218
218
|
result = yes_no? prompt, opts
|
219
|
-
(block_given? && !result) ? yield : result
|
219
|
+
(block_given? && !result) ? yield : !result
|
220
220
|
end
|
221
221
|
|
222
222
|
# Chooses among different choices in an indexed list
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prompter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Domizio Demichelis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|