simplecov-lcov 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cc8a6e79e2c447469190f8627959b7cc705e7261
4
- data.tar.gz: 7b2d488756eaf1f269b16f91301ad93e343c08a3
2
+ SHA256:
3
+ metadata.gz: 2b45d40f2e63cf73546dffac6367bca70c09688796964f90bc25cbfef0f8a5eb
4
+ data.tar.gz: feecf0f73ff209b3b2a0bdae343167b637de0ee3a0567101f72021824309b901
5
5
  SHA512:
6
- metadata.gz: 2752794178b5b410f587f5db080fff262dd0fb5d85233518e4bf0f58d9baaaefd1f814f356b7ea8d8db9f00810572b1311c55a32310e463f0d5887372c89a148
7
- data.tar.gz: 0e41a7b80310684bf577d31e2c6ea0685001c5b62de7d60e175c62305b1e533183d4725e7478624316c43dea06af56baf772de988b309fdc0b4680791a9c6639
6
+ metadata.gz: 6d3c37479930114eba475e68b05a32b9991e531fd217cffc4ba85ec15d17839b9e43366c81c780cf6ec71252cbc64e6cdc30356ab8c441cac2976e7e7d0875ab
7
+ data.tar.gz: d5b74cf7218a792a1081cfe62187ccea6c7a4ea42649b67f052ae0ec25253f418ce93cd1ac2c8234b5ca03ebcced96e8b210d0d88bf992620303e7cba49f3eae
data/.coveralls.yml CHANGED
@@ -1 +1,8 @@
1
- service_name: travis-ci
1
+ service_name: github
2
+ service_job_id: $GITHUB_RUN_ID
3
+ service_pull_request: $GITHUB_EVENT_NAME
4
+ service_branch: $GITHUB_REF_NAME
5
+ service_event_type: $GITHUB_EVENT_NAME
6
+
7
+ # SimpleCovの結果を直接使用
8
+ coverage_dir: coverage
data/Gemfile CHANGED
@@ -8,9 +8,9 @@ source 'http://rubygems.org'
8
8
  group :development do
9
9
  gem 'rspec'
10
10
  gem 'rdoc'
11
+ gem 'rake'
11
12
  gem 'bundler'
12
- gem 'jeweler', '~> 2.3.0'
13
- gem 'simplecov'
13
+ gem 'simplecov', '~> 0.18'
14
14
  gem 'coveralls', require: false
15
15
  gem 'activesupport'
16
16
  end
