bogo-ui 0.1.8 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3b0590b35fe55408c29d06199d38a4cee093be1
4
- data.tar.gz: 9e132792deecf5dfd8889c1906bb4e4d449842dc
3
+ metadata.gz: e9326b408b642815f695692875ea431eac925a2b
4
+ data.tar.gz: 6f781eb72cc706c8fad98c56e9b6ed88d45fbc70
5
5
  SHA512:
6
- metadata.gz: 3b8659776fcc95c960715137f7811084ff760b4775d6bc21cddb9fda8c1f1bc32fc3ded7afc89e7714e22048bd5f7793b7533a56927e00b9900e6ffb36e835ce
7
- data.tar.gz: e2870e89472fcd6414626e3acd3d7c16f3d5ebc5fb47abb47dd3ea4e0be7ffd2e167b42cd515900e8ce900dc320c334770c2014126d01f7ce23dae15dc2d1408
6
+ metadata.gz: 1c7a96833a0f404ba884d3dd1b3d5e6dfa400c1fa256b9d174d017a135466e602629413ad48e224d227c810f8496082bf532fbf72041f9766e507e381e20e255
7
+ data.tar.gz: ce391fcc1b23e8914de76e64ffd60c32ccfd3002b7baf8fd1ad8e7232bd29fa0b38eea6df9bc779211479c94714846103f3e0e43c30e3026e8317e88cd53e8d1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.1.10
2
+ * Update `Ui#ask_question` to properly handle non-string values
3
+
1
4
  ## v0.1.8
2
5
  * Add `Ui#debug` output method
3
6
  * Add `Ui#verbose` output method
data/lib/bogo-ui/ui.rb CHANGED
@@ -151,7 +151,7 @@ module Bogo
151
151
  until(result)
152
152
  info "#{string}: ", :nonewline
153
153
  result = $stdin.gets.strip
154
- if(result.empty? && default)
154
+ if(result.to_s.empty? && default)
155
155
  result = default
156
156
  end
157
157
  if(valid)
@@ -162,7 +162,7 @@ module Bogo
162
162
  result = nil unless result =~ valid
163
163
  end
164
164
  end
165
- if(result.empty?)
165
+ if(result.to_s.empty?)
166
166
  error 'Please provide a valid value'
167
167
  result = nil
168
168
  end
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  class Ui
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.8')
4
+ VERSION = Gem::Version.new('0.1.10')
5
5
  end
6
6
  end
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.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo