rspec_approvals 0.9.2 → 0.9.4
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 +4 -4
- data/README.md +1 -5
- data/lib/rspec_approvals/approval_handler.rb +11 -12
- data/lib/rspec_approvals/extensions/file.rb +1 -1
- data/lib/rspec_approvals/extensions/stringio.rb +4 -5
- data/lib/rspec_approvals/levenshtein.rb +32 -0
- data/lib/rspec_approvals/matchers/base.rb +18 -20
- data/lib/rspec_approvals/matchers/match_approval.rb +5 -5
- data/lib/rspec_approvals/matchers/output_approval.rb +7 -3
- data/lib/rspec_approvals/matchers/raise_approval.rb +7 -2
- data/lib/rspec_approvals/module_functions.rb +1 -1
- data/lib/rspec_approvals/prompt.rb +9 -9
- data/lib/rspec_approvals/stream.rb +1 -3
- data/lib/rspec_approvals/version.rb +2 -2
- data/lib/rspec_approvals.rb +1 -1
- metadata +16 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d26b8d0d1bf05522f7e543cda72362b146b487d27c01ba9adb1e707e06e74af
|
|
4
|
+
data.tar.gz: 3905bc9ea0ac04b2fec29c872a4c76b413b137215afeb7cba70a78e947cfa29d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 746f7b8604ff122eb9c7d9da24e812942bcebba368bda1c5cccc4d551eef7fa9f719876f4b207ce770d7685426a01aaa1639c0528da380ffd4c4d46259b8d40c
|
|
7
|
+
data.tar.gz: 0e86027ca479594eb25bcb371436dbd6e762a9f30f1ad88ea87fd9b3c3eae9789fd24a2d754649a025e8982958ddbd9be807f6a943b9b4aed970fc42bf767341
|
data/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# RSpec Approvals
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://github.com/DannyBen/rspec_approvals/actions?query=workflow%3ATest)
|
|
5
|
-
[](https://codeclimate.com/github/DannyBen/rspec_approvals/maintainability)
|
|
6
|
-
|
|
7
|
-
---
|
|
3
|
+

|
|
8
4
|
|
|
9
5
|
RSpec Approvals allows you to interactively review and approve testable
|
|
10
6
|
content.
|
|
@@ -3,7 +3,6 @@ require 'colsole'
|
|
|
3
3
|
require 'diffy'
|
|
4
4
|
|
|
5
5
|
module RSpecApprovals
|
|
6
|
-
|
|
7
6
|
# Handles user input and interactive approvals
|
|
8
7
|
class ApprovalHandler
|
|
9
8
|
include Colsole
|
|
@@ -22,7 +21,7 @@ module RSpecApprovals
|
|
|
22
21
|
private
|
|
23
22
|
|
|
24
23
|
def prompt_user
|
|
25
|
-
response = auto_approve? ? :approve :
|
|
24
|
+
response = auto_approve? ? :approve : user_response
|
|
26
25
|
|
|
27
26
|
case response
|
|
28
27
|
|
|
@@ -43,38 +42,38 @@ module RSpecApprovals
|
|
|
43
42
|
RSpec.configuration.auto_approve
|
|
44
43
|
end
|
|
45
44
|
|
|
46
|
-
def
|
|
47
|
-
Prompt.select
|
|
45
|
+
def user_response
|
|
46
|
+
Prompt.select 'Please Choose:', 'r', menu_options
|
|
48
47
|
end
|
|
49
48
|
|
|
50
49
|
def menu_options
|
|
51
50
|
base = {
|
|
52
51
|
'a' => ['Approve (and save)', :approve],
|
|
53
|
-
'r' => ['Reject (and fail test)', :reject]
|
|
52
|
+
'r' => ['Reject (and fail test)', :reject],
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
extra = {
|
|
57
56
|
'1' => ['Show actual output', :actual],
|
|
58
57
|
'2' => ['Show expected output', :expected],
|
|
59
|
-
'3' => ['Show diff', :diff]
|
|
58
|
+
'3' => ['Show diff', :diff],
|
|
60
59
|
}
|
|
61
60
|
|
|
62
|
-
expected.empty? ? base : base.merge(extra)
|
|
61
|
+
expected.empty? ? base : base.merge(extra)
|
|
63
62
|
end
|
|
64
63
|
|
|
65
64
|
def approve
|
|
66
|
-
say
|
|
65
|
+
say 'g`Approved`'
|
|
67
66
|
File.deep_write approval_file, actual
|
|
68
67
|
true
|
|
69
68
|
end
|
|
70
69
|
|
|
71
70
|
def reject
|
|
72
|
-
say
|
|
71
|
+
say 'r`Not Approved`'
|
|
73
72
|
false
|
|
74
73
|
end
|
|
75
74
|
|
|
76
75
|
def separator
|
|
77
|
-
"
|
|
76
|
+
"g`#{'_' * terminal_width}`"
|
|
78
77
|
end
|
|
79
78
|
|
|
80
79
|
def diff
|
|
@@ -82,10 +81,10 @@ module RSpecApprovals
|
|
|
82
81
|
end
|
|
83
82
|
|
|
84
83
|
def show(what)
|
|
85
|
-
say
|
|
84
|
+
say ''
|
|
86
85
|
say separator
|
|
87
86
|
say what
|
|
88
87
|
say separator
|
|
89
88
|
end
|
|
90
89
|
end
|
|
91
|
-
end
|
|
90
|
+
end
|
|
@@ -9,9 +9,9 @@ require 'stringio'
|
|
|
9
9
|
unless StringIO.method_defined? :ioctl
|
|
10
10
|
class StringIO
|
|
11
11
|
def ioctl(*)
|
|
12
|
-
# :
|
|
12
|
+
# simplecov:disable
|
|
13
13
|
80
|
|
14
|
-
# :
|
|
14
|
+
# simplecov:enable
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
@@ -19,10 +19,9 @@ end
|
|
|
19
19
|
unless StringIO.method_defined? :wait_readable
|
|
20
20
|
class StringIO
|
|
21
21
|
def wait_readable(*)
|
|
22
|
-
# :
|
|
22
|
+
# simplecov:disable
|
|
23
23
|
true
|
|
24
|
-
# :
|
|
24
|
+
# simplecov:enable
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module RSpecApprovals
|
|
2
|
+
module Levenshtein
|
|
3
|
+
def self.distance(a, b)
|
|
4
|
+
return 0 if a == b
|
|
5
|
+
|
|
6
|
+
# Use the shorter string for the columns of the two working rows.
|
|
7
|
+
a, b = b, a if a.length < b.length
|
|
8
|
+
return a.length if b.empty?
|
|
9
|
+
|
|
10
|
+
previous = (0..b.length).to_a
|
|
11
|
+
chars = b.chars
|
|
12
|
+
|
|
13
|
+
a.each_char.with_index(1) do |char, i|
|
|
14
|
+
current = [i]
|
|
15
|
+
|
|
16
|
+
chars.each_with_index do |other, j|
|
|
17
|
+
cost = char == other ? 0 : 1
|
|
18
|
+
|
|
19
|
+
current << [
|
|
20
|
+
previous[j + 1] + 1,
|
|
21
|
+
current[j] + 1,
|
|
22
|
+
previous[j] + cost,
|
|
23
|
+
].min
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
previous = current
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
previous.last
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
module RSpecApprovals
|
|
2
2
|
module Matchers
|
|
3
|
-
|
|
4
3
|
# A base matcher for approvals
|
|
5
4
|
class Base
|
|
6
5
|
attr_reader :approval_name, :actual, :distance, :actual_distance
|
|
7
6
|
|
|
8
|
-
def initialize(approval_name=nil)
|
|
7
|
+
def initialize(approval_name = nil)
|
|
9
8
|
@before = nil
|
|
10
9
|
@approval_name = approval_name
|
|
11
10
|
end
|
|
@@ -18,7 +17,7 @@ module RSpecApprovals
|
|
|
18
17
|
@actual = sanitize @actual
|
|
19
18
|
success = strings_match?
|
|
20
19
|
|
|
21
|
-
if success
|
|
20
|
+
if success || !interactive?
|
|
22
21
|
success
|
|
23
22
|
else
|
|
24
23
|
approve_approval
|
|
@@ -36,9 +35,9 @@ module RSpecApprovals
|
|
|
36
35
|
# Enables the ability to do something like:
|
|
37
36
|
# `expect(string).to match_approval(file).except(/\d+/)
|
|
38
37
|
def except(regex, replace = '...')
|
|
39
|
-
before
|
|
38
|
+
before lambda { |str|
|
|
40
39
|
str.gsub regex, replace
|
|
41
|
-
|
|
40
|
+
}
|
|
42
41
|
end
|
|
43
42
|
|
|
44
43
|
# Enables the ability to adjust the actual string before checking
|
|
@@ -57,10 +56,10 @@ module RSpecApprovals
|
|
|
57
56
|
|
|
58
57
|
# Called by RSpec when there is a failure
|
|
59
58
|
def failure_message
|
|
60
|
-
return
|
|
59
|
+
return 'actual string is empty' if actual.empty?
|
|
61
60
|
|
|
62
61
|
result = "expected: #{actual}\nto match: #{expected}"
|
|
63
|
-
|
|
62
|
+
|
|
64
63
|
if distance
|
|
65
64
|
result = "#{result}\n(actual distance is #{actual_distance} instead of the expected #{distance})"
|
|
66
65
|
end
|
|
@@ -74,13 +73,13 @@ module RSpecApprovals
|
|
|
74
73
|
end
|
|
75
74
|
|
|
76
75
|
# Returns true if RSpec is configured to sanitize (remove ANSI escape
|
|
77
|
-
# codes) from the actual strings before
|
|
76
|
+
# codes) from the actual strings before proceeding to comparing them.
|
|
78
77
|
def sanitize?
|
|
79
78
|
RSpec.configuration.strip_ansi_escape
|
|
80
79
|
end
|
|
81
80
|
|
|
82
81
|
# Returns true if RSpec is configured to allow interactivity.
|
|
83
|
-
# By default, interactivity is enabled unless the environment
|
|
82
|
+
# By default, interactivity is enabled unless the environment
|
|
84
83
|
# variable `CI` is set.
|
|
85
84
|
def interactive?
|
|
86
85
|
RSpec.configuration.interactive_approvals
|
|
@@ -96,7 +95,7 @@ module RSpecApprovals
|
|
|
96
95
|
def approval_file
|
|
97
96
|
"#{approvals_dir}/#{approval_name}"
|
|
98
97
|
end
|
|
99
|
-
|
|
98
|
+
|
|
100
99
|
protected
|
|
101
100
|
|
|
102
101
|
# Asks for user approval. Used by child classes.
|
|
@@ -110,39 +109,38 @@ module RSpecApprovals
|
|
|
110
109
|
File.exist?(approval_file) ? File.read(approval_file) : ''
|
|
111
110
|
end
|
|
112
111
|
|
|
113
|
-
# Do the actual test.
|
|
114
|
-
# - If .before() was used, we
|
|
112
|
+
# Do the actual test.
|
|
113
|
+
# - If .before() was used, we forward the actual output to the
|
|
115
114
|
# proc for processing first.
|
|
116
|
-
# - If before_approval proc was configured, forward the
|
|
115
|
+
# - If before_approval proc was configured, forward the actual output
|
|
117
116
|
# to the proc for processing.
|
|
118
|
-
# - If .diff() was used, then distance will be set and then
|
|
119
|
-
# we "levenshtein it".
|
|
117
|
+
# - If .diff() was used, then distance will be set and then
|
|
118
|
+
# we "levenshtein it".
|
|
120
119
|
# - Otherwise, compare with ==
|
|
121
120
|
def strings_match?
|
|
122
121
|
if @before
|
|
123
122
|
@before.each do |proc|
|
|
124
|
-
@actual = proc.call actual
|
|
123
|
+
@actual = proc.call actual
|
|
125
124
|
end
|
|
126
125
|
end
|
|
127
|
-
|
|
126
|
+
|
|
128
127
|
if RSpec.configuration.before_approval.is_a? Proc
|
|
129
128
|
@actual = RSpec.configuration.before_approval.call actual
|
|
130
129
|
end
|
|
131
130
|
|
|
132
131
|
if distance
|
|
133
|
-
@actual_distance =
|
|
132
|
+
@actual_distance = Levenshtein.distance expected, actual
|
|
134
133
|
@actual_distance <= distance
|
|
135
134
|
else
|
|
136
135
|
actual == expected
|
|
137
136
|
end
|
|
138
137
|
end
|
|
139
138
|
|
|
140
|
-
# Returns the input string stripped of ANSI escape codes if the
|
|
139
|
+
# Returns the input string stripped of ANSI escape codes if the
|
|
141
140
|
# strip_ansi_escape configuration setting was set to true
|
|
142
141
|
def sanitize(string)
|
|
143
142
|
sanitize? ? Strings::ANSI.sanitize(string) : string
|
|
144
143
|
end
|
|
145
144
|
end
|
|
146
|
-
|
|
147
145
|
end
|
|
148
146
|
end
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
require 'string-similarity'
|
|
2
|
-
|
|
3
1
|
module RSpecApprovals
|
|
4
2
|
module Matchers
|
|
5
3
|
# Adds the matcher to RSpec:
|
|
@@ -7,9 +5,11 @@ module RSpecApprovals
|
|
|
7
5
|
def match_approval(expected)
|
|
8
6
|
MatchApproval.new expected
|
|
9
7
|
end
|
|
10
|
-
|
|
8
|
+
|
|
11
9
|
class MatchApproval < Base
|
|
10
|
+
def description
|
|
11
|
+
%[match approval "#{approval_name}"]
|
|
12
|
+
end
|
|
12
13
|
end
|
|
13
|
-
|
|
14
14
|
end
|
|
15
|
-
end
|
|
15
|
+
end
|
|
@@ -5,11 +5,12 @@ module RSpecApprovals
|
|
|
5
5
|
def output_approval(expected)
|
|
6
6
|
OutputApproval.new expected
|
|
7
7
|
end
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
class OutputApproval < Base
|
|
10
10
|
# Called by RSpec
|
|
11
11
|
def matches?(block)
|
|
12
12
|
return false unless block.is_a? Proc
|
|
13
|
+
|
|
13
14
|
@actual = stream_capturer.capture block
|
|
14
15
|
super
|
|
15
16
|
end
|
|
@@ -19,6 +20,10 @@ module RSpecApprovals
|
|
|
19
20
|
true
|
|
20
21
|
end
|
|
21
22
|
|
|
23
|
+
def description
|
|
24
|
+
%[output approval "#{approval_name}"]
|
|
25
|
+
end
|
|
26
|
+
|
|
22
27
|
# Adds chained matcher, to allow:
|
|
23
28
|
# expect { stream }.to output_approval(file).to_stdout
|
|
24
29
|
# This is the default, and only provided for completeness.
|
|
@@ -37,7 +42,6 @@ module RSpecApprovals
|
|
|
37
42
|
def stream_capturer
|
|
38
43
|
@stream_capturer ||= Stream::Stdout
|
|
39
44
|
end
|
|
40
|
-
|
|
41
45
|
end
|
|
42
46
|
end
|
|
43
|
-
end
|
|
47
|
+
end
|
|
@@ -5,11 +5,12 @@ module RSpecApprovals
|
|
|
5
5
|
def raise_approval(expected)
|
|
6
6
|
RaiseApproval.new expected
|
|
7
7
|
end
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
class RaiseApproval < Base
|
|
10
10
|
# Called by RSpec
|
|
11
11
|
def matches?(block)
|
|
12
12
|
return false unless block.is_a? Proc
|
|
13
|
+
|
|
13
14
|
@actual = 'Nothing raised'
|
|
14
15
|
|
|
15
16
|
begin
|
|
@@ -25,6 +26,10 @@ module RSpecApprovals
|
|
|
25
26
|
def supports_block_expectations?
|
|
26
27
|
true
|
|
27
28
|
end
|
|
29
|
+
|
|
30
|
+
def description
|
|
31
|
+
%[raise approval "#{approval_name}"]
|
|
32
|
+
end
|
|
28
33
|
end
|
|
29
34
|
end
|
|
30
|
-
end
|
|
35
|
+
end
|
|
@@ -8,18 +8,18 @@ module RSpecApprovals
|
|
|
8
8
|
|
|
9
9
|
def select(prompt, default, options)
|
|
10
10
|
options.each do |key, config|
|
|
11
|
-
color = key == default ? '
|
|
12
|
-
say "
|
|
11
|
+
color = key == default ? 'r' : 'g'
|
|
12
|
+
say "#{color}`#{key}`) #{config.first}"
|
|
13
13
|
end
|
|
14
|
-
|
|
15
|
-
say "\
|
|
16
|
-
response =
|
|
17
|
-
|
|
14
|
+
|
|
15
|
+
say "\nb`#{prompt}` "
|
|
16
|
+
response = $stdin.getch.downcase
|
|
17
|
+
|
|
18
18
|
response = default unless options.has_key? response
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
|
|
20
|
+
say "m`#{options[response].first}`", replace: true
|
|
21
21
|
options[response].last
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
|
-
end
|
|
25
|
+
end
|
|
@@ -19,11 +19,9 @@ module RSpecApprovals
|
|
|
19
19
|
$stderr = RSpecApprovals.stderr
|
|
20
20
|
block.call
|
|
21
21
|
RSpecApprovals.send(stream).string.dup
|
|
22
|
-
|
|
23
22
|
ensure
|
|
24
23
|
$stdout = stdout_original_stream
|
|
25
24
|
$stderr = stderr_original_stream
|
|
26
|
-
|
|
27
25
|
end
|
|
28
26
|
end
|
|
29
27
|
|
|
@@ -39,4 +37,4 @@ module RSpecApprovals
|
|
|
39
37
|
end
|
|
40
38
|
end
|
|
41
39
|
end
|
|
42
|
-
end
|
|
40
|
+
end
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module RSpecApprovals
|
|
2
|
-
VERSION =
|
|
3
|
-
end
|
|
2
|
+
VERSION = '0.9.4'
|
|
3
|
+
end
|
data/lib/rspec_approvals.rb
CHANGED
|
@@ -5,10 +5,10 @@ require 'rspec_approvals/module_functions'
|
|
|
5
5
|
require 'rspec_approvals/prompt'
|
|
6
6
|
require 'rspec_approvals/stream'
|
|
7
7
|
require 'rspec_approvals/approval_handler'
|
|
8
|
+
require 'rspec_approvals/levenshtein'
|
|
8
9
|
require 'rspec_approvals/matchers/base'
|
|
9
10
|
require 'rspec_approvals/matchers/match_approval'
|
|
10
11
|
require 'rspec_approvals/matchers/output_approval'
|
|
11
12
|
require 'rspec_approvals/matchers/raise_approval'
|
|
12
13
|
|
|
13
14
|
require 'rspec_approvals/rspec_config'
|
|
14
|
-
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: colsole
|
|
@@ -16,56 +15,42 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0
|
|
18
|
+
version: '1.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: string-similarity
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.0'
|
|
25
|
+
version: '1.0'
|
|
41
26
|
- !ruby/object:Gem::Dependency
|
|
42
27
|
name: diffy
|
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
|
44
29
|
requirements:
|
|
45
30
|
- - "~>"
|
|
46
31
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '3.
|
|
32
|
+
version: '3.4'
|
|
48
33
|
type: :runtime
|
|
49
34
|
prerelease: false
|
|
50
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
36
|
requirements:
|
|
52
37
|
- - "~>"
|
|
53
38
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '3.
|
|
39
|
+
version: '3.4'
|
|
55
40
|
- !ruby/object:Gem::Dependency
|
|
56
41
|
name: strings-ansi
|
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
|
58
43
|
requirements:
|
|
59
44
|
- - "~>"
|
|
60
45
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0.
|
|
46
|
+
version: '0.2'
|
|
62
47
|
type: :runtime
|
|
63
48
|
prerelease: false
|
|
64
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
50
|
requirements:
|
|
66
51
|
- - "~>"
|
|
67
52
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0.
|
|
53
|
+
version: '0.2'
|
|
69
54
|
description: Automatic interactive approvals for rspec
|
|
70
55
|
email: db@dannyben.com
|
|
71
56
|
executables: []
|
|
@@ -77,6 +62,7 @@ files:
|
|
|
77
62
|
- lib/rspec_approvals/approval_handler.rb
|
|
78
63
|
- lib/rspec_approvals/extensions/file.rb
|
|
79
64
|
- lib/rspec_approvals/extensions/stringio.rb
|
|
65
|
+
- lib/rspec_approvals/levenshtein.rb
|
|
80
66
|
- lib/rspec_approvals/matchers/base.rb
|
|
81
67
|
- lib/rspec_approvals/matchers/match_approval.rb
|
|
82
68
|
- lib/rspec_approvals/matchers/output_approval.rb
|
|
@@ -89,8 +75,11 @@ files:
|
|
|
89
75
|
homepage: https://github.com/DannyBen/rspec_approvals
|
|
90
76
|
licenses:
|
|
91
77
|
- MIT
|
|
92
|
-
metadata:
|
|
93
|
-
|
|
78
|
+
metadata:
|
|
79
|
+
bug_tracker_uri: https://github.com/dannyben/rspec_approvals/issues
|
|
80
|
+
changelog_uri: https://github.com/dannyben/rspec_approvals/blob/master/CHANGELOG.md
|
|
81
|
+
source_code_uri: https://github.com/dannyben/rspec_approvals
|
|
82
|
+
rubygems_mfa_required: 'true'
|
|
94
83
|
rdoc_options: []
|
|
95
84
|
require_paths:
|
|
96
85
|
- lib
|
|
@@ -98,15 +87,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
98
87
|
requirements:
|
|
99
88
|
- - ">="
|
|
100
89
|
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
90
|
+
version: '3.3'
|
|
102
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
92
|
requirements:
|
|
104
93
|
- - ">="
|
|
105
94
|
- !ruby/object:Gem::Version
|
|
106
95
|
version: '0'
|
|
107
96
|
requirements: []
|
|
108
|
-
rubygems_version:
|
|
109
|
-
signing_key:
|
|
97
|
+
rubygems_version: 4.0.19
|
|
110
98
|
specification_version: 4
|
|
111
99
|
summary: Interactive RSpec Approvals
|
|
112
100
|
test_files: []
|