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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65050cba58d4c4af27b6361adb1e398d7cc17190f5cd9f437b75ebe551fd47d9
4
- data.tar.gz: 9e27906a329ce6748ef8023ba4ef7e14747ca612516052396369cd23798ae2be
3
+ metadata.gz: e6ce67ae80be9650cde586f9bb8e0496dfebcd2ad7b8176714657cad29cd1eac
4
+ data.tar.gz: fa0475934c2c8b95e383ce494c69264f74fb29d7a31f33c2218459e71e7b747d
5
5
  SHA512:
6
- metadata.gz: f2e15acaf1a9ccf76fca83a1fe9c2b0d5189b32ce60e9b2583b0f87a5c8296575f1669d96b9dddffaf9e9cc7d5ebd2192f675665c6f55ef73176eeb50bf2251d
7
- data.tar.gz: 64e9dff68ef4a4efee7e903aff00ce60358a3c15853e487009c56828bffa1f510a2d0dd762b08973fc58ccccb948179aa5787badd4ffed07a094d1ccaaf5a721
6
+ metadata.gz: 5cecc1f2ab8fc64c0003734a7e98acba98ad25310ae28be596b21f4230dbf856922b4f495428587353ace8bf568edae6d82ae1051f2a5150ee415b3f6b9107fe
7
+ data.tar.gz: 13cffc32f6884dda4911caba487d583b95bcf3f5830b5322674749ba308b839d8ad72b52a1c75dfe42fda533b0c02c55ab15638d11065386a89aed0a70d0327e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- @output.mark(location.path, location.lineno, 1)
36
- elsif path = trace.path
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
@@ -69,7 +69,7 @@ module Covered
69
69
  attr :paths
70
70
 
71
71
  def executable?(node)
72
- node.type == :send
72
+ node.type == :send || node.type == :yield
73
73
  end
74
74
 
75
75
  def ignore?(node)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Covered
22
- VERSION = "0.14.1"
22
+ VERSION = "0.14.2"
23
23
  end
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.1
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.1.6
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
Binary file
Binary file
data/media/.DS_Store DELETED
Binary file