coveralls_reborn 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +6 -5
- data/README.md +1 -1
- data/coveralls-ruby.gemspec +1 -1
- data/lib/coveralls.rb +1 -1
- data/lib/coveralls/command.rb +4 -4
- data/lib/coveralls/configuration.rb +4 -5
- data/lib/coveralls/simplecov.rb +7 -7
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/coveralls_spec.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc12f5b88635ba1f1ccef5bbb0bf35582968a2596ec8560f68dd331b8484dbb
|
4
|
+
data.tar.gz: 150ab6de22220b3b5621f96db48338999fcc8f03d9656d08764f51a783e5672f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9e6dd6bbdca328fd172be5af7fddc549e3c9ecd3cb1d95f39bde3514fda2878cd56c37c41449f91e01e2a2499b6ecee6999c4519fcb80e6fc197215c9d2604e
|
7
|
+
data.tar.gz: 98b81b28d1dcc376c24f19acaa7e1f41194df8e63d12d92277a8a048629930fd3c406010e431039b924f4a589c38a83625ce9c70224976e56a97614b2a37ff6e
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -11,13 +11,14 @@ end
|
|
11
11
|
|
12
12
|
group :development do
|
13
13
|
gem 'rake', '~> 13.0'
|
14
|
-
gem 'rspec', '~> 3.
|
15
|
-
gem 'rubocop', '~>
|
16
|
-
gem 'rubocop-performance', '~> 1.
|
17
|
-
gem 'rubocop-
|
14
|
+
gem 'rspec', '~> 3.10'
|
15
|
+
gem 'rubocop', '~> 1.5'
|
16
|
+
gem 'rubocop-performance', '~> 1.9'
|
17
|
+
gem 'rubocop-rake', '~> 0.5.1'
|
18
|
+
gem 'rubocop-rspec', '~> 2.0'
|
18
19
|
gem 'truthy', '~> 1.0'
|
19
20
|
gem 'vcr', '~> 6.0'
|
20
|
-
gem 'webmock', '~> 3.
|
21
|
+
gem 'webmock', '~> 3.10'
|
21
22
|
end
|
22
23
|
|
23
24
|
group :development, :test do
|
data/README.md
CHANGED
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.21.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.rb
CHANGED
@@ -66,7 +66,7 @@ module Coveralls
|
|
66
66
|
|
67
67
|
if simplecov_setting
|
68
68
|
Coveralls::Output.puts("[Coveralls] Using SimpleCov's '#{simplecov_setting}' settings.", color: 'green')
|
69
|
-
if
|
69
|
+
if block
|
70
70
|
::SimpleCov.start(simplecov_setting) { instance_eval(&block) }
|
71
71
|
else
|
72
72
|
::SimpleCov.start(simplecov_setting)
|
data/lib/coveralls/command.rb
CHANGED
@@ -13,10 +13,10 @@ module Coveralls
|
|
13
13
|
|
14
14
|
if File.exist?('.travis.yml')
|
15
15
|
cmds = begin
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
YAML.load_file('.travis.yml')['script'] || cmds
|
17
|
+
rescue StandardError
|
18
|
+
cmds
|
19
|
+
end
|
20
20
|
end
|
21
21
|
|
22
22
|
cmds.each { |cmd| system cmd }
|
@@ -180,7 +180,7 @@ module Coveralls
|
|
180
180
|
remotes = nil
|
181
181
|
begin
|
182
182
|
remotes = `git remote -v`.split(/\n/).map do |remote|
|
183
|
-
splits = remote.split
|
183
|
+
splits = remote.split.compact
|
184
184
|
{ name: splits[0], url: splits[1] }
|
185
185
|
end.uniq
|
186
186
|
rescue StandardError => e
|
@@ -199,14 +199,14 @@ module Coveralls
|
|
199
199
|
end
|
200
200
|
|
201
201
|
def relevant_env
|
202
|
-
|
202
|
+
base_env = {
|
203
203
|
pwd: pwd,
|
204
204
|
rails_root: rails_root,
|
205
205
|
simplecov_root: simplecov_root,
|
206
206
|
gem_version: VERSION
|
207
207
|
}
|
208
208
|
|
209
|
-
|
209
|
+
service_env =
|
210
210
|
if ENV['TRAVIS']
|
211
211
|
travis_env_hash
|
212
212
|
elsif ENV['CIRCLECI']
|
@@ -218,9 +218,8 @@ module Coveralls
|
|
218
218
|
else
|
219
219
|
{}
|
220
220
|
end
|
221
|
-
end
|
222
221
|
|
223
|
-
|
222
|
+
base_env.merge! service_env
|
224
223
|
end
|
225
224
|
|
226
225
|
private
|
data/lib/coveralls/simplecov.rb
CHANGED
@@ -7,10 +7,10 @@ module Coveralls
|
|
7
7
|
class Formatter
|
8
8
|
def display_result(result)
|
9
9
|
# Log which files would be submitted.
|
10
|
-
if
|
11
|
-
Coveralls::Output.puts '[Coveralls] Some handy coverage stats:'
|
12
|
-
else
|
10
|
+
if result.files.empty?
|
13
11
|
Coveralls::Output.puts '[Coveralls] There are no covered files.', color: 'yellow'
|
12
|
+
else
|
13
|
+
Coveralls::Output.puts '[Coveralls] Some handy coverage stats:'
|
14
14
|
end
|
15
15
|
|
16
16
|
result.files.each do |f|
|
@@ -95,10 +95,10 @@ module Coveralls
|
|
95
95
|
|
96
96
|
def output_message(result)
|
97
97
|
"Coverage is at #{begin
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
98
|
+
result.covered_percent.round(2)
|
99
|
+
rescue StandardError
|
100
|
+
result.covered_percent.round
|
101
|
+
end}%.\nCoverage report sent to Coveralls."
|
102
102
|
end
|
103
103
|
|
104
104
|
def short_filename(filename)
|
data/lib/coveralls/version.rb
CHANGED
@@ -91,12 +91,12 @@ describe Coveralls do
|
|
91
91
|
|
92
92
|
describe '#setup!' do
|
93
93
|
it 'sets SimpleCov adapter' do
|
94
|
-
# rubocop:disable RSpec/LeakyConstantDeclaration
|
94
|
+
# rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
|
95
95
|
SimpleCovTmp = SimpleCov
|
96
96
|
Object.send :remove_const, :SimpleCov
|
97
97
|
silence { described_class.setup! }
|
98
98
|
SimpleCov = SimpleCovTmp
|
99
|
-
# rubocop:enable RSpec/LeakyConstantDeclaration
|
99
|
+
# rubocop:enable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
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.19.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: 2020-
|
13
|
+
date: 2020-12-02 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.21.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.21.0
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: term-ansicolor
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.1.
|
167
|
+
rubygems_version: 3.1.4
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: A Ruby implementation of the Coveralls API.
|