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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a3758b2989d5af5c2ff847faa5b031b847a1053a9477b6ef8b62b37b879be49
4
- data.tar.gz: 162ff35df0510a7d1e9930902cedf6fa56a5dbf01ebc8cd29b81340bb3947e30
3
+ metadata.gz: 33e597f0d8aa56b69519be43917d05b4ba6f2d2401d4f493c6a8dc00e90deba3
4
+ data.tar.gz: 41f4c4f82f4a0dbd6140fd2585cd280710f78d39fa3fa62300832df8ed1a0c48
5
5
  SHA512:
6
- metadata.gz: c9f3ca07822602da301f123d18481c78bd43bf55bbed8dd3e4796c05e559956d8d3b400639258787fbeaaf739932eb438569090832c9f9aec86554a44c5a0042
7
- data.tar.gz: ae3c50bb4a0df905536b514673eb32b217e9e35d3205d5414488888b23c887232f26b30d640cd2ea7a41fce8559af251571a541352ee98901118b075ca7627ff
6
+ metadata.gz: 8c15cd369a3e020c4a1dc928cf2fd68ce154f1d5837cd0952305ec559aeeacabceeed516f5168bcbc4a55fe286af0afbfadcbfa78391854dcd00dc46e063bd05
7
+ data.tar.gz: fff07f460d21d7a768c86855ffb12c46f03da073605dbc3c6563b9c8c5c40d1624f124737ba0ee26ba0fd5c0a45da325879bf40bc097e2b5d5cea0cc3b55dfd5
@@ -17,7 +17,7 @@ Layout/LineLength:
17
17
  Enabled: false
18
18
 
19
19
  Metrics/AbcSize:
20
- Max: 39.29
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
 
@@ -17,10 +17,10 @@ rvm:
17
17
  - 2.6.6
18
18
  - 2.7.1
19
19
  - ruby-head
20
- - jruby-9.2.11.1
20
+ - jruby-9.2.13.0
21
21
 
22
22
  jobs:
23
23
  allow_failures:
24
24
  - rvm: ruby-head
25
- - rvm: jruby-9.2.11.1
25
+ - rvm: jruby-9.2.13.0
26
26
  fast_finish: true
@@ -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.82.0'
16
- gem 'rubocop-performance', '~> 1.5'
17
- gem 'rubocop-rspec', '~> 1.38'
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', '~> 5.1'
19
+ gem 'vcr', '~> 6.0'
20
20
  gem 'webmock', '~> 3.8'
21
21
  end
22
22
 
data/Rakefile CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env rake
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'bundler/gem_tasks'
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+ lib = File.expand_path('../lib', __dir__)
5
5
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
6
6
 
7
7
  require 'coveralls'
@@ -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'
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'
@@ -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 = [*allow].push API_HOST
58
- rescue LoadError # rubocop:disable Lint/SuppressedException
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 # rubocop:disable Lint/SuppressedException
70
+ rescue LoadError
71
71
  rescue StandardError => e
72
72
  # TODO: Add error action
73
73
  puts e.message
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.16.0'
4
+ VERSION = '0.17.0'
5
5
  end
@@ -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 =~ /spec/ && source_file.filename !~ /fixture/
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 + '/jobs').with(
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(STDOUT) do
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.16.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-04-30 00:00:00.000000000 Z
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.2
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: