inquirer.rb 0.0.8 → 0.0.9
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 +7 -5
- data/lib/inquirer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff7230051010227909d14fde657f755aec2b43e
|
4
|
+
data.tar.gz: a3ee3801036fa225940a601d9642031451cfc9f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60ffca4371054e3815836ffd586c68fbdc6bdcb2620d7a92d698e60081ce51be3be934f25b27fa53652f37abdd320f34b3578c4327f1338b15c8edbdea9c5105
|
7
|
+
data.tar.gz: 0c2ff25ee3c4f7e4705220ff254c76213d43ff1f36ce93dd32c835b712be1a68eab6345876094163cec9f3649e1c2f197de506162d461a7f04a3dc7216111aaf
|
@@ -29,8 +29,10 @@ module IOHelper
|
|
29
29
|
@winsize = [10, 2000]
|
30
30
|
@keys = nil
|
31
31
|
end
|
32
|
+
end
|
32
33
|
|
33
|
-
|
34
|
+
module Inquirer
|
35
|
+
def use_inquirer(describe_block, opts)
|
34
36
|
describe_block.before opts[:with] do
|
35
37
|
IOHelper.reset
|
36
38
|
end
|
@@ -42,10 +44,10 @@ module IOHelper
|
|
42
44
|
|
43
45
|
# Module SpecHelpers
|
44
46
|
module SpecHelpers
|
45
|
-
include ::
|
47
|
+
include ::Inquirer
|
46
48
|
|
47
49
|
def self.extended(example_group)
|
48
|
-
example_group.
|
50
|
+
example_group.use_inquirer(example_group, with: :each)
|
49
51
|
end
|
50
52
|
|
51
53
|
def self.included(example_group)
|
@@ -54,10 +56,10 @@ module IOHelper
|
|
54
56
|
|
55
57
|
# Module All
|
56
58
|
module All
|
57
|
-
include ::
|
59
|
+
include ::Inquirer
|
58
60
|
|
59
61
|
def self.extended(example_group)
|
60
|
-
example_group.
|
62
|
+
example_group.use_inquirer(example_group, with: :all)
|
61
63
|
end
|
62
64
|
|
63
65
|
def self.included(example_group)
|
data/lib/inquirer/version.rb
CHANGED