data/README.markdown CHANGED
@@ -7,9 +7,7 @@ Custom SimpleCov formatter to generate a lcov style coverage.
7
7
  [![Gem Version](https://badge.fury.io/rb/simplecov-lcov.svg)](http://badge.fury.io/rb/simplecov-lcov)
8
8
  [![Inline docs](http://inch-ci.org/github/fortissimo1997/simplecov-lcov.svg?branch=master)](http://inch-ci.org/github/fortissimo1997/simplecov-lcov)
9
9
  [![Code Climate](https://codeclimate.com/github/fortissimo1997/simplecov-lcov.png)](https://codeclimate.com/github/fortissimo1997/simplecov-lcov)
10
- [![Dependency Status](https://gemnasium.com/fortissimo1997/simplecov-lcov.svg)](https://gemnasium.com/fortissimo1997/simplecov-lcov)
11
10
  [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fortissimo1997/simplecov-lcov/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fortissimo1997/simplecov-lcov/?branch=master)
12
- [![simplecov-lcov API Documentation](https://www.omniref.com/ruby/gems/simplecov-lcov.png)](https://www.omniref.com/ruby/gems/simplecov-lcov)
13
11
 
14
12
  ## Usage
15
13
 
data/Rakefile CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'bundler'
5
+ require 'bundler/gem_tasks'
5
6
  begin
6
7
  Bundler.setup(:default, :development)
7
8
  rescue Bundler::BundlerError => e
@@ -11,20 +12,6 @@ rescue Bundler::BundlerError => e
11
12
  end
12
13
  require 'rake'
13
14
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
- gem.name = 'simplecov-lcov'
18
- gem.homepage = 'http://github.com/fortissimo1997/simplecov-lcov'
19
- gem.license = 'MIT'
20
- gem.summary = %Q{Custom SimpleCov formatter to generate a lcov style coverage.}
21
- gem.description = %Q{Custom SimpleCov formatter to generate a lcov style coverage.}
22
- gem.email = 'fortissimo1997@gmail.com'
23
- gem.authors = ['fortissimo1997']
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
15
  require 'rspec/core'
29
16
  require 'rspec/core/rake_task'
30
17
  RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -18,7 +18,7 @@ module SimpleCovLcov
18
18
  end
19
19
 
20
20
  def single_report_path
21
- @single_report_path || File.join(output_directory, lcov_file_name)
21
+ @single_report_path ||= File.join(output_directory, lcov_file_name)
22
22
  end
23
23
 
24
24
  def lcov_file_name
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleCov
4
+ module Lcov
5
+ VERSION = '0.9.0'
6
+ end
7
+ end
@@ -1,5 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'pathname'
3
+ require_relative 'simplecov/lcov/version'
3
4
  require_relative 'simple_cov_lcov/configuration'
4
5
 
5
6
  fail 'simplecov-lcov requires simplecov' unless defined?(SimpleCov)
@@ -83,7 +84,32 @@ module SimpleCov
83
84
 
84
85
  def format_file(file)
85
86
  filename = file.filename.gsub("#{SimpleCov.root}/", './')
86
- "SF:#{filename}\n#{format_lines(file)}\nend_of_record\n"
87
+ pieces = []
88
+ pieces << "SF:#{filename}"
89
+ lines = format_lines(file)
90
+ pieces << lines if lines.length > 0
91
+ pieces << "LF:#{file.lines.count(&:coverage)}"
92
+ pieces << "LH:#{file.lines.count(&:covered?)}"
93
+
94
+ if SimpleCov.respond_to?(:branch_coverage?) && SimpleCov.branch_coverage?
95
+ branch_data = format_branches(file)
96
+ pieces << branch_data if branch_data.length > 0
97
+ pieces << "BRF:#{file.total_branches.length}"
98
+ pieces << "BRH:#{file.covered_branches.length}"
99
+ end
100
+ pieces << "end_of_record"
101
+ pieces << ""
102
+ pieces.join("\n")
103
+ end
104
+
105
+ def format_branches(file)
106
+ branch_idx = 0
107
+ filtered_branches(file)
108
+ .map do |branch|
109
+ branch_idx += 1
110
+ format_branch(branch, branch_idx)
111
+ end
112
+ .join("\n")
87
113
  end
88
114
 
89
115
  def format_lines(file)
@@ -96,6 +122,15 @@ module SimpleCov
96
122
  file.lines.reject(&:never?).reject(&:skipped?)
97
123
  end
98
124
 
125
+ def filtered_branches(file)
126
+ file.branches.reject(&:skipped?)
127
+ end
128
+
129
+ def format_branch(branch, branch_idx)
130
+ taken = branch.coverage == 0 ? '-' : branch.coverage
131
+ "BRDA:#{branch.report_line},0,#{branch_idx},#{taken}"
132
+ end
133
+
99
134
  def format_line(line)
100
135
  "DA:#{line.number},#{line.coverage}"
101
136
  end
@@ -1,17 +1,15 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: simplecov-lcov 0.7.0 ruby lib
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/simplecov/lcov/version"
6
4
 
7
5
  Gem::Specification.new do |s|
8
6
  s.name = "simplecov-lcov".freeze
9
- s.version = "0.7.0"
7
+ s.version = SimpleCov::Lcov::VERSION
10
8
 
11
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
10
  s.require_paths = ["lib".freeze]
13
11
  s.authors = ["fortissimo1997".freeze]
14
- s.date = "2018-02-10"
12
+ s.date = Time.now.strftime("%Y-%m-%d")
15
13
  s.description = "Custom SimpleCov formatter to generate a lcov style coverage.".freeze
16
14
  s.email = "fortissimo1997@gmail.com".freeze
17
15
  s.extra_rdoc_files = [
@@ -23,56 +21,37 @@ Gem::Specification.new do |s|
23
21
  ".document",
24
22
  ".rspec",
25
23
  ".tachikoma.yml",
26
- ".travis.yml",
27
24
  "Gemfile",
28
25
  "LICENSE.txt",
29
26
  "README.markdown",
30
27
  "Rakefile",
31
- "VERSION",
28
+ "lib/simplecov/lcov/version.rb",
32
29
  "lib/simple_cov_lcov/configuration.rb",
33
30
  "lib/simplecov-lcov.rb",
34
31
  "simplecov-lcov.gemspec",
35
32
  "spec/configuration_spec.rb",
36
33
  "spec/fixtures/app/models/user.rb",
37
34
  "spec/fixtures/hoge.rb",
35
+ "spec/fixtures/lcov/spec-fixtures-blank.rb.branch.lcov",
36
+ "spec/fixtures/lcov/spec-fixtures-blank.rb.lcov",
37
+ "spec/fixtures/lcov/spec-fixtures-app-models-user.rb.branch.lcov",
38
38
  "spec/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov",
39
+ "spec/fixtures/lcov/spec-fixtures-hoge.rb.branch.lcov",
39
40
  "spec/fixtures/lcov/spec-fixtures-hoge.rb.lcov",
40
41
  "spec/simplecov-lcov_spec.rb",
41
42
  "spec/spec_helper.rb"
42
43
  ]
43
44
  s.homepage = "http://github.com/fortissimo1997/simplecov-lcov".freeze
44
45
  s.licenses = ["MIT".freeze]
45
- s.rubygems_version = "2.6.11".freeze
46
+ s.rubygems_version = "3.7.1".freeze
46
47
  s.summary = "Custom SimpleCov formatter to generate a lcov style coverage.".freeze
47
48
 
48
- if s.respond_to? :specification_version then
49
- s.specification_version = 4
50
-
51
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
- s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
53
- s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
54
- s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
55
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
56
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
57
- s.add_development_dependency(%q<coveralls>.freeze, [">= 0"])
58
- s.add_development_dependency(%q<activesupport>.freeze, [">= 0"])
59
- else
60
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
61
- s.add_dependency(%q<rdoc>.freeze, [">= 0"])
62
- s.add_dependency(%q<bundler>.freeze, [">= 0"])
63
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
64
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
65
- s.add_dependency(%q<coveralls>.freeze, [">= 0"])
66
- s.add_dependency(%q<activesupport>.freeze, [">= 0"])
67
- end
68
- else
69
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
70
- s.add_dependency(%q<rdoc>.freeze, [">= 0"])
71
- s.add_dependency(%q<bundler>.freeze, [">= 0"])
72
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
73
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
74
- s.add_dependency(%q<coveralls>.freeze, [">= 0"])
75
- s.add_dependency(%q<activesupport>.freeze, [">= 0"])
76
- end
49
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
50
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
52
+ s.add_development_dependency(%q<rake>.freeze, [">= 0"])
53
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.18"])
54
+ s.add_development_dependency(%q<coveralls>.freeze, [">= 0"])
55
+ s.add_development_dependency(%q<activesupport>.freeze, [">= 0"])
77
56
  end
78
57
 
@@ -7,10 +7,19 @@ class User
7
7
  end
8
8
 
9
9
  def bar
10
- puts 'bar'
10
+ @a = 'bar'
11
11
  end
12
12
 
13
13
  def baz(b)
14
- puts b
14
+ @a = b
15
+ end
16
+
17
+ def uncovered
18
+ @a = 'baz'
15
19
  end
16
20
  end
21
+
22
+ User.new.foo
23
+ User.new.foo
24
+ User.new.bar
25
+ User.new.baz 'hello'
@@ -7,6 +7,14 @@ class Hoge
7
7
  end
8
8
 
9
9
  def bar
10
- puts 'bar'
10
+ @a = 0.9 > 0.5 ? 'foo' : 'not foo'
11
+ @a = 'bar'
12
+ end
13
+
14
+ def uncovered
15
+ @a = 'baz'
11
16
  end
12
17
  end
18
+
19
+ Hoge.new(1)
20
+ Hoge.new(2).bar
@@ -0,0 +1,19 @@
1
+ SF:./spec/fixtures/app/models/user.rb
2
+ DA:4,1
3
+ DA:5,1
4
+ DA:6,2
5
+ DA:9,1
6
+ DA:10,1
7
+ DA:13,1
8
+ DA:14,1
9
+ DA:17,1
10
+ DA:18,0
11
+ DA:22,1
12
+ DA:23,1
13
+ DA:24,1
14
+ DA:25,1
15
+ LF:13
16
+ LH:12
17
+ BRF:0
18
+ BRH:0
19
+ end_of_record
@@ -1,13 +1,17 @@
1
1
  SF:./spec/fixtures/app/models/user.rb
2
- DA:4,2
3
- DA:5,2
2
+ DA:4,1
3
+ DA:5,1
4
4
  DA:6,2
5
- DA:7,2
6
- DA:9,0
7
- DA:10,0
8
- DA:11,0
5
+ DA:9,1
6
+ DA:10,1
9
7
  DA:13,1
10
- DA:14,0
11
- DA:15,0
12
- DA:16,1
8
+ DA:14,1
9
+ DA:17,1
10
+ DA:18,0
11
+ DA:22,1
12
+ DA:23,1
13
+ DA:24,1
14
+ DA:25,1
15
+ LF:13
16
+ LH:12
13
17
  end_of_record
@@ -0,0 +1,6 @@
1
+ SF:./spec/fixtures/blank.rb
2
+ LF:0
3
+ LH:0
4
+ BRF:0
5
+ BRH:0
6
+ end_of_record
@@ -0,0 +1,4 @@
1
+ SF:./spec/fixtures/blank.rb
2
+ LF:0
3
+ LH:0
4
+ end_of_record
@@ -0,0 +1,18 @@
1
+ SF:./spec/fixtures/hoge.rb
2
+ DA:4,1
3
+ DA:5,1
4
+ DA:6,2
5
+ DA:9,1
6
+ DA:10,1
7
+ DA:11,1
8
+ DA:14,1
9
+ DA:15,0
10
+ DA:19,1
11
+ DA:20,1
12
+ LF:10
13
+ LH:9
14
+ BRDA:10,0,1,1
15
+ BRDA:10,0,2,-
16
+ BRF:2
17
+ BRH:1
18
+ end_of_record
@@ -1,10 +1,14 @@
1
1
  SF:./spec/fixtures/hoge.rb
2
2
  DA:4,1
3
- DA:5,2
3
+ DA:5,1
4
4
  DA:6,2
5
- DA:7,1
6
- DA:9,0
7
- DA:10,0
8
- DA:11,0
9
- DA:12,1
5
+ DA:9,1
6
+ DA:10,1
7
+ DA:11,1
8
+ DA:14,1
9
+ DA:15,0
10
+ DA:19,1
11
+ DA:20,1
12
+ LF:10
13
+ LH:9
10
14
  end_of_record
@@ -3,23 +3,21 @@ require 'active_support/core_ext/kernel/reporting'
3
3
 
4
4
  module SimpleCov::Formatter
5
5
  describe LcovFormatter do
6
- describe '#format' do
7
- let(:expand_path) {
8
- lambda do |filename|
9
- File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', filename))
10
- end
11
- }
6
+ let(:branch_coverage_enabled) { false }
7
+ before do
8
+ SimpleCov.clear_coverage_criteria
9
+ SimpleCov.enable_coverage :branch if branch_coverage_enabled
10
+ ENV['COVERAGE'] && SimpleCov.start do
11
+ add_filter '/.rvm/'
12
+ end
12
13
 
13
- let(:simplecov_result_hash) {
14
- {
15
- expand_path.call('hoge.rb') => [nil, nil, nil, 1, 2, 2, 1, nil, 0, 0, 0, 1],
16
- expand_path.call('app/models/user.rb') => [nil, nil, nil, 2, 2, 2, 2, nil, 0, 0, 0, nil, 1, 0, 0, 1]
17
- }
18
- }
14
+ load 'fixtures/app/models/user.rb'
15
+ load 'fixtures/hoge.rb'
16
+ load 'fixtures/blank.rb'
17
+ end
19
18
 
20
- let(:simplecov_result) {
21
- SimpleCov::Result.new(simplecov_result_hash)
22
- }
19
+ describe '#format' do
20
+ let(:simplecov_result) { SimpleCov.result }
23
21
 
24
22
  context 'generating report per file' do
25
23
  before {
@@ -50,6 +48,87 @@ module SimpleCov::Formatter
50
48
  }
51
49
  it { expect(File.read(output_path)).to eq(fixture) }
52
50
  end
51
+
52
+ describe 'spec-fixtures-blank.rb.lcov' do
53
+ let(:output_path) {
54
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-blank.rb.lcov')
55
+ }
56
+ let(:fixture) {
57
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-blank.rb.lcov")
58
+ }
59
+ it { expect(File.read(output_path)).to eq(fixture) }
60
+ end
61
+
62
+ describe 'branch coverage enabled' do
63
+ let(:branch_coverage_enabled) { true }
64
+
65
+ describe 'spec-fixtures-hoge.rb.branch.lcov' do
66
+ let(:output_path) {
67
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-hoge.rb.lcov')
68
+ }
69
+ let(:fixture) {
70
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.branch.lcov")
71
+ }
72
+ it { expect(File.read(output_path)).to eq(fixture) }
73
+ end
74
+
75
+ describe 'spec-fixtures-app-models-user.rb.branch.lcov' do
76
+ let(:output_path) {
77
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-app-models-user.rb.lcov')
78
+ }
79
+ let(:fixture) {
80
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.branch.lcov")
81
+ }
82
+ it { expect(File.read(output_path)).to eq(fixture) }
83
+ end
84
+
85
+ describe 'spec-fixtures-blank.rb.branch.lcov' do
86
+ let(:output_path) {
87
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-blank.rb.lcov')
88
+ }
89
+ let(:fixture) {
90
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-blank.rb.branch.lcov")
91
+ }
92
+ it { expect(File.read(output_path)).to eq(fixture) }
93
+ end
94
+ end
95
+
96
+ context 'SimpleCov.branch_coverage? is missing' do
97
+ before do
98
+ allow(SimpleCov).to receive(:branch_coverage?).and_return(false)
99
+ LcovFormatter.new.format(simplecov_result)
100
+ end
101
+
102
+ describe 'spec-fixtures-hoge.rb.lcov' do
103
+ let(:output_path) {
104
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-hoge.rb.lcov')
105
+ }
106
+ let(:fixture) {
107
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.lcov")
108
+ }
109
+ it { expect(File.read(output_path)).to eq(fixture) }
110
+ end
111
+
112
+ describe 'spec-fixtures-app-models-user.rb.lcov' do
113
+ let(:output_path) {
114
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-app-models-user.rb.lcov')
115
+ }
116
+ let(:fixture) {
117
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
118
+ }
119
+ it { expect(File.read(output_path)).to eq(fixture) }
120
+ end
121
+
122
+ describe 'spec-fixtures-blank.rb.lcov' do
123
+ let(:output_path) {
124
+ File.join(LcovFormatter.config.output_directory, 'spec-fixtures-blank.rb.lcov')
125
+ }
126
+ let(:fixture) {
127
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-blank.rb.lcov")
128
+ }
129
+ it { expect(File.read(output_path)).to eq(fixture) }
130
+ end
131
+ end
53
132
  end
54
133
 
55
134
  context 'generating single file report' do
@@ -72,8 +151,12 @@ module SimpleCov::Formatter
72
151
  let(:fixture_of_user) {
73
152
  File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
74
153
  }
154
+ let(:fixture_of_blank) {
155
+ File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-blank.rb.lcov")
156
+ }
75
157
  it { expect(File.read(output_path)).to match(fixture_of_hoge) }
76
158
  it { expect(File.read(output_path)).to match(fixture_of_user) }
159
+ it { expect(File.read(output_path)).to match(fixture_of_blank) }
77
160
  end
78
161
  end
79
162
  end
data/spec/spec_helper.rb CHANGED
@@ -17,9 +17,6 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
17
17
  Coveralls::SimpleCov::Formatter
18
18
  ])
19
19
 
20
- ENV['COVERAGE'] && SimpleCov.start do
21
- add_filter '/.rvm/'
22
- end
23
20
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
24
21
  $LOAD_PATH.unshift(File.dirname(__FILE__))
25
22
 
@@ -32,13 +29,13 @@ require 'simplecov-lcov'
32
29
  # Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
33
30
 
34
31
  RSpec.configure do |config|
35
- config.before(:each) do
36
- if Dir.exist?(SimpleCov::Formatter::LcovFormatter.config.output_directory)
37
- FileUtils
38
- .remove_dir(
39
- SimpleCov::Formatter::LcovFormatter.config.output_directory,
40
- true
41
- )
42
- end
43
- end
32
+ # config.before(:each) do
33
+ # if Dir.exist?(SimpleCov::Formatter::LcovFormatter.config.output_directory)
34
+ # FileUtils
35
+ # .remove_dir(
36
+ # SimpleCov::Formatter::LcovFormatter.config.output_directory,
37
+ # true
38
+ # )
39
+ # end
40
+ # end
44
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-lcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fortissimo1997
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-10 00:00:00.000000000 Z
11
+ date: 2025-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -53,33 +53,33 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: jeweler
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.3.0
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.3.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.18'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.18'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -120,19 +120,22 @@ files:
120
120
  - ".document"
121
121
  - ".rspec"
122
122
  - ".tachikoma.yml"
123
- - ".travis.yml"
124
123
  - Gemfile
125
124
  - LICENSE.txt
126
125
  - README.markdown
127
126
  - Rakefile
128
- - VERSION
129
127
  - lib/simple_cov_lcov/configuration.rb
130
128
  - lib/simplecov-lcov.rb
129
+ - lib/simplecov/lcov/version.rb
131
130
  - simplecov-lcov.gemspec
132
131
  - spec/configuration_spec.rb
133
132
  - spec/fixtures/app/models/user.rb
134
133
  - spec/fixtures/hoge.rb
134
+ - spec/fixtures/lcov/spec-fixtures-app-models-user.rb.branch.lcov
135
135
  - spec/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov
136
+ - spec/fixtures/lcov/spec-fixtures-blank.rb.branch.lcov
137
+ - spec/fixtures/lcov/spec-fixtures-blank.rb.lcov
138
+ - spec/fixtures/lcov/spec-fixtures-hoge.rb.branch.lcov
136
139
  - spec/fixtures/lcov/spec-fixtures-hoge.rb.lcov
137
140
  - spec/simplecov-lcov_spec.rb
138
141
  - spec/spec_helper.rb
@@ -140,7 +143,7 @@ homepage: http://github.com/fortissimo1997/simplecov-lcov
140
143
  licenses:
141
144
  - MIT
142
145
  metadata: {}
143
- post_install_message:
146
+ post_install_message:
144
147
  rdoc_options: []
145
148
  require_paths:
146
149
  - lib
@@ -155,9 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
158
  - !ruby/object:Gem::Version
156
159
  version: '0'
157
160
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.6.11
160
- signing_key:
161
+ rubygems_version: 3.5.22
162
+ signing_key:
161
163
  specification_version: 4
162
164
  summary: Custom SimpleCov formatter to generate a lcov style coverage.
163
165
  test_files: []
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - ruby-2.2.8
4
- - ruby-2.3.5
5
- - ruby-2.4.2
6
- - ruby-2.5.0
7
- - ruby-head
8
- env:
9
- - "COVERAGE=true"
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.7.0