coveralls_reborn 0.13.4 → 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: 8f264c0614d53a7e7e422a4bbe0da556f79e2f939cc0033426f1d19b2aeadb76
4
- data.tar.gz: cbdb51d5a048685b38b1e1c60b92b7d1206d8ca43f48803c449fc8f2d946a3b0
3
+ metadata.gz: 33e597f0d8aa56b69519be43917d05b4ba6f2d2401d4f493c6a8dc00e90deba3
4
+ data.tar.gz: 41f4c4f82f4a0dbd6140fd2585cd280710f78d39fa3fa62300832df8ed1a0c48
5
5
  SHA512:
6
- metadata.gz: 6ac8b1b1047abac34294905e3e8eee15584d7e3cbe0d6afd372bcce09426fa2ee1eedf86c0912ba214bc90b262db53b6e7b7fda9092b9456a17756630e0f0bb1
7
- data.tar.gz: 1e630b065ace404d685cfaf9bed8277c759f68e14c4ade89e024120860b215043e01170643a30ec5ea879109a74375c6470c76cfb1bf47da5a54ae29f2347eab
6
+ metadata.gz: 8c15cd369a3e020c4a1dc928cf2fd68ce154f1d5837cd0952305ec559aeeacabceeed516f5168bcbc4a55fe286af0afbfadcbfa78391854dcd00dc46e063bd05
7
+ data.tar.gz: fff07f460d21d7a768c86855ffb12c46f03da073605dbc3c6563b9c8c5c40d1624f124737ba0ee26ba0fd5c0a45da325879bf40bc097e2b5d5cea0cc3b55dfd5
data/.gitignore CHANGED
@@ -18,3 +18,5 @@ tmp
18
18
 
19
19
  .DS_Store
20
20
  /vendor/
21
+
22
+ .byebug_history
@@ -3,7 +3,8 @@ require:
3
3
  - rubocop-rspec
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.3
6
+ TargetRubyVersion: 2.4
7
+ NewCops: enable
7
8
  Exclude:
8
9
  - 'spec/coveralls/fixtures/**/*'
9
10
  - 'vendor/bundle/**/*'
@@ -12,8 +13,11 @@ Layout/HashAlignment:
12
13
  EnforcedColonStyle: table
13
14
  EnforcedHashRocketStyle: table
14
15
 
16
+ Layout/LineLength:
17
+ Enabled: false
18
+
15
19
  Metrics/AbcSize:
16
- Max: 39.29
20
+ Max: 44.11
17
21
 
18
22
  Metrics/CyclomaticComplexity:
19
23
  Max: 19
@@ -25,9 +29,6 @@ Metrics/BlockLength:
25
29
  Exclude:
26
30
  - 'spec/**/*'
27
31
 
28
- Metrics/LineLength:
29
- Enabled: false
30
-
31
32
  Metrics/MethodLength:
32
33
  Enabled: false
33
34
 
@@ -42,6 +43,9 @@ RSpec/ExampleLength:
42
43
  RSpec/MultipleExpectations:
43
44
  Enabled: false
44
45
 
46
+ RSpec/MultipleMemoizedHelpers:
47
+ Enabled: false
48
+
45
49
  RSpec/NestedGroups:
46
50
  Max: 4
47
51
 
@@ -1,11 +1,9 @@
1
+ os: linux
2
+ dist: bionic
1
3
  language: ruby
2
4
 
3
5
  cache: bundler
4
6
 
5
- before_install:
6
- - gem update --system
7
- - gem install bundler
8
-
9
7
  env:
10
8
  global:
11
9
  # --dev improves JRuby startup time
@@ -14,15 +12,15 @@ env:
14
12
  - JRUBY_OPTS="--dev --debug"
15
13
 
16
14
  rvm:
17
- - 2.3.8
18
- - 2.4.9
19
- - 2.5.7
20
- - 2.6.5
15
+ - 2.4.10
16
+ - 2.5.8
17
+ - 2.6.6
18
+ - 2.7.1
21
19
  - ruby-head
22
- - jruby-9.2.9.0
20
+ - jruby-9.2.13.0
23
21
 
24
- matrix:
22
+ jobs:
25
23
  allow_failures:
26
24
  - rvm: ruby-head
27
- - rvm: jruby-9.2.9.0
25
+ - rvm: jruby-9.2.13.0
28
26
  fast_finish: true
@@ -1,5 +1,30 @@
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
+
8
+ ## 0.16.0 / 2020-04-30
9
+
10
+ * [FEATURE] Remove dependency on json gem [#4](https://github.com/tagliala/coveralls-ruby-reborn/pull/4)
11
+ * [ENHANCEMENT] Update dependencies
12
+
13
+ ## 0.15.1 / 2020-04-17
14
+
15
+ * [ENHANCEMENT] Test against latest Ruby versions
16
+ * [ENHANCEMENT] Update dependencies
17
+
18
+ ## 0.15.0 / 2020-02-01
19
+
20
+ * [FEATURE] Add SimpleCov 0.18.1 compatibility
21
+ * [FEATURE] Drop Ruby 2.3 Support
22
+ * [ENHANCEMENT] Update dependencies
23
+
24
+ ## 0.14.0 / 2019-12-15
25
+
26
+ * [ENHANCEMENT] Allow Thor 1.0
27
+
3
28
  ## 0.13.4 / 2019-12-05
4
29
 
5
30
  * [ENHANCEMENT] Test against latest JRuby version
data/Gemfile CHANGED
@@ -6,22 +6,22 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  platforms :jruby do
9
- gem 'jruby-openssl', '~> 0.10.1'
9
+ gem 'jruby-openssl', '~> 0.10.2'
10
10
  end
11
11
 
12
12
  group :development do
13
13
  gem 'rake', '~> 13.0'
14
14
  gem 'rspec', '~> 3.9'
15
- gem 'rubocop', '~> 0.77.0'
16
- gem 'rubocop-performance', '~> 1.5'
17
- gem 'rubocop-rspec', '~> 1.37'
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.0'
20
- gem 'webmock', '~> 3.7'
19
+ gem 'vcr', '~> 6.0'
20
+ gem 'webmock', '~> 3.8'
21
21
  end
22
22
 
23
23
  group :development, :test do
24
- gem 'byebug', '~> 11.0', platforms: %i[mri mingw x64_mingw]
25
- gem 'pry', '~> 0.12.2'
26
- gem 'pry-byebug', '~> 3.7', platforms: %i[mri mingw x64_mingw]
24
+ gem 'byebug', '~> 11.1', platforms: %i[mri mingw x64_mingw]
25
+ gem 'pry', '~> 0.13.1'
26
+ gem 'pry-byebug', '~> 3.9', platforms: %i[mri mingw x64_mingw]
27
27
  end
data/LICENSE CHANGED
@@ -2,6 +2,8 @@ MIT License
2
2
 
3
3
  Copyright (c) 2018 Wil Gieseler
4
4
 
5
+ Copyright (c) 2020 Geremia Taglialatela
6
+
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
7
9
  in the Software without restriction, including without limitation the rights
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
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)
2
2
 
3
- ### [Read the docs →](https://coveralls.zendesk.com/hc/en-us/articles/201769485-Ruby-Rails)
3
+ ### [Read the docs →](https://docs.coveralls.io/ruby-on-rails)
4
4
 
5
5
  An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/coveralls-ruby)
6
6
 
7
7
  Add to your `Gemfile`:
8
8
 
9
9
  ```rb
10
- gem 'coveralls_reborn', '~> 0.13.2', require: false
10
+ gem 'coveralls_reborn', '~> 0.16.0', require: false
11
11
  ```
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'
@@ -18,15 +18,16 @@ Gem::Specification.new do |gem|
18
18
  gem.name = 'coveralls_reborn'
19
19
  gem.require_paths = ['lib']
20
20
  gem.version = Coveralls::VERSION
21
- gem.metadata = {
22
- 'source_code_uri' => 'https://github.com/tagliala/coveralls-ruby-reborn'
23
- }
24
- gem.required_ruby_version = '>= 2.3'
25
21
 
26
- gem.add_dependency 'json', '~> 2.1'
27
- gem.add_dependency 'simplecov', '~> 0.17.1'
22
+ gem.metadata['bug_tracker_uri'] = 'https://github.com/tagliala/coveralls-ruby-reborn/issues'
23
+ gem.metadata['changelog_uri'] = 'https://github.com/tagliala/coveralls-ruby-reborn/blob/master/CHANGELOG.md'
24
+ gem.metadata['source_code_uri'] = 'https://github.com/tagliala/coveralls-ruby-reborn'
25
+
26
+ gem.required_ruby_version = '>= 2.4'
27
+
28
+ gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.20.0'
28
29
  gem.add_dependency 'term-ansicolor', '~> 1.6'
