inquirer.rb 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inquirer/spec_helpers.rb +43 -1
- data/lib/inquirer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52e0c2b60327d1fd9cde20358a4b854eca5893a
|
4
|
+
data.tar.gz: b14281ed507d5de5dd8204a5b1aff715bfb17c1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee1dd5307c555317a5f9e8dcc6be388d8228911d74cce46015657c619e85e25486ed1a33b7cd7af75cb74fe38b914beb083cd4ce0678c67088463ee0f75f9f1
|
7
|
+
data.tar.gz: 404cfc296fc980b66c86cc233e8501aafc8ac8ccc072537001c4ce839c2855dcfb43c770464ecf4989e459971402c7cedfe49f56b5f7b9826435c4af30c92f11
|
@@ -23,4 +23,46 @@ module IOHelper
|
|
23
23
|
def output_plain
|
24
24
|
self.plain_chars(output)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
|
+
def reset
|
28
|
+
clear
|
29
|
+
@winsize = [10, 2000]
|
30
|
+
@keys = nil
|
31
|
+
end
|
32
|
+
|
33
|
+
def use_iohelper(describe_block, opts)
|
34
|
+
describe_block.before opts[:with] do
|
35
|
+
IOHelper.reset
|
36
|
+
end
|
37
|
+
|
38
|
+
describe_block.after opts[:with] do
|
39
|
+
IOHelper.reset
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# Module SpecHelpers
|
44
|
+
module SpecHelpers
|
45
|
+
include ::IOHelper
|
46
|
+
|
47
|
+
def self.extended(example_group)
|
48
|
+
example_group.use_iohelper(example_group, with: :each)
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.included(example_group)
|
52
|
+
example_group.extend self
|
53
|
+
end
|
54
|
+
|
55
|
+
# Module All
|
56
|
+
module All
|
57
|
+
include ::IOHelper
|
58
|
+
|
59
|
+
def self.extended(example_group)
|
60
|
+
example_group.use_iohelper(example_group, with: :all)
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.included(example_group)
|
64
|
+
example_group.extend self
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
data/lib/inquirer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inquirer.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
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-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|