rspec_approvals 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f80fb19dffbe4bc78a84f29d2adc564b99daab370cc17b1594f8c4b07fd5ead
4
- data.tar.gz: 8877ef773cc9c266b32fcb871fabb93113f8019a82494cefcc056f8b50a9ad60
3
+ metadata.gz: ee9d20fbefe8c582b91491fc68d138f968d2af93a2ebddadc1fbcec28cd4825b
4
+ data.tar.gz: 2ef26b7fa67d9bce2136d7ccb03c3c3c02984152b366eac600c6e870f3586b31
5
5
  SHA512:
6
- metadata.gz: b684ba876cfd55a31ff064fcf559ad999b2f7daf57d8b257865d910499e883b50d35b5e956b59259f0b2979764612c04832c650e0517a50b2b2aa206ab4f12d5
7
- data.tar.gz: 60bf2c56a847a03d525af17b04c68013709b99d142f42035081f5672940479ae16f23167b115f486e191b5c3aa9533149bf3e80562c0d55c4fc078a783f323bf
6
+ metadata.gz: 4e2fb14501ecfc75f57c4c81b126d4b51d4a7339a014aab4a9ddbf83c86af3839fc58f83d088f42e85cd33fc858239a67247ebe0670539364c2953988b2d2d69
7
+ data.tar.gz: 11c4cd21df4ca1295cb6d1087d81c9e70e1717f2015037e21aca7214a99a77a1f989468655e6c01ad76795c822bd6935c4abbd846dce410e60e6e0c8531496fa
@@ -1,4 +1,5 @@
1
1
  require 'rspec_approvals/extensions/file'
2
+ require 'rspec_approvals/extensions/stringio'
2
3
 
3
4
  require 'rspec_approvals/module_functions'
4
5
  require 'rspec_approvals/prompt'
@@ -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
+
@@ -1,3 +1,3 @@
1
1
  module RSpecApprovals
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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.0
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-08-18 00:00:00.000000000 Z
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.2
108
+ rubygems_version: 3.1.4
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: Interactive RSpec Approvals