deep-cover 0.5.3 → 0.5.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
- SHA256:
3
- metadata.gz: f6177553f2233c0751899ecb895cc73ae75777977f26330b76e51507e875eb05
4
- data.tar.gz: 213472177be49d89c862b8e0c334c6e5d86ec97d9abc193f201b9ca863092d53
2
+ SHA1:
3
+ metadata.gz: 0bba970164c728e793e997703cbd54329ebf2cbe
4
+ data.tar.gz: 6b0f4d81fec095c929499c23376f6c4126492b05
5
5
  SHA512:
6
- metadata.gz: 375e33c302f38bda95139adaf8ee2d4500e935ce980794e6dcd382bcd6af42ba8a58c1aa98c830cfd0974ed21763f17bc8341b5720f40900f855a9e7a584e9fd
7
- data.tar.gz: b62f8dd1c0978a69b2c0b80850def8adcfda8c8c861dc8c33e803b670ea6cd779c726678f703037f53c0b93ec72c2868dfb73a447baa2bd5799e7d030b295bb7
6
+ metadata.gz: 0bf7681b2d1b3f6ab26322d40d5b2a8ccf9017d5ee6de335c083997c9f520077ef6bfadf67e28c724c781af856444cc98d320bba81757bc61d80eab5fe6fdcaf
7
+ data.tar.gz: ddff0db12f706e8d30e6d5c7cfd226043befd7310476986943fdcfcd8e954d1dd55d02160291baa6c322cf8bfcf6f30a96548d17ff40bbdfa03df9518dc5cb18
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.add_runtime_dependency 'with_progress'
41
41
 
42
42
  # Reporters
43
+ spec.add_runtime_dependency 'sass'
43
44
  spec.add_runtime_dependency 'terminal-table'
44
45
 
45
46
  # While in 0.x
@@ -14,14 +14,12 @@ module DeepCover
14
14
  end
15
15
 
16
16
  def run
17
- require 'bundler'
18
- require 'bundler/cli'
19
- require 'bundler/cli/exec'
20
17
  require 'yaml'
21
18
  require_relative '../backports'
22
- ENV['DEEP_COVER'] = 't'
23
- ENV['DEEP_COVER_OPTIONS'] = YAML.dump(@options.slice(*DEFAULTS.keys))
24
- Bundler::CLI::Exec.new(Option.new, @argv).run
19
+ env_var = {'DEEP_COVER' => 't',
20
+ 'DEEP_COVER_OPTIONS' => YAML.dump(@options.slice(*DEFAULTS.keys))}
21
+
22
+ system(env_var, *@argv)
25
23
  end
26
24
  end
27
25
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepCover
4
+ require 'sass'
4
5
  require_relative 'base'
5
6
  require_relative 'index'
6
7
  require_relative 'source'
@@ -28,9 +29,8 @@ module DeepCover
28
29
  end
29
30
 
30
31
  def compile_stylesheet(source, dest)
31
- Bundler.with_clean_env do
32
- `sass #{source} #{dest}`
33
- end
32
+ css = Sass::Engine.for_file(source, style: :expanded).to_css
33
+ File.write(dest, css)
34
34
  end
35
35
 
36
36
  def render_index
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepCover
4
- VERSION = '0.5.3'
4
+ VERSION = '0.5.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep-cover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
@@ -123,6 +123,20 @@ dependencies:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sass
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
126
140
  - !ruby/object:Gem::Dependency
127
141
  name: terminal-table
128
142
  requirement: !ruby/object:Gem::Requirement
@@ -398,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
412
  version: '0'
399
413
  requirements: []
400
414
  rubyforge_project:
401
- rubygems_version: 2.7.7
415
+ rubygems_version: 2.6.11
402
416
  signing_key:
403
417
  specification_version: 4
404
418
  summary: In depth coverage of your Ruby code.