coveralls_reborn 0.18.0 → 0.19.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: ba2dd61c065e66138bf0724e4906fd08f6cef72d1294981eef24dc72c0d60539
4
- data.tar.gz: 63e261e59a5c5682e8e17a8cdab055af5a722f01a07f76854392d2c4388150a7
3
+ metadata.gz: 4bc12f5b88635ba1f1ccef5bbb0bf35582968a2596ec8560f68dd331b8484dbb
4
+ data.tar.gz: 150ab6de22220b3b5621f96db48338999fcc8f03d9656d08764f51a783e5672f
5
5
  SHA512:
6
- metadata.gz: f843ef17092cf05bbb7acdfd77c2a5bccfbf817bb22f18488ce4d008a509208bd6585787344f7b690225b79635af226131c176d6df09b1b8ef809aa8bc017ed3
7
- data.tar.gz: df01371281e6ef83a276eafb9849d00d15b7d5d2931865cdf93cbd6256d717772665960198c47228a4eb48c8b2323288584a3d20d8b4877e93706592ee96057e
6
+ metadata.gz: d9e6dd6bbdca328fd172be5af7fddc549e3c9ecd3cb1d95f39bde3514fda2878cd56c37c41449f91e01e2a2499b6ecee6999c4519fcb80e6fc197215c9d2604e
7
+ data.tar.gz: 98b81b28d1dcc376c24f19acaa7e1f41194df8e63d12d92277a8a048629930fd3c406010e431039b924f4a589c38a83625ce9c70224976e56a97614b2a37ff6e
@@ -1,9 +1,9 @@
1
1
  require:
2
2
  - rubocop-performance
3
+ - rubocop-rake
3
4
  - rubocop-rspec
4
5
 
5
6
  AllCops:
6
- TargetRubyVersion: 2.4
7
7
  NewCops: enable
8
8
  Exclude:
9
9
  - 'spec/coveralls/fixtures/**/*'
@@ -15,7 +15,7 @@ rvm:
15
15
  - 2.4.10
16
16
  - 2.5.8
17
17
  - 2.6.6
18
- - 2.7.1
18
+ - 2.7.2
19
19
  - ruby-head
20
20
  - jruby-9.2.13.0
21
21
 
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.0 / 2020-12-02
4
+
5
+ * [FEATURE] Add SimpleCov 0.20.0 compatibility
6
+
3
7
  ## 0.18.0 / 2020-09-07
4
8
 
5
9
  * [ENHANCEMENT] Refactor HTTP client [#10](https://github.com/tagliala/coveralls-ruby-reborn/pull/10)
data/Gemfile CHANGED
@@ -11,13 +11,14 @@ end
11
11
 
12
12
  group :development do
13
13
  gem 'rake', '~> 13.0'
14
- gem 'rspec', '~> 3.9'
15
- gem 'rubocop', '~> 0.90.0'
16
- gem 'rubocop-performance', '~> 1.8'
17
- gem 'rubocop-rspec', '~> 1.43'
14
+ gem 'rspec', '~> 3.10'
15
+ gem 'rubocop', '~> 1.5'
16
+ gem 'rubocop-performance', '~> 1.9'
17
+ gem 'rubocop-rake', '~> 0.5.1'
18
+ gem 'rubocop-rspec', '~> 2.0'
18
19
  gem 'truthy', '~> 1.0'
19
20
  gem 'vcr', '~> 6.0'
20
- gem 'webmock', '~> 3.8'
21
+ gem 'webmock', '~> 3.10'
21
22
  end
22
23
 
23
24
  group :development, :test do
data/README.md CHANGED
@@ -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.18.0', require: false
10
+ gem 'coveralls_reborn', '~> 0.19.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.20.0'
28
+ gem.add_dependency 'simplecov', '>= 0.18.1', '< 0.21.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'
@@ -66,7 +66,7 @@ module Coveralls
66
66
 
67
67
  if simplecov_setting
68
68
  Coveralls::Output.puts("[Coveralls] Using SimpleCov's '#{simplecov_setting}' settings.", color: 'green')
69
- if block_given?
69
+ if block
70
70
  ::SimpleCov.start(simplecov_setting) { instance_eval(&block) }
71
71
  else
72
72
  ::SimpleCov.start(simplecov_setting)
@@ -13,10 +13,10 @@ module Coveralls
13
13
 
14
14
  if File.exist?('.travis.yml')
15
15
  cmds = begin
16
- YAML.load_file('.travis.yml')['script'] || cmds
17
- rescue StandardError
18
- cmds
19
- end
16
+ YAML.load_file('.travis.yml')['script'] || cmds
17
+ rescue StandardError
18
+ cmds
19
+ end
20
20
  end
21
21
 
22
22
  cmds.each { |cmd| system cmd }
@@ -180,7 +180,7 @@ module Coveralls
180
180
  remotes = nil
181
181
  begin
182
182
  remotes = `git remote -v`.split(/\n/).map do |remote|
183
- splits = remote.split(' ').compact
183
+ splits = remote.split.compact
184
184
  { name: splits[0], url: splits[1] }
185
185
  end.uniq
186
186
  rescue StandardError => e
@@ -199,14 +199,14 @@ module Coveralls
199
199
  end
200
200
 
201
201
  def relevant_env
202
- hash = {
202
+ base_env = {
203
203
  pwd: pwd,
204
204
  rails_root: rails_root,
205
205
  simplecov_root: simplecov_root,
206
206
  gem_version: VERSION
207
207
  }
208
208
 
209
- hash.merge! begin
209
+ service_env =
210
210
  if ENV['TRAVIS']
211
211
  travis_env_hash
212
212
  elsif ENV['CIRCLECI']
@@ -218,9 +218,8 @@ module Coveralls
218
218
  else
219
219
  {}
220
220
  end
221
- end
222
221
 
223
- hash
222
+ base_env.merge! service_env
224
223
  end
225
224
 
226
225
  private
@@ -7,10 +7,10 @@ module Coveralls
7
7
  class Formatter
8
8
  def display_result(result)
9
9
  # Log which files would be submitted.
10
- if !result.files.empty?
11
- Coveralls::Output.puts '[Coveralls] Some handy coverage stats:'
12
- else
10
+ if result.files.empty?
13
11
  Coveralls::Output.puts '[Coveralls] There are no covered files.', color: 'yellow'
12
+ else
13
+ Coveralls::Output.puts '[Coveralls] Some handy coverage stats:'
14
14
  end
15
15
 
16
16
  result.files.each do |f|
@@ -95,10 +95,10 @@ module Coveralls
95
95
 
96
96
  def output_message(result)
97
97
  "Coverage is at #{begin
98
- result.covered_percent.round(2)
99
- rescue StandardError
100
- result.covered_percent.round
101
- end}%.\nCoverage report sent to Coveralls."
98
+ result.covered_percent.round(2)
99
+ rescue StandardError
100
+ result.covered_percent.round
101
+ end}%.\nCoverage report sent to Coveralls."
102
102
  end
103
103
 
104
104
  def short_filename(filename)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.18.0'
4
+ VERSION = '0.19.0'
5
5
  end
@@ -91,12 +91,12 @@ describe Coveralls do
91
91
 
92
92
  describe '#setup!' do
93
93
  it 'sets SimpleCov adapter' do
94
- # rubocop:disable RSpec/LeakyConstantDeclaration
94
+ # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
95
95
  SimpleCovTmp = SimpleCov
96
96
  Object.send :remove_const, :SimpleCov
97
97
  silence { described_class.setup! }
98
98
  SimpleCov = SimpleCovTmp
99
- # rubocop:enable RSpec/LeakyConstantDeclaration
99
+ # rubocop:enable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
100
100
  end
101
101
  end
102
102
  end
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.18.0
4
+ version: 0.19.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-09-07 00:00:00.000000000 Z
13
+ date: 2020-12-02 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.20.0
24
+ version: 0.21.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.20.0
34
+ version: 0.21.0
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: term-ansicolor
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.1.3
167
+ rubygems_version: 3.1.4
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A Ruby implementation of the Coveralls API.