covered 0.14.1 → 0.14.2
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
- checksums.yaml.gz.sig +0 -0
- data/lib/covered/capture.rb +6 -3
- data/lib/covered/source.rb +1 -1
- data/lib/covered/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -5
- metadata.gz.sig +0 -0
- data/examples/coverage/.DS_Store +0 -0
- data/examples/coverage/erb/.covered.db +0 -0
- data/media/.DS_Store +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6ce67ae80be9650cde586f9bb8e0496dfebcd2ad7b8176714657cad29cd1eac
|
|
4
|
+
data.tar.gz: fa0475934c2c8b95e383ce494c69264f74fb29d7a31f33c2218459e71e7b747d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cecc1f2ab8fc64c0003734a7e98acba98ad25310ae28be596b21f4230dbf856922b4f495428587353ace8bf568edae6d82ae1051f2a5150ee415b3f6b9107fe
|
|
7
|
+
data.tar.gz: 13cffc32f6884dda4911caba487d583b95bcf3f5830b5322674749ba308b839d8ad72b52a1c75dfe42fda533b0c02c55ab15638d11065386a89aed0a70d0327e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/covered/capture.rb
CHANGED
|
@@ -31,9 +31,12 @@ module Covered
|
|
|
31
31
|
@trace = TracePoint.new(:line, :call, :c_call) do |trace|
|
|
32
32
|
if trace.event == :call
|
|
33
33
|
# Ruby doesn't always mark call-sites in sub-expressions, so we use this approach to compute a call site and mark it:
|
|
34
|
-
location = caller_locations(2, 1).first
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if location = caller_locations(2, 1).first and path = location.path
|
|
35
|
+
@output.mark(path, location.lineno, 1)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
if path = trace.path
|
|
37
40
|
@output.mark(path, trace.lineno, 1)
|
|
38
41
|
end
|
|
39
42
|
end
|
data/lib/covered/source.rb
CHANGED
data/lib/covered/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: covered
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -161,9 +161,7 @@ extra_rdoc_files: []
|
|
|
161
161
|
files:
|
|
162
162
|
- ".github/workflows/development.yml"
|
|
163
163
|
- ".github/workflows/documentation.yml"
|
|
164
|
-
- examples/coverage/.DS_Store
|
|
165
164
|
- examples/coverage/covered.rb
|
|
166
|
-
- examples/coverage/erb/.covered.db
|
|
167
165
|
- examples/coverage/erb/coverage.rb
|
|
168
166
|
- examples/coverage/erb/template.erb
|
|
169
167
|
- examples/coverage/parser.rb
|
|
@@ -186,7 +184,6 @@ files:
|
|
|
186
184
|
- lib/covered/summary.rb
|
|
187
185
|
- lib/covered/version.rb
|
|
188
186
|
- lib/covered/wrapper.rb
|
|
189
|
-
- media/.DS_Store
|
|
190
187
|
- media/example.png
|
|
191
188
|
homepage: https://github.com/ioquatix/covered
|
|
192
189
|
licenses:
|
|
@@ -208,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
208
205
|
- !ruby/object:Gem::Version
|
|
209
206
|
version: '0'
|
|
210
207
|
requirements: []
|
|
211
|
-
rubygems_version: 3.
|
|
208
|
+
rubygems_version: 3.3.7
|
|
212
209
|
signing_key:
|
|
213
210
|
specification_version: 4
|
|
214
211
|
summary: A modern approach to code coverage.
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/examples/coverage/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
data/media/.DS_Store
DELETED
|
Binary file
|