prompter 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/prompter.rb +2 -2
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
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 'y' and false for 'n'
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-27 00:00:00 -04:00
18
+ date: 2011-01-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency