coveralls_reborn 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +6 -0
- data/Gemfile +3 -3
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/coveralls-ruby.gemspec +1 -1
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/coveralls_spec.rb +8 -0
- data/spec/coveralls/simple_cov/formatter_spec.rb +11 -7
- data/spec/spec_helper.rb +2 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff3a594ba89c3b9a80afbe0f9b4bda35b73d7df72c1070b837af1962f4e90a91
|
4
|
+
data.tar.gz: 3f665c5384accd7d54ae355db7e51e52d673c42968421361b986aca08c53a657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3145e1f77eb4e45217692cc255613cd47b6ff0ddbb1ad339e97397b8ad022e5d5859851caf6f47f2a849e971a4133b50a8e4debbe2c9c89975b7c9c79cdb8ffa
|
7
|
+
data.tar.gz: e844098397d10fc14e48dc9106b2d3a6c9f90626a3d6b43165ef9e60b9b85778002c5d7827c07265d59737f8699ae5444fb841ae71cca2cc302dc090ae120703
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -12,13 +12,13 @@ end
|
|
12
12
|
group :development do
|
13
13
|
gem 'rake', '~> 13.0'
|
14
14
|
gem 'rspec', '~> 3.10'
|
15
|
-
gem 'rubocop', '~> 1.
|
15
|
+
gem 'rubocop', '~> 1.8'
|
16
16
|
gem 'rubocop-performance', '~> 1.9'
|
17
17
|
gem 'rubocop-rake', '~> 0.5.1'
|
18
|
-
gem 'rubocop-rspec', '~> 2.
|
18
|
+
gem 'rubocop-rspec', '~> 2.1'
|
19
19
|
gem 'truthy', '~> 1.0'
|
20
20
|
gem 'vcr', '~> 6.0'
|
21
|
-
gem 'webmock', '~> 3.
|
21
|
+
gem 'webmock', '~> 3.11'
|
22
22
|
end
|
23
23
|
|
24
24
|
group :development, :test do
|
data/LICENSE
CHANGED
@@ -2,7 +2,7 @@ MIT License
|
|
2
2
|
|
3
3
|
Copyright (c) 2018 Wil Gieseler
|
4
4
|
|
5
|
-
Copyright (c)
|
5
|
+
Copyright (c) 2021 Geremia Taglialatela
|
6
6
|
|
7
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [Coveralls Reborn](
|
1
|
+
# [Coveralls Reborn](https://coveralls.io) for Ruby [![Coverage Status](https://coveralls.io/repos/github/tagliala/coveralls-ruby-reborn/badge.svg?branch=master)](https://coveralls.io/github/tagliala/coveralls-ruby-reborn?branch=master) [![Build Status](https://secure.travis-ci.org/tagliala/coveralls-ruby-reborn.svg?branch=master)](https://travis-ci.org/tagliala/coveralls-ruby-reborn) [![Gem Version](https://badge.fury.io/rb/coveralls_reborn.svg)](https://badge.fury.io/rb/coveralls_reborn)
|
2
2
|
|
3
3
|
### [Read the docs →](https://docs.coveralls.io/ruby-on-rails)
|
4
4
|
|
@@ -7,5 +7,5 @@ An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/
|
|
7
7
|
Add to your `Gemfile`:
|
8
8
|
|
9
9
|
```rb
|
10
|
-
gem 'coveralls_reborn', '~> 0.
|
10
|
+
gem 'coveralls_reborn', '~> 0.20.0', require: false
|
11
11
|
```
|
data/coveralls-ruby.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
|
|
25
25
|
|
26
26
|
gem.required_ruby_version = '>= 2.4'
|
27
27
|
|
28
|
-
gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.
|
28
|
+
gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.22.0'
|
29
29
|
gem.add_dependency 'term-ansicolor', '~> 1.6'
|
30
30
|
gem.add_dependency 'thor', '>= 0.20.3', '< 2.0'
|
31
31
|
gem.add_dependency 'tins', '~> 1.16'
|
data/lib/coveralls/version.rb
CHANGED
@@ -80,6 +80,14 @@ describe Coveralls do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
describe '#push!' do
|
83
|
+
let(:coverage_hash) do
|
84
|
+
{ 'file.rb'=>{ 'lines'=>[nil] } }
|
85
|
+
end
|
86
|
+
|
87
|
+
before do
|
88
|
+
allow(SimpleCov::ResultMerger).to receive(:merge_valid_results).and_return([['RSpec'], coverage_hash])
|
89
|
+
end
|
90
|
+
|
83
91
|
it 'sends existing test results' do
|
84
92
|
result = false
|
85
93
|
silence do
|
@@ -12,13 +12,17 @@ describe Coveralls::SimpleCov::Formatter do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
let(:result) do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
options = {
|
16
|
+
source_fixture('app/controllers/sample.rb') => { lines: [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil] },
|
17
|
+
source_fixture('app/models/airplane.rb') => { lines: [0, 0, 0, 0, 0] },
|
18
|
+
source_fixture('app/models/dog.rb') => { lines: [1, 1, 1, 1, 1] },
|
19
|
+
source_fixture('app/models/house.rb') => { lines: [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] },
|
20
|
+
source_fixture('app/models/robot.rb') => { lines: [1, 1, 1, 1, nil, nil, 1, 0, nil, nil] },
|
21
|
+
source_fixture('app/models/user.rb') => { lines: [nil, 1, 1, 1, 1, 0, 1, 0, nil, nil] },
|
22
|
+
source_fixture('sample.rb') => { lines: [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil] }
|
23
|
+
}
|
24
|
+
|
25
|
+
SimpleCov::Result.new(options)
|
22
26
|
end
|
23
27
|
|
24
28
|
describe '#format' do
|
data/spec/spec_helper.rb
CHANGED
@@ -49,15 +49,8 @@ end
|
|
49
49
|
|
50
50
|
def stub_api_post
|
51
51
|
body = '{"message":"","url":""}'
|
52
|
-
stub_request(:post, "#{Coveralls::API::API_BASE}/jobs")
|
53
|
-
headers: {
|
54
|
-
'Accept' => '*/*; q=0.5, application/xml',
|
55
|
-
'Accept-Encoding' => 'gzip, deflate',
|
56
|
-
'Content-Length' => /.+/,
|
57
|
-
'Content-Type' => /.+/,
|
58
|
-
'User-Agent' => 'Ruby'
|
59
|
-
}
|
60
|
-
).to_return(status: 200, body: body, headers: {})
|
52
|
+
stub_request(:post, "#{Coveralls::API::API_BASE}/jobs")
|
53
|
+
.to_return(status: 200, body: body, headers: {})
|
61
54
|
end
|
62
55
|
|
63
56
|
def silence(&block)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls_reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Merwin
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: simplecov
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.18.1
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.
|
24
|
+
version: 0.22.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 0.18.1
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.22.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: term-ansicolor
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|