coveralls_reborn 0.16.0 → 0.17.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 +4 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/Gemfile +4 -4
- data/Rakefile +0 -1
- data/bin/coveralls +1 -1
- data/coveralls-ruby.gemspec +1 -1
- data/lib/coveralls/api.rb +4 -4
- data/lib/coveralls/rake/task.rb +1 -1
- data/lib/coveralls/version.rb +1 -1
- data/spec/spec_helper.rb +4 -6
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e597f0d8aa56b69519be43917d05b4ba6f2d2401d4f493c6a8dc00e90deba3
|
4
|
+
data.tar.gz: 41f4c4f82f4a0dbd6140fd2585cd280710f78d39fa3fa62300832df8ed1a0c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c15cd369a3e020c4a1dc928cf2fd68ce154f1d5837cd0952305ec559aeeacabceeed516f5168bcbc4a55fe286af0afbfadcbfa78391854dcd00dc46e063bd05
|
7
|
+
data.tar.gz: fff07f460d21d7a768c86855ffb12c46f03da073605dbc3c6563b9c8c5c40d1624f124737ba0ee26ba0fd5c0a45da325879bf40bc097e2b5d5cea0cc3b55dfd5
|
data/.rubocop.yml
CHANGED
@@ -17,7 +17,7 @@ Layout/LineLength:
|
|
17
17
|
Enabled: false
|
18
18
|
|
19
19
|
Metrics/AbcSize:
|
20
|
-
Max:
|
20
|
+
Max: 44.11
|
21
21
|
|
22
22
|
Metrics/CyclomaticComplexity:
|
23
23
|
Max: 19
|
@@ -43,6 +43,9 @@ RSpec/ExampleLength:
|
|
43
43
|
RSpec/MultipleExpectations:
|
44
44
|
Enabled: false
|
45
45
|
|
46
|
+
RSpec/MultipleMemoizedHelpers:
|
47
|
+
Enabled: false
|
48
|
+
|
46
49
|
RSpec/NestedGroups:
|
47
50
|
Max: 4
|
48
51
|
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.17.0 / 2020-08-26
|
4
|
+
|
5
|
+
* [FEATURE] Add SimpleCov 0.19.0 compatibility
|
6
|
+
* [ENHANCEMENT] Update dependencies
|
7
|
+
|
3
8
|
## 0.16.0 / 2020-04-30
|
4
9
|
|
5
10
|
* [FEATURE] Remove dependency on json gem [#4](https://github.com/tagliala/coveralls-ruby-reborn/pull/4)
|
data/Gemfile
CHANGED
@@ -12,11 +12,11 @@ end
|
|
12
12
|
group :development do
|
13
13
|
gem 'rake', '~> 13.0'
|
14
14
|
gem 'rspec', '~> 3.9'
|
15
|
-
gem 'rubocop', '~> 0.
|
16
|
-
gem 'rubocop-performance', '~> 1.
|
17
|
-
gem 'rubocop-rspec', '~> 1.
|
15
|
+
gem 'rubocop', '~> 0.89.1'
|
16
|
+
gem 'rubocop-performance', '~> 1.7'
|
17
|
+
gem 'rubocop-rspec', '~> 1.43'
|
18
18
|
gem 'truthy', '~> 1.0'
|
19
|
-
gem 'vcr', '~>
|
19
|
+
gem 'vcr', '~> 6.0'
|
20
20
|
gem 'webmock', '~> 3.8'
|
21
21
|
end
|
22
22
|
|
data/Rakefile
CHANGED
data/bin/coveralls
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', '
|
28
|
+
gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.20.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/api.rb
CHANGED
@@ -53,9 +53,9 @@ module Coveralls
|
|
53
53
|
begin
|
54
54
|
require 'webmock'
|
55
55
|
|
56
|
-
allow = WebMock::Config.instance.allow
|
57
|
-
WebMock::Config.instance.allow =
|
58
|
-
rescue LoadError
|
56
|
+
allow = Array(WebMock::Config.instance.allow)
|
57
|
+
WebMock::Config.instance.allow = allow.push API_HOST
|
58
|
+
rescue LoadError
|
59
59
|
rescue StandardError => e
|
60
60
|
# TODO: Add error action
|
61
61
|
puts e.message
|
@@ -67,7 +67,7 @@ module Coveralls
|
|
67
67
|
VCR.send(VCR.version.major < 2 ? :config : :configure) do |c|
|
68
68
|
c.ignore_hosts API_HOST
|
69
69
|
end
|
70
|
-
rescue LoadError
|
70
|
+
rescue LoadError
|
71
71
|
rescue StandardError => e
|
72
72
|
# TODO: Add error action
|
73
73
|
puts e.message
|
data/lib/coveralls/rake/task.rb
CHANGED
@@ -7,7 +7,7 @@ module Coveralls
|
|
7
7
|
class RakeTask < ::Rake::TaskLib
|
8
8
|
include ::Rake::DSL if defined?(::Rake::DSL)
|
9
9
|
|
10
|
-
def initialize(*_args)
|
10
|
+
def initialize(*_args) # rubocop:disable Lint/MissingSuper
|
11
11
|
namespace :coveralls do
|
12
12
|
desc 'Push latest coverage results to Coveralls.io'
|
13
13
|
task :push do
|
data/lib/coveralls/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -21,7 +21,7 @@ def setup_formatter
|
|
21
21
|
|
22
22
|
SimpleCov.start do
|
23
23
|
add_filter do |source_file|
|
24
|
-
source_file.filename
|
24
|
+
source_file.filename.include?('spec') && !source_file.filename.include?('fixture')
|
25
25
|
end
|
26
26
|
add_filter %r{/.bundle/}
|
27
27
|
end
|
@@ -49,7 +49,7 @@ end
|
|
49
49
|
|
50
50
|
def stub_api_post
|
51
51
|
body = '{"message":"","url":""}'
|
52
|
-
stub_request(:post, Coveralls::API::API_BASE
|
52
|
+
stub_request(:post, "#{Coveralls::API::API_BASE}/jobs").with(
|
53
53
|
headers: {
|
54
54
|
'Accept' => '*/*; q=0.5, application/xml',
|
55
55
|
'Accept-Encoding' => 'gzip, deflate',
|
@@ -60,12 +60,10 @@ def stub_api_post
|
|
60
60
|
).to_return(status: 200, body: body, headers: {})
|
61
61
|
end
|
62
62
|
|
63
|
-
def silence
|
63
|
+
def silence(&block)
|
64
64
|
return yield if ENV['silence'] == 'false'
|
65
65
|
|
66
|
-
silence_stream(
|
67
|
-
yield
|
68
|
-
end
|
66
|
+
silence_stream($stdout, &block)
|
69
67
|
end
|
70
68
|
|
71
69
|
def silence_stream(stream)
|
metadata
CHANGED
@@ -1,31 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls_reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Merwin
|
8
8
|
- Wil Gieseler
|
9
9
|
- Geremia Taglialatela
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: simplecov
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.18.1
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.20.0
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: 0.18.1
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.20.0
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: term-ansicolor
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +149,7 @@ metadata:
|
|
143
149
|
bug_tracker_uri: https://github.com/tagliala/coveralls-ruby-reborn/issues
|
144
150
|
changelog_uri: https://github.com/tagliala/coveralls-ruby-reborn/blob/master/CHANGELOG.md
|
145
151
|
source_code_uri: https://github.com/tagliala/coveralls-ruby-reborn
|
146
|
-
post_install_message:
|
152
|
+
post_install_message:
|
147
153
|
rdoc_options: []
|
148
154
|
require_paths:
|
149
155
|
- lib
|
@@ -158,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
164
|
- !ruby/object:Gem::Version
|
159
165
|
version: '0'
|
160
166
|
requirements: []
|
161
|
-
rubygems_version: 3.1.
|
162
|
-
signing_key:
|
167
|
+
rubygems_version: 3.1.3
|
168
|
+
signing_key:
|
163
169
|
specification_version: 4
|
164
170
|
summary: A Ruby implementation of the Coveralls API.
|
165
171
|
test_files:
|