rspec_approvals 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_approvals.rb +1 -0
- data/lib/rspec_approvals/extensions/stringio.rb +28 -0
- data/lib/rspec_approvals/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee9d20fbefe8c582b91491fc68d138f968d2af93a2ebddadc1fbcec28cd4825b
|
4
|
+
data.tar.gz: 2ef26b7fa67d9bce2136d7ccb03c3c3c02984152b366eac600c6e870f3586b31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2fb14501ecfc75f57c4c81b126d4b51d4a7339a014aab4a9ddbf83c86af3839fc58f83d088f42e85cd33fc858239a67247ebe0670539364c2953988b2d2d69
|
7
|
+
data.tar.gz: 11c4cd21df4ca1295cb6d1087d81c9e70e1717f2015037e21aca7214a99a77a1f989468655e6c01ad76795c822bd6935c4abbd846dce410e60e6e0c8531496fa
|
data/lib/rspec_approvals.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
# This is a fix for a pesky issue with tty-screen, which is a sub-dependency
|
2
|
+
# of tty-* gems.
|
3
|
+
# Without this fix, gems that include rspec_approval and tty-* gems might
|
4
|
+
# cause an error in some cases.
|
5
|
+
#
|
6
|
+
# ref: https://github.com/piotrmurach/tty-screen/issues/11
|
7
|
+
require 'stringio'
|
8
|
+
|
9
|
+
unless StringIO.method_defined? :ioctl
|
10
|
+
class StringIO
|
11
|
+
def ioctl(*)
|
12
|
+
# :nocov:
|
13
|
+
80
|
14
|
+
# :nocov:
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
unless StringIO.method_defined? :wait_readable
|
20
|
+
class StringIO
|
21
|
+
def wait_readable(*)
|
22
|
+
# :nocov:
|
23
|
+
true
|
24
|
+
# :nocov:
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_approvals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/rspec_approvals.rb
|
77
77
|
- lib/rspec_approvals/approval_handler.rb
|
78
78
|
- lib/rspec_approvals/extensions/file.rb
|
79
|
+
- lib/rspec_approvals/extensions/stringio.rb
|
79
80
|
- lib/rspec_approvals/matchers/base.rb
|
80
81
|
- lib/rspec_approvals/matchers/match_approval.rb
|
81
82
|
- lib/rspec_approvals/matchers/output_approval.rb
|
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
- !ruby/object:Gem::Version
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
|
-
rubygems_version: 3.1.
|
108
|
+
rubygems_version: 3.1.4
|
108
109
|
signing_key:
|
109
110
|
specification_version: 4
|
110
111
|
summary: Interactive RSpec Approvals
|