deep-cover 0.6.2 → 0.6.3.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/.rspec +2 -1
  4. data/.rspec_all +2 -1
  5. data/.rubocop.yml +8 -9
  6. data/Gemfile +2 -0
  7. data/Rakefile +32 -6
  8. data/bin/cov +3 -3
  9. data/deep_cover.gemspec +3 -16
  10. data/exe/deep-cover +5 -0
  11. data/lib/deep_cover/cli/debugger.rb +1 -1
  12. data/lib/deep_cover/cli/exec.rb +1 -1
  13. data/lib/deep_cover/cli/instrumented_clone_reporter.rb +5 -3
  14. data/lib/deep_cover/cli/runner.rb +2 -2
  15. data/lib/deep_cover/{tools/dump_covered_code.rb → dump_covered_code.rb} +2 -0
  16. metadata +10 -203
  17. data/lib/deep-cover.rb +0 -3
  18. data/lib/deep_cover.rb +0 -22
  19. data/lib/deep_cover/analyser.rb +0 -23
  20. data/lib/deep_cover/analyser/base.rb +0 -104
  21. data/lib/deep_cover/analyser/branch.rb +0 -41
  22. data/lib/deep_cover/analyser/covered_code_source.rb +0 -21
  23. data/lib/deep_cover/analyser/function.rb +0 -14
  24. data/lib/deep_cover/analyser/node.rb +0 -54
  25. data/lib/deep_cover/analyser/per_char.rb +0 -38
  26. data/lib/deep_cover/analyser/per_line.rb +0 -41
  27. data/lib/deep_cover/analyser/ruby25_like_branch.rb +0 -211
  28. data/lib/deep_cover/analyser/statement.rb +0 -33
  29. data/lib/deep_cover/analyser/stats.rb +0 -54
  30. data/lib/deep_cover/analyser/subset.rb +0 -27
  31. data/lib/deep_cover/auto_run.rb +0 -71
  32. data/lib/deep_cover/autoload_tracker.rb +0 -215
  33. data/lib/deep_cover/backports.rb +0 -22
  34. data/lib/deep_cover/base.rb +0 -117
  35. data/lib/deep_cover/basics.rb +0 -22
  36. data/lib/deep_cover/builtin_takeover.rb +0 -10
  37. data/lib/deep_cover/config.rb +0 -104
  38. data/lib/deep_cover/config_setter.rb +0 -33
  39. data/lib/deep_cover/core_ext/autoload_overrides.rb +0 -112
  40. data/lib/deep_cover/core_ext/coverage_replacement.rb +0 -61
  41. data/lib/deep_cover/core_ext/exec_callbacks.rb +0 -27
  42. data/lib/deep_cover/core_ext/instruction_sequence_load_iseq.rb +0 -32
  43. data/lib/deep_cover/core_ext/load_overrides.rb +0 -19
  44. data/lib/deep_cover/core_ext/require_overrides.rb +0 -28
  45. data/lib/deep_cover/coverage.rb +0 -125
  46. data/lib/deep_cover/coverage/analysis.rb +0 -42
  47. data/lib/deep_cover/coverage/persistence.rb +0 -84
  48. data/lib/deep_cover/covered_code.rb +0 -145
  49. data/lib/deep_cover/custom_requirer.rb +0 -187
  50. data/lib/deep_cover/flag_comment_associator.rb +0 -68
  51. data/lib/deep_cover/load.rb +0 -66
  52. data/lib/deep_cover/memoize.rb +0 -48
  53. data/lib/deep_cover/module_override.rb +0 -39
  54. data/lib/deep_cover/node.rb +0 -23
  55. data/lib/deep_cover/node/arguments.rb +0 -51
  56. data/lib/deep_cover/node/assignments.rb +0 -273
  57. data/lib/deep_cover/node/base.rb +0 -155
  58. data/lib/deep_cover/node/begin.rb +0 -27
  59. data/lib/deep_cover/node/block.rb +0 -61
  60. data/lib/deep_cover/node/branch.rb +0 -32
  61. data/lib/deep_cover/node/case.rb +0 -113
  62. data/lib/deep_cover/node/collections.rb +0 -31
  63. data/lib/deep_cover/node/const.rb +0 -12
  64. data/lib/deep_cover/node/def.rb +0 -40
  65. data/lib/deep_cover/node/empty_body.rb +0 -32
  66. data/lib/deep_cover/node/exceptions.rb +0 -79
  67. data/lib/deep_cover/node/if.rb +0 -73
  68. data/lib/deep_cover/node/keywords.rb +0 -86
  69. data/lib/deep_cover/node/literals.rb +0 -100
  70. data/lib/deep_cover/node/loops.rb +0 -74
  71. data/lib/deep_cover/node/mixin/can_augment_children.rb +0 -65
  72. data/lib/deep_cover/node/mixin/check_completion.rb +0 -18
  73. data/lib/deep_cover/node/mixin/child_can_be_empty.rb +0 -27
  74. data/lib/deep_cover/node/mixin/executed_after_children.rb +0 -15
  75. data/lib/deep_cover/node/mixin/execution_location.rb +0 -66
  76. data/lib/deep_cover/node/mixin/filters.rb +0 -47
  77. data/lib/deep_cover/node/mixin/flow_accounting.rb +0 -71
  78. data/lib/deep_cover/node/mixin/has_child.rb +0 -145
  79. data/lib/deep_cover/node/mixin/has_child_handler.rb +0 -75
  80. data/lib/deep_cover/node/mixin/has_tracker.rb +0 -46
  81. data/lib/deep_cover/node/mixin/is_statement.rb +0 -20
  82. data/lib/deep_cover/node/mixin/rewriting.rb +0 -35
  83. data/lib/deep_cover/node/mixin/wrapper.rb +0 -15
  84. data/lib/deep_cover/node/module.rb +0 -66
  85. data/lib/deep_cover/node/root.rb +0 -20
  86. data/lib/deep_cover/node/send.rb +0 -161
  87. data/lib/deep_cover/node/short_circuit.rb +0 -42
  88. data/lib/deep_cover/node/splat.rb +0 -15
  89. data/lib/deep_cover/node/variables.rb +0 -16
  90. data/lib/deep_cover/parser_ext/range.rb +0 -21
  91. data/lib/deep_cover/problem_with_diagnostic.rb +0 -63
  92. data/lib/deep_cover/reporter.rb +0 -10
  93. data/lib/deep_cover/reporter/base.rb +0 -68
  94. data/lib/deep_cover/reporter/html.rb +0 -15
  95. data/lib/deep_cover/reporter/html/base.rb +0 -14
  96. data/lib/deep_cover/reporter/html/index.rb +0 -59
  97. data/lib/deep_cover/reporter/html/site.rb +0 -70
  98. data/lib/deep_cover/reporter/html/source.rb +0 -136
  99. data/lib/deep_cover/reporter/html/template/assets/32px.png +0 -0
  100. data/lib/deep_cover/reporter/html/template/assets/40px.png +0 -0
  101. data/lib/deep_cover/reporter/html/template/assets/deep_cover.css.sass +0 -336
  102. data/lib/deep_cover/reporter/html/template/assets/jquery-3.2.1.min.js +0 -4
  103. data/lib/deep_cover/reporter/html/template/assets/jquery-3.2.1.min.map +0 -1
  104. data/lib/deep_cover/reporter/html/template/assets/jstree.css +0 -1108
  105. data/lib/deep_cover/reporter/html/template/assets/jstree.js +0 -8424
  106. data/lib/deep_cover/reporter/html/template/assets/jstreetable.js +0 -1069
  107. data/lib/deep_cover/reporter/html/template/assets/throbber.gif +0 -0
  108. data/lib/deep_cover/reporter/html/template/index.html.erb +0 -75
  109. data/lib/deep_cover/reporter/html/template/source.html.erb +0 -35
  110. data/lib/deep_cover/reporter/istanbul.rb +0 -184
  111. data/lib/deep_cover/reporter/text.rb +0 -58
  112. data/lib/deep_cover/reporter/tree/util.rb +0 -86
  113. data/lib/deep_cover/tools.rb +0 -22
  114. data/lib/deep_cover/tools/blank.rb +0 -25
  115. data/lib/deep_cover/tools/builtin_coverage.rb +0 -55
  116. data/lib/deep_cover/tools/camelize.rb +0 -13
  117. data/lib/deep_cover/tools/content_tag.rb +0 -11
  118. data/lib/deep_cover/tools/covered.rb +0 -9
  119. data/lib/deep_cover/tools/execute_sample.rb +0 -34
  120. data/lib/deep_cover/tools/format.rb +0 -18
  121. data/lib/deep_cover/tools/format_char_cover.rb +0 -19
  122. data/lib/deep_cover/tools/format_generated_code.rb +0 -27
  123. data/lib/deep_cover/tools/indent_string.rb +0 -26
  124. data/lib/deep_cover/tools/merge.rb +0 -16
  125. data/lib/deep_cover/tools/number_lines.rb +0 -22
  126. data/lib/deep_cover/tools/our_coverage.rb +0 -11
  127. data/lib/deep_cover/tools/profiling.rb +0 -68
  128. data/lib/deep_cover/tools/render_template.rb +0 -13
  129. data/lib/deep_cover/tools/require_relative_dir.rb +0 -12
  130. data/lib/deep_cover/tools/scan_match_datas.rb +0 -10
  131. data/lib/deep_cover/tools/silence_warnings.rb +0 -18
  132. data/lib/deep_cover/tools/slice.rb +0 -9
  133. data/lib/deep_cover/tools/strip_heredoc.rb +0 -18
  134. data/lib/deep_cover/tools/truncate_backtrace.rb +0 -32
  135. data/lib/deep_cover/tracker_bucket.rb +0 -50
  136. data/lib/deep_cover/tracker_hits_per_path.rb +0 -35
  137. data/lib/deep_cover/tracker_storage.rb +0 -76
  138. data/lib/deep_cover/tracker_storage_per_path.rb +0 -34
  139. data/lib/deep_cover/version.rb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a766315723e0e4a70d85a1bd0d36c75302c014f4
