bogo-ui 0.1.16 → 0.1.18

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: c2fe47ba46e038644e799c17cd529a3612b8d3c1
4
- data.tar.gz: 118ca1e5a44f5a966fcff31ce4df1e82c7f0e704
3
+ metadata.gz: 4a8121ab2c73edae7a9457ddc723b2097d46ab33
4
+ data.tar.gz: 9815d643b5a32745b9351aaf770873668ff2d547
5
5
  SHA512:
6
- metadata.gz: 0725d66fc08fc4e0b9e840e73b8a78f43e213548d5ae1622331490d30ea0c77c1396be560b6c5ffa9b5dc43a4e90ec04d6eae0083c04227e5cd30d3a68764e86
7
- data.tar.gz: 76c37de36f8ecdfcdc4e5822771ae6ff61010f3a3407823b1e7742b7d3d78789732c66081cd4b5a74c39c2ce5cf43ea3ddd2d9c14f95666b9f28c96ae2eb4998
6
+ metadata.gz: 6f79381fbca9f34aa5c751e837589727a79b463e5c6a951748992c1fc0e3bdabd46622343b95e6e1239b6b7f7eae40d9c4e65e4d8be6579eccaae0d7f9496876
7
+ data.tar.gz: 9b9f7842d0796acc2c654d500feb8a2df1b581baa695408808534a326fbbeeaef2b053ed9b37ea32802e7bf485d7f3210fd2e769221d10d7201aa8a81ae4f63c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.18
2
+ * Add `:no_echo` option to `Ui#ask_question` to disable STDIN echo
3
+
1
4
  # v0.1.16
2
5
  * Remove debug artifact
3
6
 
data/lib/bogo-ui/ui.rb CHANGED
@@ -150,7 +150,9 @@ module Bogo
150
150
  result = nil
151
151
  until(result)
152
152
  info "#{string}: ", :nonewline
153
- result = $stdin.gets.strip
153
+ result = opts[:no_echo] ?
154
+ $stdin.noecho(&:gets).strip :
155
+ $stdin.gets.strip
154
156
  if(result.to_s.empty? && default)
155
157
  result = default
156
158
  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.16')
4
+ VERSION = Gem::Version.new('0.1.18')
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.16
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -87,9 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.4.8
90
+ rubygems_version: 2.5.1
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: UI Helper libraries
94
94
  test_files: []
95
- has_rdoc: