coveralls_reborn 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75d7439f90a8c923d70f4f690b09a7501c630c6eba8edbbba76ab5ab5cec90c3
4
- data.tar.gz: 6e2fc6ef8412e028c48e7c31bf471c5b2ff14bb85c123aa6f4a77e05db223c52
3
+ metadata.gz: 2224b9be14eb033f754844489d5766a3eb82665d19fd419452e884407299ddfd
4
+ data.tar.gz: b24400478b5a2b006f5b5f10141059b7a31cab8d1980563b7ea57b002e527076
5
5
  SHA512:
6
- metadata.gz: ae858874883460776e458893e501a74498696ad3a58a8f1de9e059c484171bb2f4a97ec9a92810a66770ae3b6e254f1874738f5f76ec8a71ca045df4b14469a6
7
- data.tar.gz: 189e3a525cd1c7670216edbc6a468814211c4ebab6320d065fbf520237d895b13a105864ef19f878f0d520e2fc9829b413c06ab2e6200b5f4b80c228f0d1e4d3
6
+ metadata.gz: e5a880d882a2510aefc3cd0f9b12089dafef1bf7b0192f23ea306aab6b38f4fb52c4ef4d4cf5cd391be48ebd83c207b24f5ba2e419d30028e6f9693bb1990bb9
7
+ data.tar.gz: a9392a1858c7930e9f8bfe7df89a0188931f0ce3bd5645b6d50b474db77401bcad9ad6a3f5019a62c82dd78e64cc0d625b1cd3aaa092d8e51b8757c6e4c6995e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.29.0 / 2025-06-15
4
+
5
+ * [ENHANCEMENT] Prefer `require_relative` for internal requires [#51](https://github.com/tagliala/coveralls-ruby-reborn/pull/51)
6
+ * [ENHANCEMENT] Remove `truthy` dependency as obsolete and unsupported [#50](https://github.com/tagliala/coveralls-ruby-reborn/pull/50)
7
+ * [ENHANCEMENT] Test against Ruby 3.4
8
+
3
9
  ## 0.28.0 / 2023-07-22
4
10
 
5
11
  * [ENHANCEMENT] Reduce gem size
@@ -94,7 +100,7 @@
94
100
  ## 0.13.3 / 2019-10-13
95
101
 
96
102
  * [FIX] Do not rescue from LoadError with required gems
97
- * [FIX] Fix multipart content-type delimeter [lemurheavy/coveralls-ruby#154](https://github.com/lemurheavy/coveralls-ruby/pull/154)
103
+ * [FIX] Fix multipart content-type delimiter [lemurheavy/coveralls-ruby#154](https://github.com/lemurheavy/coveralls-ruby/pull/154)
98
104
  * [ENHANCEMENT] Test against latest JRuby version
99
105
  * [ENHANCEMENT] Update dependencies
100
106
 
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # [Coveralls Reborn](https://coveralls.io) for Ruby [![Coverage Status](https://coveralls.io/repos/github/tagliala/coveralls-ruby-reborn/badge.svg?branch=main)](https://coveralls.io/github/tagliala/coveralls-ruby-reborn?branch=main) ![Build Status](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/ruby.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/coveralls_reborn.svg)](https://badge.fury.io/rb/coveralls_reborn)
1
+ # [Coveralls Reborn](https://coveralls.io) for Ruby
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/coveralls_reborn.svg)](https://badge.fury.io/rb/coveralls_reborn)
4
+ [![Build Status](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/ruby.yml/badge.svg)](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/ruby.yml)
5
+ [![Rubocop](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/rubocop.yml/badge.svg)](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/rubocop.yml)
6
+ [![Coverage Status](https://coveralls.io/repos/github/tagliala/coveralls-ruby-reborn/badge.svg?branch=main)](https://coveralls.io/github/tagliala/coveralls-ruby-reborn?branch=main)
2
7
 
3
8
  [Coveralls.io](https://coveralls.io) was designed with Ruby projects in mind, so we've made it as
4
9
  easy as possible to get started using [Coveralls](https://coveralls.io) with Ruby and Rails project.
@@ -16,8 +21,6 @@ An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/
16
21
  [coveralls-ruby-reborn](https://github.com/tagliala/coveralls-ruby-reborn) gem. This includes
17
22
  all your favorites, like [RSpec](https://rspec.info/), Cucumber, and Test::Unit.
18
23
 
19
- *Please note that [SimpleCov](https://github.com/colszowka/simplecov) only supports Ruby 1.9 and later.*
20
-
21
24
  ### INSTALLING THE GEM
22
25
 
23
26
  You shouldn't need more than a quick change to get your project on Coveralls. Just include
@@ -30,9 +33,6 @@ Gemfile like so:
30
33
  gem 'coveralls_reborn', require: false
31
34
  ```
32
35
 
33
- While [SimpleCov](https://github.com/colszowka/simplecov) only supports Ruby 1.9+, using the
34
- Coveralls gem will not fail builds on earlier Rubies or other flavors of Ruby.
35
-
36
36
  ### CONFIGURATION
37
37
 
38
38
  [coveralls-ruby-reborn](https://github.com/tagliala/coveralls-ruby-reborn) uses an optional
@@ -70,14 +70,14 @@ For a Ruby app:
70
70
  # ./test/test_helper.rb
71
71
  # ..etc..
72
72
 
73
- require 'coveralls_reborn'
73
+ require 'coveralls'
74
74
  Coveralls.wear!
75
75
  ```
76
76
 
77
77
  For a Rails app:
78
78
 
79
79
  ```ruby
80
- require 'coveralls_reborn'
80
+ require 'coveralls'
81
81
  Coveralls.wear!('rails')
82
82
  ```
83
83
 
@@ -99,7 +99,7 @@ directly:
99
99
 
100
100
  ```ruby
101
101
  require 'simplecov'
102
- require 'coveralls_reborn'
102
+ require 'coveralls'
103
103
 
104
104
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
105
105
  SimpleCov.start do
@@ -111,7 +111,7 @@ Or alongside another formatter, like so:
111
111
 
112
112
  ```ruby
113
113
  require 'simplecov'
114
- require 'coveralls_reborn'
114
+ require 'coveralls'
115
115
 
116
116
  SimpleCov.formatters = [
117
117
  SimpleCov::Formatter::HTMLFormatter,
@@ -130,7 +130,7 @@ formatter, simply omit the Coveralls formatter, then add the rake task `coverall
130
130
  `Rakefile` as a dependency to your testing task, like so:
131
131
 
132
132
  ```ruby
133
- require 'coveralls_reborn/rake/task'
133
+ require 'coveralls/rake/task'
134
134
  Coveralls::RakeTask.new
135
135
  task :test_with_coveralls => [:spec, :features, 'coveralls:push']
136
136
  ```
data/lib/coveralls/api.rb CHANGED
@@ -41,9 +41,9 @@ module Coveralls
41
41
 
42
42
  case response
43
43
  when Net::HTTPServiceUnavailable
44
- Coveralls::Output.puts('[Coveralls] API timeout occured, but data should still be processed', color: 'red')
44
+ Coveralls::Output.puts('[Coveralls] API timeout occurred, but data should still be processed', color: 'red')
45
45
  when Net::HTTPInternalServerError
46
- Coveralls::Output.puts("[Coveralls] API internal error occured, we're on it!", color: 'red')
46
+ Coveralls::Output.puts("[Coveralls] API internal error occurred, we're on it!", color: 'red')
47
47
  end
48
48
  end
49
49
 
@@ -6,7 +6,7 @@ module Coveralls
6
6
  class CommandLine < Thor
7
7
  desc 'push', 'Runs your test suite and pushes the coverage results to Coveralls.'
8
8
  def push
9
- return unless ensure_can_run_locally!
9
+ return unless can_run_locally?
10
10
 
11
11
  ENV['COVERALLS_RUN_LOCALLY'] = 'true'
12
12
  cmds = ['bundle exec rake']
@@ -68,7 +68,7 @@ module Coveralls
68
68
  end
69
69
  end
70
70
 
71
- def ensure_can_run_locally!
71
+ def can_run_locally?
72
72
  if config[:repo_token].nil?
73
73
  Coveralls::Output.puts 'Coveralls cannot run locally because no repo_secret_token is set in .coveralls.yml', color: 'red'
74
74
  Coveralls::Output.puts 'Please try again when you get your act together.', color: 'red'
@@ -5,7 +5,7 @@ require 'pathname'
5
5
  module Coveralls
6
6
  module SimpleCov
7
7
  class Formatter
8
- def display_result(result)
8
+ def display_result(result) # rubocop:disable Naming/PredicateMethod
9
9
  # Log which files would be submitted.
10
10
  if result.files.empty?
11
11
  Coveralls::Output.puts '[Coveralls] There are no covered files.', color: 'yellow'
@@ -91,7 +91,7 @@ module Coveralls
91
91
  display_error e
92
92
  end
93
93
 
94
- def display_error(error)
94
+ def display_error(error) # rubocop:disable Naming/PredicateMethod
95
95
  Coveralls::Output.puts 'Coveralls encountered an exception:', color: 'red'
96
96
  Coveralls::Output.puts error.class.to_s, color: 'red'
97
97
  Coveralls::Output.puts error.message, color: 'red'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.28.0'
4
+ VERSION = '0.29.0'
5
5
  end
data/lib/coveralls.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'coveralls/version'
4
- require 'coveralls/configuration'
5
- require 'coveralls/api'
6
- require 'coveralls/output'
7
- require 'coveralls/simplecov'
3
+ require_relative 'coveralls/version'
4
+ require_relative 'coveralls/configuration'
5
+ require_relative 'coveralls/api'
6
+ require_relative 'coveralls/output'
7
+ require_relative 'coveralls/simplecov'
8
8
 
9
9
  module Coveralls
10
10
  class << self
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls_reborn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
8
8
  - Wil Gieseler
9
9
  - Geremia Taglialatela
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2023-07-22 00:00:00.000000000 Z
12
+ date: 1980-01-02 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: simplecov
@@ -98,7 +97,6 @@ metadata:
98
97
  bug_tracker_uri: https://github.com/tagliala/coveralls-ruby-reborn/issues
99
98
  changelog_uri: https://github.com/tagliala/coveralls-ruby-reborn/blob/main/CHANGELOG.md
100
99
  source_code_uri: https://github.com/tagliala/coveralls-ruby-reborn
101
- post_install_message:
102
100
  rdoc_options: []
103
101
  require_paths:
104
102
  - lib
@@ -113,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  - !ruby/object:Gem::Version
114
112
  version: '0'
115
113
  requirements: []
116
- rubygems_version: 3.4.1
117
- signing_key:
114
+ rubygems_version: 3.6.9
118
115
  specification_version: 4
119
116
  summary: A Ruby implementation of the Coveralls API.
120
117
  test_files: []