bogo-ui 0.1.20 → 0.1.22

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: 450798d1239966468b49f53478950973bece25fc
4
- data.tar.gz: f2e46bd38978774ebf83097cf52a300aa8828d03
3
+ metadata.gz: 2662e9f0c53bad6969dca46e01ee345e7e26d39d
4
+ data.tar.gz: d08c7073f0c97f545e82856831aa836fad39aafa
5
5
  SHA512:
6
- metadata.gz: 48181f0bfd7a15f52165045c82e251d4f1be705513f7fe10a2bc791196513845052f8f45890a46011781679623c6e4178577f08d22d940c104d372e1165cb9e7
7
- data.tar.gz: cf95b92ec91e7b4b93fb7414ec734076e431744a40a8c538c90ed730a95df1385025e8c7e10a89024b0d693a1128e0ff44e3d83c8924ed355708f589b020d08e
6
+ metadata.gz: 95a320a24adfe54019f0d9fdf4f085f3a0fc50d5528bb0f434062503697e922812ec1e08403ec829f14cd7a5c018da4f1c6b48f516a4d6c755794be767ec2dc8
7
+ data.tar.gz: f472ef1e1dcbb9fa9e35d07b351baaed7a743e724fc9a11f94eab129e18d6ce0ea571feb418691b014378600270cead20a647ecc3a24d1892db0ec20b236e7c3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.22
2
+ * Support masking default answers via :hide_default option
3
+
1
4
  # v0.1.20
2
5
  * Include newline output when reading input with no echo
3
6
 
data/lib/bogo-ui/ui.rb CHANGED
@@ -145,7 +145,8 @@ module Bogo
145
145
  valid = opts[:valid]
146
146
  string = question.dup
147
147
  if(default)
148
- string << " [#{default}]"
148
+ default_string = !default.empty? && opts[:hide_default] ? '*****' : default
149
+ string << " [#{default_string}]"
149
150
  end
150
151
  result = nil
151
152
  until(result)
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  class Ui
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.20')
4
+ VERSION = Gem::Version.new('0.1.22')
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.20
4
+ version: 0.1.22
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-10-01 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.5.1
90
+ rubygems_version: 2.4.8
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: UI Helper libraries