4
- data.tar.gz: 9f65074c91b5926f6b47cbc2b5e6f7f07cd307ce
3
+ metadata.gz: 25429d67a1222d365486e53dd388952d2cdf0bf7
4
+ data.tar.gz: 9a0ad0d3b468c6f5c918a7f354ed2ae10f2370ee
5
5
  SHA512:
6
- metadata.gz: 702c3d7340ad6184f37f840568979e5c174ebcbb0c6b217238dd36ad0d246d512918e237b0fa8f5f6507c3330be554631752ea6edc81feb82bc79af40bd03e3f
7
- data.tar.gz: bcc64581373f355253fc8a86fb8b74d5c830daddf36ec5c6d2c496077e03b8b3f026960972cc54c2dd6cc56c599347261ea62b0325946e867c3daeb5d79fa479
6
+ metadata.gz: 39b467977a2bcb9149ad96398fcb01211eb0742c5713a0246802b37b1b1cd42327f19a0da8560f9771edf19feadd20bf6178a35d7e3c884ad7a1f3198635373c
7
+ data.tar.gz: 8dd3a864d21cd488914918ad130494c049e3b702dbc6bbb59f22e72e84fa742cf34743f6e14f9c7c83eb8405fd1079ab2b395f4c7809b8d1c5f850107adcdec5
data/.gitignore CHANGED
@@ -1,10 +1,12 @@
1
1
  .bundle/
2
2
  .yardoc
3
3
  /Gemfile.lock
4
+ /core_gem/Gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
7
8
  /pkg/
9
+ /core_gem/pkg/
8
10
  /spec/reports/
9
11
  /tmp/
10
12
  .idea
@@ -13,6 +15,6 @@
13
15
  # rspec failure tracking
14
16
  .rspec_status
15
17
  /Gemfile.local
16
- /spec/cli_fixtures/covered_trivial_gem/deep_cover/
18
+ /spec/code_fixtures/covered_trivial_gem/deep_cover/
17
19
  /deep_cover
18
20
  /exe/deep_cover/
data/.rspec CHANGED
@@ -1,4 +1,5 @@
1
1
  --color
2
- --exclude-pattern "spec/cli_fixtures/**/*.rb, spec/full_usage/**/*.rb"
2
+ --default-path '.'
3
+ --exclude-pattern "**/spec/code_fixtures/**/*.rb"
3
4
  --tag ~slow
4
5
  --tag ~skip
data/.rspec_all CHANGED
@@ -1,3 +1,4 @@
1
1
  --color
2
- --exclude-pattern "spec/cli_fixtures/**/*.rb, spec/full_usage/**/*.rb"
2
+ --default-path '.'
3
+ --exclude-pattern "**/spec/code_fixtures/**/*.rb"
3
4
  --tag ~skip
