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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71839c6c4fd1664c03be12e7f502e794bc2046bf
4
- data.tar.gz: fbaa228198f7ed65a3c79a2737d2a68eb0b2fbc1
3
+ metadata.gz: e52e0c2b60327d1fd9cde20358a4b854eca5893a
4
+ data.tar.gz: b14281ed507d5de5dd8204a5b1aff715bfb17c1f
5
5
  SHA512:
6
- metadata.gz: 45e2345710d746b8b165ea192afad1d05afbda83fcb55a5102ffb8970aa60e632d57dffe44b4f9a84ac329d0bb865ea1642ea5a9ae87f04eb69270784f78606a
7
- data.tar.gz: b51ebdfcdaf04a0c39c3ab2dfc1b38dfab4024f06eb22e5a83c96ec9d52a667615332328abe78212fee538e43604f5366c995043bdae1da1bba98bdf26688695
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
- end
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
@@ -1,3 +1,3 @@
1
1
  module Inquirer
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
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.7
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-15 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow