simplecov-lcov 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/simplecov-lcov.rb +3 -1
- data/simplecov-lcov.gemspec +6 -6
- data/spec/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov +1 -1
- data/spec/fixtures/lcov/spec-fixtures-hoge.rb.lcov +1 -1
- data/spec/simplecov-lcov_spec.rb +0 -4
- data/spec/spec_helper.rb +0 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d152c269d3cc00a787bfefade832b582715d99c
|
4
|
+
data.tar.gz: 91faefca6958c820a6c527f981c170452096f189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f865643044bea19857bbc997ebc8f1c7e4e4c0ff8b6e955ebdf4e2d2a9988f5fc9ae6325ad81d421c671c0c65791f5c86229de5c17f7584372d703b1a5ac816b
|
7
|
+
data.tar.gz: 7b8e8e299a83055d35c4faae166e54d4a55d516fc2c8f6e7ca94bdfae4997274bb977dda49489239a117c54a08b293a8d9f64d493911eda348a1516d70392535
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/simplecov-lcov.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'pathname'
|
2
3
|
|
3
4
|
fail 'simplecov-lcov requires simplecov' unless defined?(SimpleCov)
|
4
5
|
|
@@ -68,7 +69,8 @@ module SimpleCov
|
|
68
69
|
end
|
69
70
|
|
70
71
|
def format_file(file)
|
71
|
-
|
72
|
+
filename = file.filename.gsub("#{SimpleCov.root}/", './')
|
73
|
+
"SF:#{filename}\n#{format_lines(file)}\nend_of_record\n"
|
72
74
|
end
|
73
75
|
|
74
76
|
def format_lines(file)
|
data/simplecov-lcov.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: simplecov-lcov 0.
|
5
|
+
# stub: simplecov-lcov 0.5.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "simplecov-lcov"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.5.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["fortissimo1997"]
|
13
|
-
s.date = "
|
13
|
+
s.date = "2015-04-16"
|
14
14
|
s.description = "Custom SimpleCov formatter to generate a lcov style coverage."
|
15
15
|
s.email = "fortissimo1997@gmail.com"
|
16
16
|
s.extra_rdoc_files = [
|
@@ -53,7 +53,7 @@ Gem::Specification.new do |s|
|
|
53
53
|
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
54
54
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
55
55
|
s.add_development_dependency(%q<coveralls>, [">= 0"])
|
56
|
-
s.add_development_dependency(%q<activesupport>, ["
|
56
|
+
s.add_development_dependency(%q<activesupport>, ["~> 4.1.10"])
|
57
57
|
else
|
58
58
|
s.add_dependency(%q<rspec>, [">= 0"])
|
59
59
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
|
|
61
61
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
62
62
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
63
63
|
s.add_dependency(%q<coveralls>, [">= 0"])
|
64
|
-
s.add_dependency(%q<activesupport>, ["
|
64
|
+
s.add_dependency(%q<activesupport>, ["~> 4.1.10"])
|
65
65
|
end
|
66
66
|
else
|
67
67
|
s.add_dependency(%q<rspec>, [">= 0"])
|
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
|
|
70
70
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
71
71
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
72
72
|
s.add_dependency(%q<coveralls>, [">= 0"])
|
73
|
-
s.add_dependency(%q<activesupport>, ["
|
73
|
+
s.add_dependency(%q<activesupport>, ["~> 4.1.10"])
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
data/spec/simplecov-lcov_spec.rb
CHANGED
@@ -38,7 +38,6 @@ describe SimpleCov::Formatter::LcovFormatter do
|
|
38
38
|
}
|
39
39
|
let(:fixture) {
|
40
40
|
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.lcov")
|
41
|
-
.gsub('/path/to/repository/spec', File.dirname(__FILE__))
|
42
41
|
}
|
43
42
|
it { expect(File.read(output_path)).to eq(fixture) }
|
44
43
|
end
|
@@ -49,7 +48,6 @@ describe SimpleCov::Formatter::LcovFormatter do
|
|
49
48
|
}
|
50
49
|
let(:fixture) {
|
51
50
|
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
|
52
|
-
.gsub('/path/to/repository/spec', File.dirname(__FILE__))
|
53
51
|
}
|
54
52
|
it { expect(File.read(output_path)).to eq(fixture) }
|
55
53
|
end
|
@@ -77,11 +75,9 @@ describe SimpleCov::Formatter::LcovFormatter do
|
|
77
75
|
}
|
78
76
|
let(:fixture_of_hoge) {
|
79
77
|
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.lcov")
|
80
|
-
.gsub('/path/to/repository/spec', File.dirname(__FILE__))
|
81
78
|
}
|
82
79
|
let(:fixture_of_user) {
|
83
80
|
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
|
84
|
-
.gsub('/path/to/repository/spec', File.dirname(__FILE__))
|
85
81
|
}
|
86
82
|
it { expect(File.read(output_path)).to match(fixture_of_hoge) }
|
87
83
|
it { expect(File.read(output_path)).to match(fixture_of_user) }
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fortissimo1997
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: activesupport
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 4.1.10
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 4.1.10
|
111
111
|
description: Custom SimpleCov formatter to generate a lcov style coverage.
|
112
112
|
email: fortissimo1997@gmail.com
|
113
113
|
executables: []
|