simplecov 0.15.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -2
  3. data/CONTRIBUTING.md +12 -9
  4. data/ISSUE_TEMPLATE.md +23 -0
  5. data/{MIT-LICENSE → LICENSE} +0 -0
  6. data/README.md +50 -54
  7. data/doc/alternate-formatters.md +21 -1
  8. data/lib/simplecov.rb +112 -0
  9. data/lib/simplecov/command_guesser.rb +2 -0
  10. data/lib/simplecov/configuration.rb +2 -0
  11. data/lib/simplecov/defaults.rb +11 -80
  12. data/lib/simplecov/exit_codes.rb +2 -0
  13. data/lib/simplecov/file_list.rb +2 -0
  14. data/lib/simplecov/filter.rb +3 -1
  15. data/lib/simplecov/formatter.rb +2 -0
  16. data/lib/simplecov/formatter/multi_formatter.rb +2 -0
  17. data/lib/simplecov/formatter/simple_formatter.rb +2 -0
  18. data/lib/simplecov/jruby_fix.rb +2 -0
  19. data/lib/simplecov/last_run.rb +2 -0
  20. data/lib/simplecov/lines_classifier.rb +19 -3
  21. data/lib/simplecov/load_global_config.rb +2 -0
  22. data/lib/simplecov/no_defaults.rb +2 -0
  23. data/lib/simplecov/profiles.rb +2 -0
  24. data/lib/simplecov/profiles/bundler_filter.rb +5 -0
  25. data/lib/simplecov/profiles/hidden_filter.rb +5 -0
  26. data/lib/simplecov/profiles/rails.rb +18 -0
  27. data/lib/simplecov/profiles/root_filter.rb +10 -0
  28. data/lib/simplecov/profiles/test_frameworks.rb +8 -0
  29. data/lib/simplecov/railtie.rb +2 -0
  30. data/lib/simplecov/railties/tasks.rake +2 -0
  31. data/lib/simplecov/raw_coverage.rb +2 -0
  32. data/lib/simplecov/result.rb +2 -0
  33. data/lib/simplecov/result_merger.rb +2 -0
  34. data/lib/simplecov/source_file.rb +4 -2
  35. data/lib/simplecov/version.rb +3 -1
  36. metadata +138 -120
  37. data/.gitignore +0 -31
  38. data/.rspec +0 -3
  39. data/.rubocop.yml +0 -88
  40. data/.travis.yml +0 -29
  41. data/.yardopts +0 -1
  42. data/Gemfile +0 -38
  43. data/Rakefile +0 -41
  44. data/cucumber.yml +0 -13
  45. data/features/config_autoload.feature +0 -46
  46. data/features/config_command_name.feature +0 -45
  47. data/features/config_coverage_dir.feature +0 -33
  48. data/features/config_deactivate_merging.feature +0 -42
  49. data/features/config_formatters.feature +0 -77
  50. data/features/config_merge_timeout.feature +0 -39
  51. data/features/config_nocov_token.feature +0 -79
  52. data/features/config_profiles.feature +0 -44
  53. data/features/config_project_name.feature +0 -27
  54. data/features/config_styles.feature +0 -121
  55. data/features/config_tracked_files.feature +0 -29
  56. data/features/config_tracked_files_relevant_lines.feature +0 -31
  57. data/features/cucumber_basic.feature +0 -29
  58. data/features/maximum_coverage_drop.feature +0 -89
  59. data/features/merging_test_unit_and_rspec.feature +0 -44
  60. data/features/minimum_coverage.feature +0 -59
  61. data/features/refuse_coverage_drop.feature +0 -95
  62. data/features/rspec_basic.feature +0 -32
  63. data/features/rspec_fails_on_initialization.feature +0 -14
  64. data/features/rspec_groups_and_filters_basic.feature +0 -29
  65. data/features/rspec_groups_and_filters_complex.feature +0 -37
  66. data/features/rspec_groups_using_filter_class.feature +0 -41
  67. data/features/rspec_without_simplecov.feature +0 -20
  68. data/features/skipping_code_blocks_manually.feature +0 -70
  69. data/features/step_definitions/html_steps.rb +0 -44
  70. data/features/step_definitions/simplecov_steps.rb +0 -68
  71. data/features/step_definitions/transformers.rb +0 -13
  72. data/features/step_definitions/web_steps.rb +0 -64
  73. data/features/support/aruba_freedom_patch.rb +0 -53
  74. data/features/support/env.rb +0 -50
  75. data/features/test_unit_basic.feature +0 -34
  76. data/features/test_unit_groups_and_filters_basic.feature +0 -29
  77. data/features/test_unit_groups_and_filters_complex.feature +0 -35
  78. data/features/test_unit_groups_using_filter_class.feature +0 -40
  79. data/features/test_unit_without_simplecov.feature +0 -20
  80. data/features/unicode_compatiblity.feature +0 -67
  81. data/simplecov.gemspec +0 -27
  82. data/spec/1_8_fallbacks_spec.rb +0 -31
  83. data/spec/command_guesser_spec.rb +0 -48
  84. data/spec/config_loader_spec.rb +0 -14
  85. data/spec/configuration_spec.rb +0 -35
  86. data/spec/deleted_source_spec.rb +0 -12
  87. data/spec/faked_project/Gemfile +0 -6
  88. data/spec/faked_project/Rakefile +0 -8
  89. data/spec/faked_project/cucumber.yml +0 -13
  90. data/spec/faked_project/features/step_definitions/my_steps.rb +0 -22
  91. data/spec/faked_project/features/support/env.rb +0 -12
  92. data/spec/faked_project/features/test_stuff.feature +0 -6
  93. data/spec/faked_project/lib/faked_project.rb +0 -11
  94. data/spec/faked_project/lib/faked_project/framework_specific.rb +0 -18
  95. data/spec/faked_project/lib/faked_project/meta_magic.rb +0 -24
  96. data/spec/faked_project/lib/faked_project/some_class.rb +0 -28
  97. data/spec/faked_project/lib/faked_project/untested_class.rb +0 -11
  98. data/spec/faked_project/spec/faked_spec.rb +0 -11
  99. data/spec/faked_project/spec/forking_spec.rb +0 -8
  100. data/spec/faked_project/spec/meta_magic_spec.rb +0 -15
  101. data/spec/faked_project/spec/some_class_spec.rb +0 -13
  102. data/spec/faked_project/spec/spec_helper.rb +0 -11
  103. data/spec/faked_project/test/faked_test.rb +0 -11
  104. data/spec/faked_project/test/meta_magic_test.rb +0 -13
  105. data/spec/faked_project/test/some_class_test.rb +0 -15
  106. data/spec/faked_project/test/test_helper.rb +0 -12
  107. data/spec/file_list_spec.rb +0 -50
  108. data/spec/filters_spec.rb +0 -172
  109. data/spec/fixtures/app/controllers/sample_controller.rb +0 -10
  110. data/spec/fixtures/app/models/user.rb +0 -10
  111. data/spec/fixtures/deleted_source_sample.rb +0 -15
  112. data/spec/fixtures/frameworks/rspec_bad.rb +0 -9
  113. data/spec/fixtures/frameworks/rspec_good.rb +0 -9
  114. data/spec/fixtures/frameworks/testunit_bad.rb +0 -9
  115. data/spec/fixtures/frameworks/testunit_good.rb +0 -9
  116. data/spec/fixtures/iso-8859.rb +0 -3
  117. data/spec/fixtures/never.rb +0 -2
  118. data/spec/fixtures/resultset1.rb +0 -4
  119. data/spec/fixtures/resultset2.rb +0 -4
  120. data/spec/fixtures/sample.rb +0 -16
  121. data/spec/fixtures/skipped.rb +0 -4
  122. data/spec/fixtures/skipped_and_executed.rb +0 -8
  123. data/spec/fixtures/utf-8.rb +0 -3
  124. data/spec/helper.rb +0 -26
  125. data/spec/last_run_spec.rb +0 -48
  126. data/spec/lines_classifier_spec.rb +0 -103
  127. data/spec/multi_formatter_spec.rb +0 -20
  128. data/spec/raw_coverage_spec.rb +0 -92
  129. data/spec/result_merger_spec.rb +0 -171
  130. data/spec/result_spec.rb +0 -209
  131. data/spec/return_codes_spec.rb +0 -34
  132. data/spec/simplecov_spec.rb +0 -109
  133. data/spec/source_file_line_spec.rb +0 -155
  134. data/spec/source_file_spec.rb +0 -145
  135. data/spec/support/fail_rspec_on_ruby_warning.rb +0 -75
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #
2
4
  # Helper that tries to find out what test suite is running (for SimpleCov.command_name)
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "fileutils"
2
4
  require "docile"
3
5
  require "simplecov/formatter/multi_formatter"
@@ -1,48 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load default formatter gem
2
4
  require "simplecov-html"
3
5
  require "pathname"
4
-
5
- SimpleCov.profiles.define "root_filter" do
6
- # Exclude all files outside of simplecov root
7
- root_filter = nil
8
- add_filter do |src|
9
- root_filter ||= /\A#{Regexp.escape(SimpleCov.root)}/io
10
- src.filename !~ root_filter
11
- end
12
- end
13
-
14
- SimpleCov.profiles.define "test_frameworks" do
15
- add_filter "/test/"
16
- add_filter "/features/"
17
- add_filter "/spec/"
18
- add_filter "/autotest/"
19
- end
20
-
21
- SimpleCov.profiles.define "bundler_filter" do
22
- add_filter "/vendor/bundle/"
23
- end
24
-
25
- SimpleCov.profiles.define "rails" do
26
- load_profile "test_frameworks"
27
-
28
- add_filter %r{^/config/}
29
- add_filter %r{/^/db/}
30
-
31
- add_group "Controllers", "app/controllers"
32
- add_group "Channels", "app/channels" if defined?(ActionCable)
33
- add_group "Models", "app/models"
34
- add_group "Mailers", "app/mailers"
35
- add_group "Helpers", "app/helpers"
36
- add_group "Jobs", %w[app/jobs app/workers]
37
- add_group "Libraries", "lib"
38
-
39
- track_files "{app,lib}/**/*.rb"
40
- end
6
+ require "simplecov/profiles/root_filter"
7
+ require "simplecov/profiles/test_frameworks"
8
+ require "simplecov/profiles/bundler_filter"
9
+ require "simplecov/profiles/hidden_filter"
10
+ require "simplecov/profiles/rails"
41
11
 