@@ -1,11 +1,10 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  Exclude:
4
- - 'spec/char_cover/**/*'
5
- - 'spec/cli_fixtures/**/*'
6
- - 'spec/samples/**/*'
7
- - 'spec/full_usage/**/*'
8
- - 'spec/specs_tools.rb'
4
+ - '**/spec/char_cover/**/*'
5
+ - '**/spec/code_fixtures/**/*'
6
+ - '**/spec/samples/**/*'
7
+ - '**/spec/specs_tools.rb'
9
8
  - 'bin/**/*'
10
9
  - '_*/**/*'
11
10
  TargetRubyVersion: 2.1
@@ -188,7 +187,7 @@ Style/SymbolArray:
188
187
  Lint/Void:
189
188
  Enabled: true
190
189
  Exclude:
191
- - spec/**/*
190
+ - core_gem/spec/**/*
192
191
 
193
192
  Style/ClassVars:
194
193
  Enabled: false
@@ -211,7 +210,7 @@ Style/IfUnlessModifier:
211
210
  Naming/ConstantName:
212
211
  Enabled: true
213
212
  Exclude:
214
- - lib/deep_cover/node/**/*
213
+ - deep_cover_core/lib/deep_cover/node/**/*
215
214
 
216
215
  Style/RescueModifier:
217
216
  Enabled: false
@@ -245,8 +244,8 @@ Lint/BooleanSymbol:
245
244
 
246
245
  Naming/UncommunicativeMethodParamName:
247
246
  Exclude:
248
- - spec/**/*
247
+ - core_gem/spec/**/*
249
248
 
250
249
  Layout/SpaceInsideReferenceBrackets:
251
250
  Exclude:
252
- - spec/**/*
251
+ - core_gem/spec/**/*
data/Gemfile CHANGED
@@ -9,4 +9,6 @@ gemspec
9
9
 
10
10
  eval_gemfile File.expand_path('Gemfile.local', __dir__) if File.exist?('Gemfile.local')
11
11
 
12
+ gem 'deep-cover-core', path: 'core_gem'
13
+
12
14
  gem 'ruby-prof', platforms: :mri
data/Rakefile CHANGED
@@ -1,6 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
3
+ ### Release tasks
4
+ namespace :global do
5
+ require 'bundler/gem_tasks'
6
+ end
7
+ namespace :core do
8
+ Bundler::GemHelper.install_tasks(dir: Pathname.pwd.join('core_gem'))
9
+
10
+ desc 'Compile sass stylesheet'
11
+ task 'sass' do
12
+ require 'sass'
13
+ dest = "#{__dir__}/core_gem/lib/deep_cover/reporter/html/template/assets/deep_cover.css"
14
+ compile_stylesheet("#{dest}.sass", dest)
15
+ end
16
+ end
17
+ desc 'Build & release deep-cover and deep-cover-core to rubygems.org'
18
+ task release: ['core:sass', 'core:release', 'global:release']
19
+
20
+ ### Tests tasks
4
21
  require 'rspec/core/rake_task'
5
22
  require 'rubocop/rake_task'
6
23
 
@@ -8,17 +25,19 @@ RuboCop::RakeTask.new(:rubocop) do |t|
8
25
  t.options = ['-a'] unless ENV['TRAVIS']
9
26
  end
10
27
 
11
- RSpec::Core::RakeTask.new(:spec).tap { |task| task.pattern = 'spec/*_spec.rb, spec/*/*_spec.rb' }
28
+ spec_path = 'spec/*_spec.rb, core_gem/spec/**/*_spec.rb'
29
+ RSpec::Core::RakeTask.new(:spec).tap { |task| task.pattern = spec_path }
12
30
 
13
31
  desc 'Run all tests'
14
32
  RSpec::Core::RakeTask.new('spec:all') do |task|
15
- task.pattern = 'spec/*_spec.rb, spec/*/*_spec.rb'
33
+ task.pattern = spec_path
16
34
  task.rspec_opts = '-O .rspec_all'
17
35
  end
18
36
 
19
37
  multitask default: RUBY_VERSION > '2.1' ? [:rubocop, :spec] : :spec
20
38
  multitask 'test:all' => RUBY_VERSION > '2.1' ? [:rubocop, 'spec:all'] : 'spec:all'
21
39
 
40
+ #### Utilities
22
41
  namespace :dev do
23
42
  desc 'Self cover'
24
43
  task :cov do
@@ -32,10 +51,11 @@ namespace :dev do
32
51
  commands = []
33
52
 
34
53
  if RUBY_VERSION >= '2.2.2' && (!defined?(RUBY_ENGINE) || RUBY_ENGINE != 'jruby')
35
- commands << 'bundle install --gemfile=spec/full_usage/rails51_project/Gemfile'
54
+ commands << 'bundle install --gemfile=core_gem/spec/code_fixtures/rails51_project/Gemfile'
36
55
  end
37
- commands << 'bundle install --gemfile=spec/cli_fixtures/simple_rails42_app/Gemfile'
38
- commands << 'bundle install --gemfile=spec/cli_fixtures/rails_like_gem/Gemfile'
56
+ commands << 'bundle install --gemfile=spec/code_fixtures/simple_rails42_app/Gemfile'
57
+ commands << 'bundle install --gemfile=spec/code_fixtures/rails_like_gem/Gemfile'
58
+ commands << 'bundle install --gemfile=core_gem/Gemfile'
39
59
 
40
60
  commands.each do |command|
41
61
  puts "Running: #{command}"
@@ -49,3 +69,9 @@ namespace :dev do
49
69
  end
50
70
  end
51
71
  end
72
+
73
+ def compile_stylesheet(source, dest)
74
+ css = Sass::Engine.for_file(source, style: :expanded).to_css
75
+ header = '/*** This generated from a sass file, do not modify ***/'
76
+ File.write(dest, "#{header}\n\n#{css}")
77
+ end
data/bin/cov CHANGED
@@ -3,12 +3,12 @@ module DeepCover
3
3
  require 'bundler/setup'
4
4
 
5
5
  require 'deep_cover'
6
- require_relative '../spec/specs_tools'
6
+ require_relative '../core_gem/spec/specs_tools'
7
7
  require 'deep_cover/cli/debugger'
8
8
 
9
9
  example = ARGV[0] || 'simple_if'
10
- fn = "./spec/samples/#{example}.rb"
11
- fn = "./spec/char_cover/#{example}.rb" unless File.exist?(fn)
10
+ fn = "./core_gem/spec/samples/#{example}.rb"
11
+ fn = "./core_gem/spec/char_cover/#{example}.rb" unless File.exist?(fn)
12
12
  fn = example unless File.exist?(fn)
13
13
  if File.exist?(fn)
14
14
  fn = File.absolute_path(fn)
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'deep_cover/version'
3
+ require_relative 'core_gem/lib/deep_cover/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'deep-cover'
@@ -16,7 +14,7 @@ Gem::Specification.new do |spec|
16
14
  spec.license = 'MIT'
17
15
 
18
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
- f.match(%r{^(test|spec|features)/})
17
+ f.match(%r{^(test|spec|features|\w+_gem)/})
20
18
  end
21
19
  spec.bindir = 'exe'
22
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -26,11 +24,7 @@ Gem::Specification.new do |spec|
26
24
  spec.required_ruby_version = '>= 2.1.0'
27
25
 
28
26
  # Main dependency
29
- spec.add_runtime_dependency 'parser', '~> 2.5.0'
30
-
31
- # Support
32
- spec.add_runtime_dependency 'backports', '>= 3.11.0'
33
- spec.add_runtime_dependency 'binding_of_caller'
27
+ spec.add_runtime_dependency 'deep-cover-core', DeepCover::VERSION
34
28
 
35
29
  # CLI
36
30
  spec.add_runtime_dependency 'bundler'
@@ -39,13 +33,6 @@ Gem::Specification.new do |spec|
39
33
  spec.add_runtime_dependency 'term-ansicolor'
40
34
  spec.add_runtime_dependency 'with_progress'
41
35
 
42
- # Reporters
43
- spec.add_runtime_dependency 'sass'
44
- spec.add_runtime_dependency 'terminal-table'
45
-
46
- # While in 0.x
47
- spec.add_runtime_dependency 'pry'
48
-
49
36
  ### Dev dependencies
50
37
  spec.add_development_dependency 'bundler', '~> 1.15'
51
38
  spec.add_development_dependency 'psych', '>= 2.0'
@@ -4,6 +4,11 @@
4
4
  $LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
5
5
 
6
6
  require_relative '../lib/deep_cover_entry'
7
+
8
+ # HACK: tweak $LOAD_PATH when running from source
9
+ local_gem_path = File.expand_path('../core_gem', __dir__)
10
+ $LOAD_PATH.unshift "#{local_gem_path}/lib" if Dir.exist?(local_gem_path)
11
+
7
12
  require 'deep_cover/cli/runner'
8
13
 
9
14
  DeepCover::CLI::Runner.go
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepCover
4
- require_relative '../../deep_cover'
4
+ require 'deep-cover'
5
5
  bootstrap
6
6
 
7
7
  module CLI
@@ -15,7 +15,7 @@ module DeepCover
15
15
 
16
16
  def run
17
17
  require 'yaml'
18
- require_relative '../backports'
18
+ require 'deep_cover/backports'
19
19
  env_var = {'DEEP_COVER' => 't',
20
20
  'DEEP_COVER_OPTIONS' => YAML.dump(@options.slice(*DEFAULTS.keys)),
21
21
  }
@@ -3,7 +3,8 @@
3
3
  require 'tmpdir'
4
4
 
5
5
  module DeepCover
6
- require_relative '../../deep_cover'
6
+ require 'deep-cover'
7
+ require_relative '../dump_covered_code'
7
8
  bootstrap
8
9
 
9
10
  module CLI
@@ -18,7 +19,7 @@ module DeepCover
18
19
  unless @root_path.join('Gemfile').exist?
19
20
  # E.g. rails/activesupport
20
21
  @root_path = @root_path.dirname
21
- raise "Can't find Gemfile" unless @root_path.join('Gemfile').exist?
22
+ raise "Can't find Gemfile in #{@root_path}" unless @root_path.join('Gemfile').exist?
22
23
  end
23
24
  path = Pathname('~/test_deep_cover').expand_path
24
25
  if path.exist?
@@ -115,7 +116,7 @@ module DeepCover
115
116
  require 'bundler'
116
117
  deps = Bundler::Definition.build(gemfile, nil, nil).dependencies
117
118
 
118
- return if deps.find { |e| e.name == 'deep-cover' }
119
+ return if deps.find { |e| e.name.start_with? 'deep-cover' }
119
120
 
120
121
  content = File.read(gemfile)
121
122
  puts "Patching Gemfile #{gemfile}"
@@ -123,6 +124,7 @@ module DeepCover
123
124
  '# This file was modified by DeepCover',
124
125
  content,
125
126
  "gem 'deep-cover', path: '#{File.expand_path(__dir__ + '/../../../')}'",
127
+ "gem 'deep-cover-core', path: '#{File.expand_path(__dir__ + '/../../../core_gem')}'",
126
128
  '',
127
129
  ].join("\n"))
128
130
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module DeepCover
4
4
  require 'slop'
5
- require_relative '../../deep-cover'
5
+ require 'deep-cover'
6
6
  bootstrap
7
7
 
8
8
  module CLI
@@ -24,7 +24,7 @@ module DeepCover
24
24
  extend self
25
25
 
26
26
  def show_version
27
- require_relative '../version'
27
+ require 'deep_cover/version'
28
28
  require 'parser'
29
29
  puts "deep-cover v#{DeepCover::VERSION}; parser v#{Parser::VERSION}"
30
30
  end
@@ -31,4 +31,6 @@ module DeepCover
31
31
  dest_path
32
32
  end
33
33
  end
34
+
35
+ Tools.extend Tools::DumpCoveredCode
34
36
  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.6.2
4
+ version: 0.6.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
@@ -9,50 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-20 00:00:00.000000000 Z
12
+ date: 2018-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: parser
15
+ name: deep-cover-core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: 2.5.0
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: 2.5.0
28
- - !ruby/object:Gem::Dependency
29
- name: backports
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: 3.11.0
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: 3.11.0
42
- - !ruby/object:Gem::Dependency
43
- name: binding_of_caller
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
18
+ - - '='
47
19
  - !ruby/object:Gem::Version
48
- version: '0'
20
+ version: 0.6.3.pre
49
21
  type: :runtime
50
22
  prerelease: false
51
23
  version_requirements: !ruby/object:Gem::Requirement
52
24
  requirements:
53
- - - ">="
25
+ - - '='
54
26
  - !ruby/object:Gem::Version
55
- version: '0'
27
+ version: 0.6.3.pre
56
28
  - !ruby/object:Gem::Dependency
57
29
  name: bundler
58
30
  requirement: !ruby/object:Gem::Requirement
@@ -123,48 +95,6 @@ dependencies:
123
95
  - - ">="
124
96
  - !ruby/object:Gem::Version
125
97
  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'
140
- - !ruby/object:Gem::Dependency
141
- name: terminal-table
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: '0'
147
- type: :runtime
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: pry
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: '0'
161
- type: :runtime
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: '0'
168
98
  - !ruby/object:Gem::Dependency
169
99
  name: bundler
170
100
  requirement: !ruby/object:Gem::Requirement
@@ -265,134 +195,11 @@ files:
265
195
  - deep_cover.gemspec
266
196
  - exe/deep-cover
267
197
  - future_read_me.md
268
- - lib/deep-cover.rb
269
- - lib/deep_cover.rb
270
- - lib/deep_cover/analyser.rb
271
- - lib/deep_cover/analyser/base.rb
272
- - lib/deep_cover/analyser/branch.rb
273
- - lib/deep_cover/analyser/covered_code_source.rb
274
- - lib/deep_cover/analyser/function.rb
275
- - lib/deep_cover/analyser/node.rb
276
- - lib/deep_cover/analyser/per_char.rb
277
- - lib/deep_cover/analyser/per_line.rb
278
- - lib/deep_cover/analyser/ruby25_like_branch.rb
279
- - lib/deep_cover/analyser/statement.rb
280
- - lib/deep_cover/analyser/stats.rb
281
- - lib/deep_cover/analyser/subset.rb
282
- - lib/deep_cover/auto_run.rb
283
- - lib/deep_cover/autoload_tracker.rb
284
- - lib/deep_cover/backports.rb
285
- - lib/deep_cover/base.rb
286
- - lib/deep_cover/basics.rb
287
- - lib/deep_cover/builtin_takeover.rb
288
198
  - lib/deep_cover/cli/debugger.rb
289
199
  - lib/deep_cover/cli/exec.rb
290
200
  - lib/deep_cover/cli/instrumented_clone_reporter.rb
291
201
  - lib/deep_cover/cli/runner.rb
292
- - lib/deep_cover/config.rb
293
- - lib/deep_cover/config_setter.rb
294
- - lib/deep_cover/core_ext/autoload_overrides.rb
295
- - lib/deep_cover/core_ext/coverage_replacement.rb
296
- - lib/deep_cover/core_ext/exec_callbacks.rb
297
- - lib/deep_cover/core_ext/instruction_sequence_load_iseq.rb
298
- - lib/deep_cover/core_ext/load_overrides.rb
299
- - lib/deep_cover/core_ext/require_overrides.rb
300
- - lib/deep_cover/coverage.rb
301
- - lib/deep_cover/coverage/analysis.rb
302
- - lib/deep_cover/coverage/persistence.rb
303
- - lib/deep_cover/covered_code.rb
304
- - lib/deep_cover/custom_requirer.rb
305
- - lib/deep_cover/flag_comment_associator.rb
306
- - lib/deep_cover/load.rb
307
- - lib/deep_cover/memoize.rb
308
- - lib/deep_cover/module_override.rb
309
- - lib/deep_cover/node.rb
310
- - lib/deep_cover/node/arguments.rb
311
- - lib/deep_cover/node/assignments.rb
312
- - lib/deep_cover/node/base.rb
313
- - lib/deep_cover/node/begin.rb
314
- - lib/deep_cover/node/block.rb
315
- - lib/deep_cover/node/branch.rb
316
- - lib/deep_cover/node/case.rb
317
- - lib/deep_cover/node/collections.rb
318
- - lib/deep_cover/node/const.rb
319
- - lib/deep_cover/node/def.rb
320
- - lib/deep_cover/node/empty_body.rb
321
- - lib/deep_cover/node/exceptions.rb
322
- - lib/deep_cover/node/if.rb
323
- - lib/deep_cover/node/keywords.rb
324
- - lib/deep_cover/node/literals.rb
325
- - lib/deep_cover/node/loops.rb
326
- - lib/deep_cover/node/mixin/can_augment_children.rb
327
- - lib/deep_cover/node/mixin/check_completion.rb
328
- - lib/deep_cover/node/mixin/child_can_be_empty.rb
329
- - lib/deep_cover/node/mixin/executed_after_children.rb
330
- - lib/deep_cover/node/mixin/execution_location.rb
331
- - lib/deep_cover/node/mixin/filters.rb
332
- - lib/deep_cover/node/mixin/flow_accounting.rb
333
- - lib/deep_cover/node/mixin/has_child.rb
334
- - lib/deep_cover/node/mixin/has_child_handler.rb
335
- - lib/deep_cover/node/mixin/has_tracker.rb
336
- - lib/deep_cover/node/mixin/is_statement.rb
337
- - lib/deep_cover/node/mixin/rewriting.rb
338
- - lib/deep_cover/node/mixin/wrapper.rb
339
- - lib/deep_cover/node/module.rb
340
- - lib/deep_cover/node/root.rb
341
- - lib/deep_cover/node/send.rb
342
- - lib/deep_cover/node/short_circuit.rb
343
- - lib/deep_cover/node/splat.rb
344
- - lib/deep_cover/node/variables.rb
345
- - lib/deep_cover/parser_ext/range.rb
346
- - lib/deep_cover/problem_with_diagnostic.rb
347
- - lib/deep_cover/reporter.rb
348
- - lib/deep_cover/reporter/base.rb
349
- - lib/deep_cover/reporter/html.rb
350
- - lib/deep_cover/reporter/html/base.rb
351
- - lib/deep_cover/reporter/html/index.rb
352
- - lib/deep_cover/reporter/html/site.rb
353
- - lib/deep_cover/reporter/html/source.rb
354
- - lib/deep_cover/reporter/html/template/assets/32px.png
355
- - lib/deep_cover/reporter/html/template/assets/40px.png
356
- - lib/deep_cover/reporter/html/template/assets/deep_cover.css.sass
357
- - lib/deep_cover/reporter/html/template/assets/jquery-3.2.1.min.js
358
- - lib/deep_cover/reporter/html/template/assets/jquery-3.2.1.min.map
359
- - lib/deep_cover/reporter/html/template/assets/jstree.css
360
- - lib/deep_cover/reporter/html/template/assets/jstree.js
361
- - lib/deep_cover/reporter/html/template/assets/jstreetable.js
362
- - lib/deep_cover/reporter/html/template/assets/throbber.gif
363
- - lib/deep_cover/reporter/html/template/index.html.erb
364
- - lib/deep_cover/reporter/html/template/source.html.erb
365
- - lib/deep_cover/reporter/istanbul.rb
366
- - lib/deep_cover/reporter/text.rb
367
- - lib/deep_cover/reporter/tree/util.rb
368
- - lib/deep_cover/tools.rb
369
- - lib/deep_cover/tools/blank.rb
370
- - lib/deep_cover/tools/builtin_coverage.rb
371
- - lib/deep_cover/tools/camelize.rb
372
- - lib/deep_cover/tools/content_tag.rb
373
- - lib/deep_cover/tools/covered.rb
374
- - lib/deep_cover/tools/dump_covered_code.rb
375
- - lib/deep_cover/tools/execute_sample.rb
376
- - lib/deep_cover/tools/format.rb
377
- - lib/deep_cover/tools/format_char_cover.rb
378
- - lib/deep_cover/tools/format_generated_code.rb
379
- - lib/deep_cover/tools/indent_string.rb
380
- - lib/deep_cover/tools/merge.rb
381
- - lib/deep_cover/tools/number_lines.rb
382
- - lib/deep_cover/tools/our_coverage.rb
383
- - lib/deep_cover/tools/profiling.rb
384
- - lib/deep_cover/tools/render_template.rb
385
- - lib/deep_cover/tools/require_relative_dir.rb
386
- - lib/deep_cover/tools/scan_match_datas.rb
387
- - lib/deep_cover/tools/silence_warnings.rb
388
- - lib/deep_cover/tools/slice.rb
389
- - lib/deep_cover/tools/strip_heredoc.rb
390
- - lib/deep_cover/tools/truncate_backtrace.rb
391
- - lib/deep_cover/tracker_bucket.rb
392
- - lib/deep_cover/tracker_hits_per_path.rb
393
- - lib/deep_cover/tracker_storage.rb
394
- - lib/deep_cover/tracker_storage_per_path.rb
395
- - lib/deep_cover/version.rb
202
+ - lib/deep_cover/dump_covered_code.rb
396
203
  - lib/deep_cover_entry.rb
397
204
  homepage: https://github.com/deep-cover/deep-cover
398
205
  licenses:
@@ -409,9 +216,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
216
  version: 2.1.0
410
217
  required_rubygems_version: !ruby/object:Gem::Requirement
411
218
  requirements:
412
- - - ">="
219
+ - - ">"
413
220
  - !ruby/object:Gem::Version
414
- version: '0'
221
+ version: 1.3.1
415
222
  requirements: []
416
223
  rubyforge_project:
417
224
  rubygems_version: 2.6.14