deep-cover-core 0.6.3 → 0.6.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: 816fae50c259da55ed708777ab07a766db8a2ae2bbeaca01fc0acb2a94034264
4
- data.tar.gz: be46ca7084d3fdaf20bbc54f3448e3f3d1f2c147afbeb63042f845b3adf73132
3
+ metadata.gz: 786d0c79f687a02eefb1e3c9dc1af8c9b4b25d4c18fa86988d1c1a84d56f80e6
4
+ data.tar.gz: 6b3ef23fa825eb7f72673e4a4be0fe3889418c035d0b87c17323c2ceb97f5fba
5
5
  SHA512:
6
- metadata.gz: 3755d0a7f730d5d108cba2b4107b6ede58042d8ba2542de4a2565bd72587fb412387f7c19bf3c372e4b67d16b4779b73311fe64e5a408f57709a3ef04d3ea189
7
- data.tar.gz: a58c040766839bd19472d845e54222a3ea6292391e6befab767b3827f4640e4f5d391601aebfabf5984e89db3c62bc75f61b6e9c6db71bbc38c9249d78627928
6
+ metadata.gz: 42806a5cf72180c3af74f5df4d03c067f52cade9d473adb2794db02416496de9aa6100390a4d3a597710378d8dd9bfbef783a65394cf9920adff115af53108cb
7
+ data.tar.gz: 20d7363fe8fa8c1195d0eaf98f21f91bbfeb2371383fde3b1bddc28f986b503da7ef397f4d1ac3f61a49790018fc08ae038bf9314edf4f0e77ffab0eafce8283
@@ -167,7 +167,7 @@ module DeepCover
167
167
  msg = "\nHTML coverage written to: '#{output}/index.html'"
168
168
  end
169
169
  end
170
- `cd #{dir} && nyc report --reporter=text #{html}` + msg.to_s
170
+ `cd #{dir} && #{Istanbul.bin_path} report --reporter=text #{html}` + msg.to_s
171
171
  end
172
172
 
173
173
  class << self
@@ -176,7 +176,11 @@ module DeepCover
176
176
  end
177
177
 
178
178
  def available?
179
- `nyc --version` >= '11.' rescue false
179
+ `#{bin_path} --version` >= '11.' rescue false
180
+ end
181
+
182
+ def bin_path
183
+ ::File.executable?('node_modules/.bin/nyc') ? 'node_modules/.bin/nyc' : 'nyc'
180
184
  end
181
185
  end
182
186
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepCover
4
- VERSION = '0.6.3'
4
+ VERSION = '0.6.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep-cover-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-08-21 00:00:00.000000000 Z
12
+ date: 2018-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parser