42
12
  # Default configuration
43
13
  SimpleCov.configure do
44
14
  formatter SimpleCov::Formatter::HTMLFormatter
45
15
  load_profile "bundler_filter"
16
+ load_profile "hidden_filter"
46
17
  # Exclude files outside of SimpleCov.root
47
18
  load_profile "root_filter"
48
19
  end
@@ -50,52 +21,12 @@ end
50
21
  # Gotta stash this a-s-a-p, see the CommandGuesser class and i.e. #110 for further info
51
22
  SimpleCov::CommandGuesser.original_run_command = "#{$PROGRAM_NAME} #{ARGV.join(' ')}"
52
23
 
53
- at_exit do # rubocop:disable Metrics/BlockLength
24
+ at_exit do
54
25
  # If we are in a different process than called start, don't interfere.
55
26
  next if SimpleCov.pid != Process.pid
56
27
 
57
- @exit_status = if $! # was an exception thrown?
58
- # if it was a SystemExit, use the accompanying status
59
- # otherwise set a non-zero status representing termination by
60
- # some other exception (see github issue 41)
61
- $!.is_a?(SystemExit) ? $!.status : SimpleCov::ExitCodes::EXCEPTION
62
- else
63
- # Store the exit status of the test run since it goes away
64
- # after calling the at_exit proc...
65
- SimpleCov::ExitCodes::SUCCESS
66
- end
67
-
68
- SimpleCov.at_exit.call
69
-
70
- if SimpleCov.result? # Result has been computed
71
- covered_percent = SimpleCov.result.covered_percent.round(2)
72
- covered_percentages = SimpleCov.result.covered_percentages.map { |p| p.round(2) }
73
-
74
- if @exit_status == SimpleCov::ExitCodes::SUCCESS # No other errors
75
- if covered_percent < SimpleCov.minimum_coverage # rubocop:disable Metrics/BlockNesting
76
- $stderr.printf("Coverage (%.2f%%) is below the expected minimum coverage (%.2f%%).\n", covered_percent, SimpleCov.minimum_coverage)
77
- @exit_status = SimpleCov::ExitCodes::MINIMUM_COVERAGE
78
- elsif covered_percentages.any? { |p| p < SimpleCov.minimum_coverage_by_file } # rubocop:disable Metrics/BlockNesting
79
- $stderr.printf("File (%s) is only (%.2f%%) covered. This is below the expected minimum coverage per file of (%.2f%%).\n", SimpleCov.result.least_covered_file, covered_percentages.min, SimpleCov.minimum_coverage_by_file)
80
- @exit_status = SimpleCov::ExitCodes::MINIMUM_COVERAGE
81
- elsif (last_run = SimpleCov::LastRun.read) # rubocop:disable Metrics/BlockNesting
82
- coverage_diff = last_run["result"]["covered_percent"] - covered_percent
83
- if coverage_diff > SimpleCov.maximum_coverage_drop # rubocop:disable Metrics/BlockNesting
84
- $stderr.printf("Coverage has dropped by %.2f%% since the last time (maximum allowed: %.2f%%).\n", coverage_diff, SimpleCov.maximum_coverage_drop)
85
- @exit_status = SimpleCov::ExitCodes::MAXIMUM_COVERAGE_DROP
86
- end
87
- end
88
- end
89
-
90
- # Don't overwrite last_run file if refuse_coverage_drop option is enabled and the coverage has dropped
91
- unless @exit_status == SimpleCov::ExitCodes::MAXIMUM_COVERAGE_DROP
92
- SimpleCov::LastRun.write(:result => {:covered_percent => covered_percent})
93
- end
94
- end
95
-
96
- # Force exit with stored status (see github issue #5)
97
- # unless it's nil or 0 (see github issue #281)
98
- Kernel.exit @exit_status if @exit_status && @exit_status > 0
28
+ SimpleCov.set_exit_exception
29
+ SimpleCov.run_exit_tasks!
99
30
  end
