covered 0.16.3 → 0.16.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3ec9e58976df4dd7611cd55dd8f7c3e21267147453e1ea6be3339a8bfc98d6f
4
- data.tar.gz: 7ff2d500f8b308186f1db4609c5b1f14594ead77b77c77df54efc5953586a6e5
3
+ metadata.gz: 39e5ee486e1ba129e36b7b48c3d2068662e2ae032f9de5708e02a8b5cdc955d1
4
+ data.tar.gz: 7efaace9108f786e19ecbaf31643f1b5a3cd1cc139d2b7ec5680db9941a3611b
5
5
  SHA512:
6
- metadata.gz: e835b21f824253f8aef9aa500f01d7a0d4235cdb17f5799858d6e66deb2afe3970e63a4761c1c0f9d97cf2522e56ead2226103e12cc87a6a6b2079add132ffcb
7
- data.tar.gz: e81491a1f50577050c58cdc0ae11e0b230097456d71ac544c640a977927a685aa7844ef24c886385c7ab6aa1f490182c7963c0833776655c71c06b583c3ac322
6
+ metadata.gz: d0cab14e3b5af68a8144ebe2c6686da487c74045e277971c79d9354f9e3b3db9dfb05c54e98bcdde555e4baa6955f25ffc7664fa7a538ba33d5bd95790bd5386
7
+ data.tar.gz: 4970f5c5fa059388be9d8660b61a3ee3cc69d210b3acaae0b3213ae360ef964db4d344ca4d8be1df56479fbbd0fb42e5caa801042e369343ce88fc98ad02fc36
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- �Tz���-捈 �؄�إ�GgG'�������������ØD����6�/�H ����\m^�|�MEkH�e[�����B���)��t~�]y;\�CQ����;l �.������EII���87c��o�z�C��r���
2
- ��ʜ��к��|lG�WZ�ꖠB����1�!��˛��/|�hQ�aI������P̳��L
3
- ^јwg���SMO/�jm��CWܚ�vT$BVO����t�?�[�ܡ���
1
+ ��|Of_wy��#-�M9�+��/q�<��y��csi��ht_@��]14�[���a�=5s���8=bH�^�-qr�y����A����}{���[.�+} Vre4Ǩ�5�'zߦ�|KD<fuk Ro�<i
2
+ 0b�JDWը��~�L*���J )���$P����;��a=x��* 2{��n���֋0/5�-^U�P!ƣ�lP4�zn ��#vN�s�� <�T���p���^�����
3
+ J��I:���%\7;���e/>�Ƙs��Qn_
@@ -101,16 +101,19 @@ module Covered
101
101
  if ignore?(node)
102
102
  # coverage.annotate(node.location.line, "ignoring #{node.type}")
103
103
  else
104
- if executable?(node)
104
+ if node.type == :send
105
+ # We want to mark the line which has the method on it:
106
+ coverage.counts[node.location.selector.line] ||= 0
107
+ elsif executable?(node)
105
108
  # coverage.annotate(node.location.line, "executable #{node.type}")
106
109
  coverage.counts[node.location.line] ||= 0
107
- elsif node.location
108
- # coverage.annotate(node.location.line, "not executable #{node.type}") rescue nil
110
+ # elsif location = node.location
111
+ # coverage.annotate(location.line, "not executable #{node.type}") rescue nil
109
112
  end
110
113
 
111
- if node.type == :send
112
- # coverage.annotate(node.location.line, "ignoring #{node.type} children")
113
- end
114
+ # if node.type == :send
115
+ # coverage.annotate(node.location.line, "ignoring #{node.type} children")
116
+ # end
114
117
 
115
118
  expand(node.children, coverage, level + 1)
116
119
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Covered
22
- VERSION = "0.16.3"
22
+ VERSION = "0.16.4"
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.16.3
4
+ version: 0.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -39,7 +39,7 @@ cert_chain:
39
39
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
40
40
  HiLJ8VOFx6w=
41
41
  -----END CERTIFICATE-----
42
- date: 2022-06-15 00:00:00.000000000 Z
42
+ date: 2022-06-22 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: async-rest
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.1.6
200
+ rubygems_version: 3.3.7
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: A modern approach to code coverage.
metadata.gz.sig CHANGED
Binary file