simplecov 0.18.5 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,13 +53,8 @@ module SimpleCov
53
53
  # All results that are above the SimpleCov.merge_timeout will be
54
54
  # dropped. Returns an array of SimpleCov::Result items.
55
55
  def results
56
- results = []
57
- resultset.each do |command_name, data|
58
- result = SimpleCov::Result.from_hash(command_name => data)
59
- # Only add result if the timeout is above the configured threshold
60
- results << result if (Time.now - result.created_at) < SimpleCov.merge_timeout
61
- end
62
- results
56
+ results = Result.from_hash(resultset)
57
+ results.select { |result| result.time_since_creation < SimpleCov.merge_timeout }
63
58
  end
64
59
 
65
60
  def merge_and_store(*results)
@@ -5,12 +5,14 @@ module SimpleCov
5
5
  # Select the files that related to working scope directory of SimpleCov
6
6
  #
7
7
  module UselessResultsRemover
8
- ROOT_REGX = /\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/io.freeze
9
-
10
8
  def self.call(coverage_result)
11
9
  coverage_result.select do |path, _coverage|
12
- path =~ ROOT_REGX
10
+ path =~ root_regx
13
11
  end
14
12
  end
13
+
14
+ def self.root_regx
15
+ @root_regx ||= /\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/i.freeze
16
+ end
15
17
  end
16
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCov
4
- VERSION = "0.18.5"
4
+ VERSION = "0.19.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.5
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
+ - Tobias Pfeiffer
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2020-02-25 00:00:00.000000000 Z
12
+ date: 2020-08-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: docile
@@ -42,6 +43,7 @@ description: Code coverage for Ruby with a powerful configuration library and au
42
43
  merging of coverage across test suites
43
44
  email:
44
45
  - christoph at olszowka de
46
+ - pragtob@gmail.com
45
47
  executables: []
46
48
  extensions: []
47
49
  extra_rdoc_files: []
@@ -67,6 +69,10 @@ files:
67
69
  - lib/simplecov/coverage_statistics.rb
68
70
  - lib/simplecov/defaults.rb
69
71
  - lib/simplecov/exit_codes.rb
72
+ - lib/simplecov/exit_codes/exit_code_handling.rb
73
+ - lib/simplecov/exit_codes/maximum_coverage_drop_check.rb
74
+ - lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb
75
+ - lib/simplecov/exit_codes/minimum_overall_coverage_check.rb
70
76
  - lib/simplecov/file_list.rb
71
77
  - lib/simplecov/filter.rb
72
78
  - lib/simplecov/formatter.rb
@@ -76,6 +82,7 @@ files:
76
82
  - lib/simplecov/lines_classifier.rb
77
83
  - lib/simplecov/load_global_config.rb
78
84
  - lib/simplecov/no_defaults.rb
85
+ - lib/simplecov/process.rb
79
86
  - lib/simplecov/profiles.rb
80
87
  - lib/simplecov/profiles/bundler_filter.rb
81
88
  - lib/simplecov/profiles/hidden_filter.rb
@@ -91,15 +98,15 @@ files:
91
98
  - lib/simplecov/source_file/line.rb
92
99
  - lib/simplecov/useless_results_remover.rb
93
100
  - lib/simplecov/version.rb
94
- homepage: https://github.com/colszowka/simplecov
101
+ homepage: https://github.com/simplecov-ruby/simplecov
95
102
  licenses:
96
103
  - MIT
97
104
  metadata:
98
- bug_tracker_uri: https://github.com/colszowka/simplecov/issues
99
- changelog_uri: https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md
100
- documentation_uri: https://www.rubydoc.info/gems/simplecov/0.18.5
105
+ bug_tracker_uri: https://github.com/simplecov-ruby/simplecov/issues
106
+ changelog_uri: https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md
107
+ documentation_uri: https://www.rubydoc.info/gems/simplecov/0.19.0
101
108
  mailing_list_uri: https://groups.google.com/forum/#!forum/simplecov
102
- source_code_uri: https://github.com/colszowka/simplecov/tree/v0.18.5
109
+ source_code_uri: https://github.com/simplecov-ruby/simplecov/tree/v0.19.0
103
110
  post_install_message:
104
111
  rdoc_options: []
105
112
  require_paths:
@@ -108,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
115
  requirements:
109
116
  - - ">="
110
117
  - !ruby/object:Gem::Version
111
- version: 2.4.0
118
+ version: 2.5.0
112
119
  required_rubygems_version: !ruby/object:Gem::Requirement
113
120
  requirements:
114
121
  - - ">="