100
31
 
101
32
  # Autoload config from ~/.simplecov if present
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  module ExitCodes
3
5
  SUCCESS = 0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # An array of SimpleCov SourceFile instances with additional collection helper
2
4
  # methods for calculating coverage across them etc.
3
5
  module SimpleCov
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  #
3
5
  # Base filter class. Inherit from this to create custom filters,
@@ -49,7 +51,7 @@ module SimpleCov
49
51
  # Returns true when the given source file's filename matches the
50
52
  # string configured when initializing this Filter with StringFilter.new('somestring)
51
53
  def matches?(source_file)
52
- (source_file.project_filename =~ /#{filter_argument}/)
54
+ source_file.project_filename.include?(filter_argument)
53
55
  end
54
56
  end
55
57
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  # TODO: Documentation on how to build your own formatters
3
5
  module Formatter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  module Formatter
3
5
  class MultiFormatter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #
2
4
  # A ridiculously simple formatter for SimpleCov results.
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  if defined?(JRUBY_VERSION) && JRUBY_VERSION.to_f < 1.7
2
4
  require "jruby"
3
5
  java_import "org.jruby.ast.NodeType"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "json"
2
4
 
3
5
  module SimpleCov
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  # Classifies whether lines are relevant for code coverage analysis.
3
5
  # Comments & whitespace lines, and :nocov: token blocks, are considered not relevant.
@@ -11,17 +13,31 @@ module SimpleCov
11
13
  WHITESPACE_OR_COMMENT_LINE = Regexp.union(WHITESPACE_LINE, COMMENT_LINE)
12
14
 
13
15
  def self.no_cov_line
14
- /^(\s*)#(\s*)(\:#{SimpleCov.nocov_token}\:)/
16
+ /^(\s*)#(\s*)(\:#{SimpleCov.nocov_token}\:)/o
17
+ end
18
+
19
+ def self.no_cov_line?(line)
20
+ line =~ no_cov_line
21
+ rescue ArgumentError
22
+ # E.g., line contains an invalid byte sequence in UTF-8
23
+ false
24
+ end
25
+
26
+ def self.whitespace_line?(line)
27
+ line =~ WHITESPACE_OR_COMMENT_LINE
28
+ rescue ArgumentError
29
+ # E.g., line contains an invalid byte sequence in UTF-8
30
+ false
15
31
  end
16
32
 
17
33
  def classify(lines)
18
34
  skipping = false
19
35
 
20
36
  lines.map do |line|
21
- if line =~ self.class.no_cov_line
37
+ if self.class.no_cov_line?(line)
22
38
  skipping = !skipping
23
39
  NOT_RELEVANT
24
- elsif skipping || line =~ WHITESPACE_OR_COMMENT_LINE
40
+ elsif skipping || self.class.whitespace_line?(line)
25
41
  NOT_RELEVANT
26
42
  else
27
43
  RELEVANT
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "etc"
2
4
  home_dir = (ENV["HOME"] && File.expand_path("~")) || Etc.getpwuid.dir || (ENV["USER"] && File.expand_path("~#{ENV['USER']}"))
3
5
  if home_dir
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ENV["SIMPLECOV_NO_DEFAULTS"] = "yes, no defaults"
2
4
  require "simplecov"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #
2
4
  # Profiles are SimpleCov configuration procs that can be easily
3
5
  # loaded using SimpleCov.start :rails and defined using
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.profiles.define "bundler_filter" do
4
+ add_filter "/vendor/bundle/"
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.profiles.define "hidden_filter" do
4
+ add_filter %r{^/\..*}
5
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.profiles.define "rails" do
4
+ load_profile "test_frameworks"
5
+
6
+ add_filter %r{^/config/}
7
+ add_filter %r{^/db/}
8
+
9
+ add_group "Controllers", "app/controllers"
10
+ add_group "Channels", "app/channels"
11
+ add_group "Models", "app/models"
12
+ add_group "Mailers", "app/mailers"
13
+ add_group "Helpers", "app/helpers"
14
+ add_group "Jobs", %w[app/jobs app/workers]
15
+ add_group "Libraries", "lib/"
16
+
17
+ track_files "{app,lib}/**/*.rb"
18
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.profiles.define "root_filter" do
4
+ # Exclude all files outside of simplecov root
5
+ root_filter = nil
6
+ add_filter do |src|
7
+ root_filter ||= /\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/io
8
+ src.filename !~ root_filter
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.profiles.define "test_frameworks" do
4
+ add_filter "/test/"
5
+ add_filter "/features/"
6
+ add_filter "/spec/"
7
+ add_filter "/autotest/"
8
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  class Railtie < ::Rails::Railtie
3
5
  rake_tasks do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rake/testtask"
2
4
  Rake::TestTask.new do |t|
3
5
  t.name = "simplecov"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  module RawCoverage
3
5
  module_function
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "digest/sha1"
2
4
  require "forwardable"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "json"
2
4
 
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
4
  #
3
5
  # Representation of a source file including it's coverage data, source code,
@@ -82,7 +84,7 @@ module SimpleCov
82
84
 
83
85
  # The path to this source file relative to the projects directory
84
86
  def project_filename
85
- @filename.sub(/^#{SimpleCov.root}/, "")
87
+ @filename.sub(Regexp.new("^#{Regexp.escape(SimpleCov.root)}"), "")
86
88
  end
87
89
 
88
90
  # The source code for this file. Aliased as :source
@@ -180,7 +182,7 @@ module SimpleCov
180
182
  skipping = false
181
183
 
182
184
  lines.each do |line|
183
- if line.src =~ SimpleCov::LinesClassifier.no_cov_line
185
+ if SimpleCov::LinesClassifier.no_cov_line?(line.src)
184
186
  skipping = !skipping
185
187
  line.skipped!
186
188
  elsif skipping
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module SimpleCov
2
- VERSION = "0.15.0".freeze
4
+ VERSION = "0.17.1".freeze
3
5
  end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: json
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ">="
@@ -19,9 +20,8 @@ dependencies:
19
20
  - - "<"
20
21
  - !ruby/object:Gem::Version
21
22
  version: '3'
22
- name: json
23
- prerelease: false
24
23
  type: :runtime
24
+ prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
@@ -31,47 +31,159 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'
33
33
  - !ruby/object:Gem::Dependency
34
+ name: simplecov-html
34
35
  requirement: !ruby/object:Gem::Requirement
35
36
  requirements:
36
37
  - - "~>"
37
38
  - !ruby/object:Gem::Version
38
39
  version: 0.10.0
39
- name: simplecov-html
40
- prerelease: false
41
40
  type: :runtime
41
+ prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.10.0
47
47
  - !ruby/object:Gem::Dependency
48
+ name: docile
48
49
  requirement: !ruby/object:Gem::Requirement
49
50
  requirements:
50
51
  - - "~>"
51
52
  - !ruby/object:Gem::Version
52
- version: 1.1.0
53
- name: docile
54
- prerelease: false
53
+ version: '1.1'
55
54
  type: :runtime
55
+ prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.1.0
60
+ version: '1.1'
61
61
  - !ruby/object:Gem::Dependency
62
+ name: bundler
62
63
  requirement: !ruby/object:Gem::Requirement
63
64
  requirements:
64
- - - "~>"
65
+ - - ">="
65
66
  - !ruby/object:Gem::Version
66
- version: '1.9'
67
- name: bundler
67
+ version: '0'
68
+ type: :development
68
69
  prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rake
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
69
82
  type: :development
83
+ prerelease: false
70
84
  version_requirements: !ruby/object:Gem::Requirement
71
85
  requirements:
72
- - - "~>"
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rspec
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: test-unit
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: cucumber
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "<"
122
+ - !ruby/object:Gem::Version
123
+ version: '3'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '3'
131
+ - !ruby/object:Gem::Dependency
132
+ name: aruba
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: capybara
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "<"
150
+ - !ruby/object:Gem::Version
151
+ version: '3'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '3'
159
+ - !ruby/object:Gem::Dependency
160
+ name: phantomjs
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: poltergeist
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
73
185
  - !ruby/object:Gem::Version
74
- version: '1.9'
186
+ version: '0'
75
187
  description: Code coverage for Ruby 1.9+ with a powerful configuration library and
76
188
  automatic merging of coverage across test suites
77
189
  email:
@@ -80,57 +192,14 @@ executables: []
80
192
  extensions: []
81
193
  extra_rdoc_files: []
82
194
  files:
83
- - ".gitignore"
84
- - ".rspec"
85
- - ".rubocop.yml"
86
- - ".travis.yml"
87
- - ".yardopts"
88
195
  - CHANGELOG.md
89
196
  - CONTRIBUTING.md
90
- - Gemfile
91
- - MIT-LICENSE
197
+ - ISSUE_TEMPLATE.md
198
+ - LICENSE
92
199
  - README.md
93
- - Rakefile
94
- - cucumber.yml
95
200
  - doc/alternate-formatters.md
96
201
  - doc/commercial-services.md
97
202
  - doc/editor-integration.md
98
- - features/config_autoload.feature
99
- - features/config_command_name.feature
100
- - features/config_coverage_dir.feature
101
- - features/config_deactivate_merging.feature
102
- - features/config_formatters.feature
103
- - features/config_merge_timeout.feature
104
- - features/config_nocov_token.feature
105
- - features/config_profiles.feature
106
- - features/config_project_name.feature
107
- - features/config_styles.feature
108
- - features/config_tracked_files.feature
109
- - features/config_tracked_files_relevant_lines.feature
110
- - features/cucumber_basic.feature
111
- - features/maximum_coverage_drop.feature
112
- - features/merging_test_unit_and_rspec.feature
113
- - features/minimum_coverage.feature
114
- - features/refuse_coverage_drop.feature
115
- - features/rspec_basic.feature
116
- - features/rspec_fails_on_initialization.feature
117
- - features/rspec_groups_and_filters_basic.feature
118
- - features/rspec_groups_and_filters_complex.feature
119
- - features/rspec_groups_using_filter_class.feature
120
- - features/rspec_without_simplecov.feature
121
- - features/skipping_code_blocks_manually.feature
122
- - features/step_definitions/html_steps.rb
123
- - features/step_definitions/simplecov_steps.rb
124
- - features/step_definitions/transformers.rb
125
- - features/step_definitions/web_steps.rb
126
- - features/support/aruba_freedom_patch.rb
127
- - features/support/env.rb
128
- - features/test_unit_basic.feature
129
- - features/test_unit_groups_and_filters_basic.feature
130
- - features/test_unit_groups_and_filters_complex.feature
131
- - features/test_unit_groups_using_filter_class.feature
132
- - features/test_unit_without_simplecov.feature
133
- - features/unicode_compatiblity.feature
134
203
  - lib/simplecov.rb
135
204
  - lib/simplecov/command_guesser.rb
136
205
  - lib/simplecov/configuration.rb
@@ -147,6 +216,11 @@ files:
147
216
  - lib/simplecov/load_global_config.rb
148
217
  - lib/simplecov/no_defaults.rb
149
218
  - lib/simplecov/profiles.rb
219
+ - lib/simplecov/profiles/bundler_filter.rb
220
+ - lib/simplecov/profiles/hidden_filter.rb
221
+ - lib/simplecov/profiles/rails.rb
222
+ - lib/simplecov/profiles/root_filter.rb
223
+ - lib/simplecov/profiles/test_frameworks.rb
150
224
  - lib/simplecov/railtie.rb
151
225
  - lib/simplecov/railties/tasks.rake
152
226
  - lib/simplecov/raw_coverage.rb
@@ -154,66 +228,11 @@ files:
154
228
  - lib/simplecov/result_merger.rb
155
229
  - lib/simplecov/source_file.rb
156
230
  - lib/simplecov/version.rb
157
- - simplecov.gemspec
158
- - spec/1_8_fallbacks_spec.rb
159
- - spec/command_guesser_spec.rb
160
- - spec/config_loader_spec.rb
161
- - spec/configuration_spec.rb
162
- - spec/deleted_source_spec.rb
163
- - spec/faked_project/Gemfile
164
- - spec/faked_project/Rakefile
165
- - spec/faked_project/cucumber.yml
166
- - spec/faked_project/features/step_definitions/my_steps.rb
167
- - spec/faked_project/features/support/env.rb
168
- - spec/faked_project/features/test_stuff.feature
169
- - spec/faked_project/lib/faked_project.rb
170
- - spec/faked_project/lib/faked_project/framework_specific.rb
171
- - spec/faked_project/lib/faked_project/meta_magic.rb
172
- - spec/faked_project/lib/faked_project/some_class.rb
173
- - spec/faked_project/lib/faked_project/untested_class.rb
174
- - spec/faked_project/spec/faked_spec.rb
175
- - spec/faked_project/spec/forking_spec.rb
176
- - spec/faked_project/spec/meta_magic_spec.rb
177
- - spec/faked_project/spec/some_class_spec.rb
178
- - spec/faked_project/spec/spec_helper.rb
179
- - spec/faked_project/test/faked_test.rb
180
- - spec/faked_project/test/meta_magic_test.rb
181
- - spec/faked_project/test/some_class_test.rb
182
- - spec/faked_project/test/test_helper.rb
183
- - spec/file_list_spec.rb
184
- - spec/filters_spec.rb
185
- - spec/fixtures/app/controllers/sample_controller.rb
186
- - spec/fixtures/app/models/user.rb
187
- - spec/fixtures/deleted_source_sample.rb
188
- - spec/fixtures/frameworks/rspec_bad.rb
189
- - spec/fixtures/frameworks/rspec_good.rb
190
- - spec/fixtures/frameworks/testunit_bad.rb
191
- - spec/fixtures/frameworks/testunit_good.rb
192
- - spec/fixtures/iso-8859.rb
193
- - spec/fixtures/never.rb
194
- - spec/fixtures/resultset1.rb
195
- - spec/fixtures/resultset2.rb
196
- - spec/fixtures/sample.rb
197
- - spec/fixtures/skipped.rb
198
- - spec/fixtures/skipped_and_executed.rb
199
- - spec/fixtures/utf-8.rb
200
- - spec/helper.rb
201
- - spec/last_run_spec.rb
202
- - spec/lines_classifier_spec.rb
203
- - spec/multi_formatter_spec.rb
204
- - spec/raw_coverage_spec.rb
205
- - spec/result_merger_spec.rb
206
- - spec/result_spec.rb
207
- - spec/return_codes_spec.rb
208
- - spec/simplecov_spec.rb
209
- - spec/source_file_line_spec.rb
210
- - spec/source_file_spec.rb
211
- - spec/support/fail_rspec_on_ruby_warning.rb
212
231
  homepage: http://github.com/colszowka/simplecov
213
232
  licenses:
214
233
  - MIT
215
234
  metadata: {}
216
- post_install_message:
235
+ post_install_message:
217
236
  rdoc_options: []
218
237
  require_paths:
219
238
  - lib
@@ -228,9 +247,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
247
  - !ruby/object:Gem::Version
229
248
  version: '0'
230
249
  requirements: []
231
- rubyforge_project:
232
- rubygems_version: 2.6.11
233
- signing_key:
250
+ rubygems_version: 3.0.6
251
+ signing_key:
234
252
  specification_version: 4
235
253
  summary: Code coverage for Ruby 1.9+ with a powerful configuration library and automatic
236
254
  merging of coverage across test suites