29
- gem.add_dependency 'thor', '~> 0.20.0'
30
+ gem.add_dependency 'thor', '>= 0.20.3', '< 2.0'
30
31
  gem.add_dependency 'tins', '~> 1.16'
31
32
 
32
33
  gem.add_development_dependency 'bundler', '>= 1.16', '< 3'
@@ -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
@@ -44,7 +44,7 @@ module Coveralls
44
44
  properties[:name] = short_filename(file.filename)
45
45
 
46
46
  # Get the coverage
47
- properties[:coverage] = file.coverage.dup
47
+ properties[:coverage] = file.coverage_data['lines']
48
48
 
49
49
  # Skip nocov lines
50
50
  file.lines.each_with_index do |line, i|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.13.4'
4
+ VERSION = '0.17.0'
5
5
  end
@@ -74,7 +74,6 @@ describe Coveralls::SimpleCov::Formatter do
74
74
 
75
75
  it 'nils the skipped lines' do
76
76
  source_file = source_files.first
77
- expect(source_file[:coverage]).not_to eq result.files.first.coverage
78
77
  expect(source_file[:coverage]).to eq [nil, 1, 1, 1, nil, 0, 1, 1, nil, nil, nil, nil, nil]
79
78
  end
80
79
  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,45 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls_reborn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
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: 2019-12-05 00:00:00.000000000 Z
13
+ date: 2020-08-26 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: json
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '2.1'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: '2.1'
29
15
  - !ruby/object:Gem::Dependency
30
16
  name: simplecov
31
17
  requirement: !ruby/object:Gem::Requirement
32
18
  requirements:
33
- - - "~>"
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 0.18.1
22
+ - - "<"
34
23
  - !ruby/object:Gem::Version
35
- version: 0.17.1
24
+ version: 0.20.0
36
25
  type: :runtime
37
26
  prerelease: false
38
27
  version_requirements: !ruby/object:Gem::Requirement
39
28
  requirements:
40
- - - "~>"
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 0.18.1
32
+ - - "<"
41
33
  - !ruby/object:Gem::Version
42
- version: 0.17.1
34
+ version: 0.20.0
43
35
  - !ruby/object:Gem::Dependency
44
36
  name: term-ansicolor
45
37
  requirement: !ruby/object:Gem::Requirement
@@ -58,16 +50,22 @@ dependencies:
58
50
  name: thor
59
51
  requirement: !ruby/object:Gem::Requirement
60
52
  requirements:
61
- - - "~>"
53
+ - - ">="
62
54
  - !ruby/object:Gem::Version
63
- version: 0.20.0
55
+ version: 0.20.3
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: '2.0'
64
59
  type: :runtime
65
60
  prerelease: false
66
61
  version_requirements: !ruby/object:Gem::Requirement
67
62
  requirements:
68
- - - "~>"
63
+ - - ">="
69
64
  - !ruby/object:Gem::Version
70
- version: 0.20.0
65
+ version: 0.20.3
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
71
69
  - !ruby/object:Gem::Dependency
72
70
  name: tins
73
71
  requirement: !ruby/object:Gem::Requirement
@@ -148,8 +146,10 @@ homepage: https://coveralls.io
148
146
  licenses:
149
147
  - MIT
150
148
  metadata:
149
+ bug_tracker_uri: https://github.com/tagliala/coveralls-ruby-reborn/issues
150
+ changelog_uri: https://github.com/tagliala/coveralls-ruby-reborn/blob/master/CHANGELOG.md
151
151
  source_code_uri: https://github.com/tagliala/coveralls-ruby-reborn
152
- post_install_message:
152
+ post_install_message:
153
153
  rdoc_options: []
154
154
  require_paths:
155
155
  - lib
@@ -157,15 +157,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
159
159
  - !ruby/object:Gem::Version
160
- version: '2.3'
160
+ version: '2.4'
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - ">="
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.0.6
168
- signing_key:
167
+ rubygems_version: 3.1.3
168
+ signing_key:
169
169
  specification_version: 4
170
170
  summary: A Ruby implementation of the Coveralls API.
171
171
  test_files: