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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bc12f5b88635ba1f1ccef5bbb0bf35582968a2596ec8560f68dd331b8484dbb
4
- data.tar.gz: 150ab6de22220b3b5621f96db48338999fcc8f03d9656d08764f51a783e5672f
3
+ metadata.gz: ff3a594ba89c3b9a80afbe0f9b4bda35b73d7df72c1070b837af1962f4e90a91
4
+ data.tar.gz: 3f665c5384accd7d54ae355db7e51e52d673c42968421361b986aca08c53a657
5
5
  SHA512:
6
- metadata.gz: d9e6dd6bbdca328fd172be5af7fddc549e3c9ecd3cb1d95f39bde3514fda2878cd56c37c41449f91e01e2a2499b6ecee6999c4519fcb80e6fc197215c9d2604e
7
- data.tar.gz: 98b81b28d1dcc376c24f19acaa7e1f41194df8e63d12d92277a8a048629930fd3c406010e431039b924f4a589c38a83625ce9c70224976e56a97614b2a37ff6e
6
+ metadata.gz: 3145e1f77eb4e45217692cc255613cd47b6ff0ddbb1ad339e97397b8ad022e5d5859851caf6f47f2a849e971a4133b50a8e4debbe2c9c89975b7c9c79cdb8ffa
7
+ data.tar.gz: e844098397d10fc14e48dc9106b2d3a6c9f90626a3d6b43165ef9e60b9b85778002c5d7827c07265d59737f8699ae5444fb841ae71cca2cc302dc090ae120703
@@ -16,11 +16,12 @@ rvm:
16
16
  - 2.5.8
17
17
  - 2.6.6
18
18
  - 2.7.2
19
+ - 3.0.0
19
20
  - ruby-head
20
- - jruby-9.2.13.0
21
+ - jruby-9.2.14.0
21
22
 
22
23
  jobs:
23
24
  allow_failures:
24
25
  - rvm: ruby-head
25
- - rvm: jruby-9.2.13.0
26
+ - rvm: jruby-9.2.14.0
26
27
  fast_finish: true
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0 / 2021-01-09
4
+
5
+ * [FEATURE] Add Ruby 3 compatibility
6
+ * [FEATURE] Add SimpleCov 0.21.0 compatibility
7
+ * [ENHANCEMENT] Update dependencies
8
+
3
9
  ## 0.19.0 / 2020-12-02
4
10
 
5
11
  * [FEATURE] Add SimpleCov 0.20.0 compatibility
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.5'
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.0'
18
+ gem 'rubocop-rspec', '~> 2.1'
19
19
  gem 'truthy', '~> 1.0'
20
20
  gem 'vcr', '~> 6.0'
21
- gem 'webmock', '~> 3.10'
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) 2020 Geremia Taglialatela
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](http://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)](http://badge.fury.io/rb/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.19.0', require: false
10
+ gem 'coveralls_reborn', '~> 0.20.0', require: false
11
11
  ```
@@ -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.21.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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.19.0'
4
+ VERSION = '0.20.0'
5
5
  end
@@ -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
- SimpleCov::Result.new(source_fixture('app/controllers/sample.rb') => [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil],
16
- source_fixture('app/models/airplane.rb') => [0, 0, 0, 0, 0],
17
- source_fixture('app/models/dog.rb') => [1, 1, 1, 1, 1],
18
- source_fixture('app/models/house.rb') => [nil, nil, nil, nil, nil, nil, nil, nil, nil, nil],
19
- source_fixture('app/models/robot.rb') => [1, 1, 1, 1, nil, nil, 1, 0, nil, nil],
20
- source_fixture('app/models/user.rb') => [nil, 1, 1, 1, 1, 0, 1, 0, nil, nil],
21
- source_fixture('sample.rb') => [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil])
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
@@ -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").with(
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.19.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: 2020-12-02 00:00:00.000000000 Z
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.21.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.21.0
34
+ version: 0.22.0
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: term-ansicolor
37
37
  requirement: !ruby/object:Gem::Requirement