bogo-ui 0.1.18 → 0.1.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a8121ab2c73edae7a9457ddc723b2097d46ab33
4
- data.tar.gz: 9815d643b5a32745b9351aaf770873668ff2d547
3
+ metadata.gz: 450798d1239966468b49f53478950973bece25fc
4
+ data.tar.gz: f2e46bd38978774ebf83097cf52a300aa8828d03
5
5
  SHA512:
6
- metadata.gz: 6f79381fbca9f34aa5c751e837589727a79b463e5c6a951748992c1fc0e3bdabd46622343b95e6e1239b6b7f7eae40d9c4e65e4d8be6579eccaae0d7f9496876
7
- data.tar.gz: 9b9f7842d0796acc2c654d500feb8a2df1b581baa695408808534a326fbbeeaef2b053ed9b37ea32802e7bf485d7f3210fd2e769221d10d7201aa8a81ae4f63c
6
+ metadata.gz: 48181f0bfd7a15f52165045c82e251d4f1be705513f7fe10a2bc791196513845052f8f45890a46011781679623c6e4178577f08d22d940c104d372e1165cb9e7
7
+ data.tar.gz: cf95b92ec91e7b4b93fb7414ec734076e431744a40a8c538c90ed730a95df1385025e8c7e10a89024b0d693a1128e0ff44e3d83c8924ed355708f589b020d08e
@@ -1,3 +1,6 @@
1
+ # v0.1.20
2
+ * Include newline output when reading input with no echo
3
+
1
4
  # v0.1.18
2
5
  * Add `:no_echo` option to `Ui#ask_question` to disable STDIN echo
3
6
 
@@ -153,9 +153,11 @@ module Bogo
153
153
  result = opts[:no_echo] ?
154
154
  $stdin.noecho(&:gets).strip :
155
155
  $stdin.gets.strip
156
+ puts "\n" if opts[:no_echo]
156
157
  if(result.to_s.empty? && default)
157
158
  result = default
158
159
  end
160
+
159
161
  if(valid)
160
162
  case valid
161
163
  when Array
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  class Ui
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.18')
4
+ VERSION = Gem::Version.new('0.1.20')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts