inquirer.rb 0.0.6 → 0.0.7

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: 95687b75315b907d171b0d7ac849cb099b7a01c0
4
- data.tar.gz: 63e2c2c70d7b6aa007acd3851b8922c78de57151
3
+ metadata.gz: 71839c6c4fd1664c03be12e7f502e794bc2046bf
4
+ data.tar.gz: fbaa228198f7ed65a3c79a2737d2a68eb0b2fbc1
5
5
  SHA512:
6
- metadata.gz: b6f6fa4b57a411c6127353ab3fccb0ddbac4f4968a0a5bda9f0f0cd44e6fe8c38c71cd70c22b8f0f3f696c9e0ca3269b3ec41855b6140398a796bcef10006d74
7
- data.tar.gz: 638ff1925b2eb812426f96f0584604f1f7d602eec91149dc256cba20aa319611b5021ac634af511e7213a7c7954be1dcf0ff300d86689fbc65a88508e4db3ebb
6
+ metadata.gz: 45e2345710d746b8b165ea192afad1d05afbda83fcb55a5102ffb8970aa60e632d57dffe44b4f9a84ac329d0bb865ea1642ea5a9ae87f04eb69270784f78606a
7
+ data.tar.gz: b51ebdfcdaf04a0c39c3ab2dfc1b38dfab4024f06eb22e5a83c96ec9d52a667615332328abe78212fee538e43604f5366c995043bdae1da1bba98bdf26688695
@@ -0,0 +1,26 @@
1
+ module IOHelper
2
+ extend self
3
+
4
+ attr_accessor :output, :bottomline, :keys, :winsize
5
+
6
+ def read_char &block
7
+ Array(@keys).each do |key|
8
+ break unless block.(key)
9
+ end
10
+ end
11
+
12
+ def render(prompt, bottomline = nil)
13
+ @rendered = wrap(prompt)
14
+ @bottomline = bottomline
15
+
16
+ @output = rendered_output
17
+ end
18
+
19
+ def clear
20
+ @output = ''
21
+ end
22
+
23
+ def output_plain
24
+ self.plain_chars(output)
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Inquirer
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inquirer.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Eckel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rainbow
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.1'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +67,47 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: '3.5'
55
69
  - !ruby/object:Gem::Dependency
56
- name: rainbow
70
+ name: simplecov
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '2.1'
75
+ version: '0.12'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '2.1'
82
+ version: '0.12'
83
+ - !ruby/object:Gem::Dependency
84
+ name: codeclimate-test-reporter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.6'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: codecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.1'
69
111
  description: A collection of common interactive command line user interfaces. A (not
70
112
  yet completed) clone of the great Inquirer.js (https://github.com/SBoudrias/Inquirer.js)
71
113
  and strongly inspired by the similar inquirer.rb (https://github.com/arlimus/inquirer.rb).
@@ -82,6 +124,7 @@ files:
82
124
  - lib/inquirer/prompts/list.rb
83
125
  - lib/inquirer/prompts/list_filterable.rb
84
126
  - lib/inquirer/prompts/password.rb
127
+ - lib/inquirer/spec_helpers.rb
85
128
  - lib/inquirer/style.rb
86
129
  - lib/inquirer/style/checkbox.rb
87
130
  - lib/inquirer/style/checkbox_filterable.rb