covered 0.16.0 → 0.16.1

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: bd761cd8a63400d76fbc57d7b12ecde5965e65d5f102e8e00922324fe1122211
4
- data.tar.gz: 46f677a145a2000644179350e533c71afa918e7c189738e7e1885a7c825c898e
3
+ metadata.gz: b81262b921d5bf71ca05d985d28c806967de336642687e6541507ac55f9eb5ce
4
+ data.tar.gz: 4afab1fb523ee9403e6a70c9fc84cb301152f32a8c273367fac79c994cd5e7b8
5
5
  SHA512:
6
- metadata.gz: 6877f782692afc1640bae6f6755fc5e68f7fdbcbe1e815ac7c255005dfbf7e523fa2fb4ff92aee45d65a5745dda502d1ad5bbedd0b2ae25d63335933a348eb7b
7
- data.tar.gz: 631fa71834807f84cf3aac8b22803d3659ac1b3ac732e2ccf86f5a9e6096501e929b1a993d6eddec817dee18810f91453093d2261a57fa311055cf841b3da93f
6
+ metadata.gz: a59901d7eaca8f7494879453b9df6e024ebe97fa039d5be732edc51c8f9acd258db76a2bc35f4b4a500d69bab68a184da3b70c63a375c5f2f7670c8aeb0e8f15
7
+ data.tar.gz: 2092189dd748a544104b63597018b31913b1ec4bbea477a2907cdd01fb8dfcd5dbe842b5d341d58601e9fba62e5a2e2e2077fec572a5375dc98343ca8b6758d6
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/covered/cache.rb CHANGED
@@ -32,7 +32,7 @@ module Covered
32
32
 
33
33
  def mark(path, lineno, count = 1)
34
34
  if @marks
35
- @marks << path << lineno << count
35
+ @marks.push(path, lineno, count)
36
36
  else
37
37
  super
38
38
  end
@@ -68,8 +68,17 @@ module Covered
68
68
 
69
69
  attr :paths
70
70
 
71
+ EXECUTABLE = {
72
+ send: true,
73
+ yield: true,
74
+ return: true,
75
+ lvar: true,
76
+ ivar: true,
77
+ def: true
78
+ }
79
+
71
80
  def executable?(node)
72
- node.type == :send || node.type == :yield
81
+ EXECUTABLE[node.type]
73
82
  end
74
83
 
75
84
  def ignore?(node)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Covered
22
- VERSION = "0.16.0"
22
+ VERSION = "0.16.1"
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.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file