flakey_spec_catcher 0.9.3 → 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/lib/flakey_spec_catcher/git_controller.rb +3 -0
- data/lib/flakey_spec_catcher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 741a4b99da98b4eed541bd4dc36476c66a3df1efd21e6a79ea00547202b9e30e
|
|
4
|
+
data.tar.gz: 48cb6f40ee8cf9f7019639622a8f3d9dc366b3b6691fde3418a1197dd0d0672e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e135869d651917524f5abd7015f651a636a3d4c584a99a2d6860e094f3754779e2d0798d81f5b51df3bb9da323743a720c7a8f15ad160cbc7cf228794995f1a7
|
|
7
|
+
data.tar.gz: a665e8efe5d67ec47706fde62a3cfc7a087303950e32778819154bacac2da4f7efd5a7135ca2236ab2ab6851e338e519924b06a76d5d73be10a4a7348afd4409
|
|
@@ -108,10 +108,12 @@ module FlakeySpecCatcher
|
|
|
108
108
|
@git_comparison = "#{@base_commit_sha}..#{@working_commit_sha}"
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
+
# rubocop:disable Metrics/AbcSize
|
|
111
112
|
def parse_changes
|
|
112
113
|
# For each file, get the change block
|
|
113
114
|
diff_files.each do |filename|
|
|
114
115
|
next unless filename =~ /_spec.rb/
|
|
116
|
+
next unless File.file?(filename)
|
|
115
117
|
|
|
116
118
|
# Get diff pairs [ /path/to/file, "@@ -19 +19,4 @@" ]
|
|
117
119
|
diff = `git diff --unified=0 #{@git_comparison} -- #{filename}`
|
|
@@ -126,6 +128,7 @@ module FlakeySpecCatcher
|
|
|
126
128
|
end
|
|
127
129
|
end
|
|
128
130
|
end
|
|
131
|
+
# rubocop:enable Metrics/AbcSize
|
|
129
132
|
|
|
130
133
|
def identify_change_contexts
|
|
131
134
|
@capsule_manager.change_capsules.each(&:fill_contexts)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flakey_spec_catcher
|
|
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
|
- Brian Watson
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2020-02-
|
|
13
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|