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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8944dfeea26ddc93177d29121638658b703b9f5a
4
- data.tar.gz: 2bf722b7152e7d4729ab798201140a67f21db295
3
+ metadata.gz: 6d152c269d3cc00a787bfefade832b582715d99c
4
+ data.tar.gz: 91faefca6958c820a6c527f981c170452096f189
5
5
  SHA512:
6
- metadata.gz: b1f54d33e2235e715f18bcc9175096181b1322b69ab23b0ba89b892452d6fa09eb934dc9bf91d44180e3552a316417ed17a095351910a974649ed953904b2ea1
7
- data.tar.gz: 6d8b1781694630fc67e58b11049bd3e2b6da7a1f59d03d72f64f36ed20e8a5f73c5f43df97cd065329bfe31e7363fe92de4bd0bc89f81aaaa66e20a2f398dbce
6
+ metadata.gz: f865643044bea19857bbc997ebc8f1c7e4e4c0ff8b6e955ebdf4e2d2a9988f5fc9ae6325ad81d421c671c0c65791f5c86229de5c17f7584372d703b1a5ac816b
7
+ data.tar.gz: 7b8e8e299a83055d35c4faae166e54d4a55d516fc2c8f6e7ca94bdfae4997274bb977dda49489239a117c54a08b293a8d9f64d493911eda348a1516d70392535
data/Gemfile CHANGED
@@ -12,5 +12,5 @@ group :development do
12
12
  gem 'jeweler', '~> 2.0.1'
13
13
  gem 'simplecov'
14
14
  gem 'coveralls', require: false
15
- gem 'activesupport'
15
+ gem 'activesupport', '~> 4.1.10'
16
16
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -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
- "SF:#{file.filename}\n#{format_lines(file)}\nend_of_record\n"
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)
@@ -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.4.0 ruby lib
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.4.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 = "2014-12-16"
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>, [">= 0"])
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>, [">= 0"])
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>, [">= 0"])
73
+ s.add_dependency(%q<activesupport>, ["~> 4.1.10"])
74
74
  end
75
75
  end
76
76
 
@@ -1,4 +1,4 @@
1
- SF:/path/to/repository/spec/fixtures/app/models/user.rb
1
+ SF:./spec/fixtures/app/models/user.rb
2
2
  DA:4,2
3
3
  DA:5,2
4
4
  DA:6,2
@@ -1,4 +1,4 @@
1
- SF:/path/to/repository/spec/fixtures/hoge.rb
1
+ SF:./spec/fixtures/hoge.rb
2
2
  DA:4,1
3
3
  DA:5,2
4
4
  DA:6,2
@@ -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) }
@@ -1,6 +1,5 @@
1
1
  require 'simplecov'
2
2
  require 'coveralls'
3
- require 'pathname'
4
3
  require 'fileutils'
5
4
 
6
5
  module SimpleCov::Configuration
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.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: 2014-12-16 00:00:00.000000000 Z
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: '0'
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: '0'
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: []