coveralls_reborn 0.14.0 → 0.18.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: 5a912cc8c519430f94439a6d67ccb6f33562498461fa3c8d9b1e69a6c5071297
4
- data.tar.gz: 9bfb9b8ee8098c4e3ffca016571f2f3a78acdffd980fac8fa00298a55af14a18
3
+ metadata.gz: ba2dd61c065e66138bf0724e4906fd08f6cef72d1294981eef24dc72c0d60539
4
+ data.tar.gz: 63e261e59a5c5682e8e17a8cdab055af5a722f01a07f76854392d2c4388150a7
5
5
  SHA512:
6
- metadata.gz: d0b27cd02f62e5d2eb316ebe314c957fe1afd673f8344de29a74d3845a8120367de0cd15e3d8380a539eeccd5a62936b6ee1c86387c9b3d8f7d7f45bab6c8ca1
7
- data.tar.gz: b9e8211b09915fd69eabf13e0b02d21c07fb17e4d19d9831f9dacb3a4500e737350b092758f4738a8de6b4f095cb2e23f40e06f971d5e70b3c438be50829f83d
6
+ metadata.gz: f843ef17092cf05bbb7acdfd77c2a5bccfbf817bb22f18488ce4d008a509208bd6585787344f7b690225b79635af226131c176d6df09b1b8ef809aa8bc017ed3
7
+ data.tar.gz: df01371281e6ef83a276eafb9849d00d15b7d5d2931865cdf93cbd6256d717772665960198c47228a4eb48c8b2323288584a3d20d8b4877e93706592ee96057e
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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 / 2020-09-07
4
+
5
+ * [ENHANCEMENT] Refactor HTTP client [#10](https://github.com/tagliala/coveralls-ruby-reborn/pull/10)
6
+ * [ENHANCEMENT] Update dependencies
7
+
8
+ ## 0.17.0 / 2020-08-26
9
+
10
+ * [FEATURE] Add SimpleCov 0.19.0 compatibility
11
+ * [ENHANCEMENT] Update dependencies
12
+
13
+ ## 0.16.0 / 2020-04-30
14
+
15
+ * [FEATURE] Remove dependency on json gem [#4](https://github.com/tagliala/coveralls-ruby-reborn/pull/4)
16
+ * [ENHANCEMENT] Update dependencies
17
+
18
+ ## 0.15.1 / 2020-04-17
19
+
20
+ * [ENHANCEMENT] Test against latest Ruby versions
21
+ * [ENHANCEMENT] Update dependencies
22
+
23
+ ## 0.15.0 / 2020-02-01
24
+
25
+ * [FEATURE] Add SimpleCov 0.18.1 compatibility
26
+ * [FEATURE] Drop Ruby 2.3 Support
27
+ * [ENHANCEMENT] Update dependencies
28
+
3
29
  ## 0.14.0 / 2019-12-15
4
30
 
5
31
  * [ENHANCEMENT] Allow Thor 1.0
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.90.0'
16
+ gem 'rubocop-performance', '~> 1.8'
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.18.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,13 +18,14 @@ 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
30
  gem.add_dependency 'thor', '>= 0.20.3', '< 2.0'
30
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
@@ -80,15 +80,7 @@ module Coveralls
80
80
 
81
81
  def build_client(uri)
82
82
  client = Net::HTTP.new(uri.host, uri.port)
83
- client.use_ssl = true if uri.port == 443
84
- client.verify_mode = OpenSSL::SSL::VERIFY_NONE
85
-
86
- unless client.respond_to?(:ssl_version=)
87
- Net::HTTP.ssl_context_accessor('ssl_version')
88
- end
89
-
90
- client.ssl_version = 'TLSv1'
91
-
83
+ client.use_ssl = uri.port == 443
92
84
  client
93
85
  end
94
86
 
@@ -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.14.0'
4
+ VERSION = '0.18.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.14.0
4
+ version: 0.18.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-15 00:00:00.000000000 Z
13
+ date: 2020-09-07 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
@@ -154,8 +146,10 @@ homepage: https://coveralls.io
154
146
  licenses:
155
147
  - MIT
156
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
157
151
  source_code_uri: https://github.com/tagliala/coveralls-ruby-reborn
158
- post_install_message:
152
+ post_install_message:
159
153
  rdoc_options: []
160
154
  require_paths:
161
155
  - lib
@@ -163,15 +157,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
157
  requirements:
164
158
  - - ">="
165
159
  - !ruby/object:Gem::Version
166
- version: '2.3'
160
+ version: '2.4'
167
161
  required_rubygems_version: !ruby/object:Gem::Requirement
168
162
  requirements:
169
163
  - - ">="
170
164
  - !ruby/object:Gem::Version
171
165
  version: '0'
172
166
  requirements: []
173
- rubygems_version: 3.0.6
174
- signing_key:
167
+ rubygems_version: 3.1.3
168
+ signing_key:
175
169
  specification_version: 4
176
170
  summary: A Ruby implementation of the Coveralls API.
177
171
  test_files: