coveralls_reborn 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/ruby.yml +1 -1
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -2
- data/README.md +1 -1
- data/coveralls-ruby.gemspec +0 -1
- data/lib/coveralls/configuration.rb +4 -1
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/configuration_spec.rb +14 -5
- metadata +4 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66521d64ebaa51f54a9315ca83e619681c931bea2f8abf7c278014d96fb3aa7
|
4
|
+
data.tar.gz: 87f24915f01916f256d3b16797ab73cfb703aea5dcbbdaaa195172868fdf4d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 968918385b2a4f1fdbc5f1285d4e8846c91cb0c936daa6eab7c8a0cc99156c1b1c9032e4b32b0fd417986558e124e3b9b3e92a2f16d0ef11a540d8b716c6e832
|
7
|
+
data.tar.gz: 378d8e9ee67dbb76016136fef7d09331252a55e7e2edce5d26c308a089014573c768f35a6bd230aea109db82e858f12bbc9e9833cfa3822ede93cc823384b97b
|
data/.github/workflows/ruby.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -5,6 +5,7 @@ require:
|
|
5
5
|
|
6
6
|
AllCops:
|
7
7
|
NewCops: enable
|
8
|
+
TargetRubyVersion: 2.5
|
8
9
|
Exclude:
|
9
10
|
- 'spec/coveralls/fixtures/**/*'
|
10
11
|
- 'vendor/bundle/**/*'
|
@@ -52,5 +53,8 @@ RSpec/NestedGroups:
|
|
52
53
|
Style/Documentation:
|
53
54
|
Enabled: false
|
54
55
|
|
56
|
+
Style/FetchEnvVar:
|
57
|
+
Enabled: false
|
58
|
+
|
55
59
|
Style/IfUnlessModifier:
|
56
60
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.25.0 / 2022-08-05
|
4
|
+
|
5
|
+
* [ENHANCEMENT] Bump `jruby-openssl` requirement to `0.14.0` [#39](https://github.com/tagliala/coveralls-ruby-reborn/pull/39)
|
6
|
+
* [ENHANCEMENT] Improve Semaphore CI support [#37](https://github.com/tagliala/coveralls-ruby-reborn/pull/37) [#38](https://github.com/tagliala/coveralls-ruby-reborn/pull/38)
|
7
|
+
* [ENHANCEMENT] Test against JRuby 9.3 [#36](https://github.com/tagliala/coveralls-ruby-reborn/pull/36)
|
8
|
+
|
3
9
|
## 0.24.0 / 2022-03-11
|
4
10
|
|
5
11
|
* [ENHANCEMENT] Test against Ruby 3.1
|
data/Gemfile
CHANGED
@@ -6,7 +6,7 @@ source 'https://rubygems.org'
|
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
platforms :jruby do
|
9
|
-
gem 'jruby-openssl', '~> 0.
|
9
|
+
gem 'jruby-openssl', '~> 0.14.0'
|
10
10
|
end
|
11
11
|
|
12
12
|
gem 'rake', '~> 13.0'
|
@@ -16,5 +16,5 @@ gem 'rubocop-performance', '~> 1.13'
|
|
16
16
|
gem 'rubocop-rake', '~> 0.6.0'
|
17
17
|
gem 'rubocop-rspec', '~> 2.9'
|
18
18
|
gem 'truthy', '~> 1.0'
|
19
|
-
gem 'vcr', '~> 6.0'
|
19
|
+
gem 'vcr', '~> 6.0'
|
20
20
|
gem 'webmock', '~> 3.14'
|
data/README.md
CHANGED
data/coveralls-ruby.gemspec
CHANGED
@@ -14,7 +14,6 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
17
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
17
|
gem.name = 'coveralls_reborn'
|
19
18
|
gem.require_paths = ['lib']
|
20
19
|
gem.version = Coveralls::VERSION
|
@@ -78,7 +78,10 @@ module Coveralls
|
|
78
78
|
def define_service_params_for_semaphore(config)
|
79
79
|
config[:service_name] = 'semaphore'
|
80
80
|
config[:service_number] = ENV['SEMAPHORE_WORKFLOW_ID']
|
81
|
-
config[:
|
81
|
+
config[:service_job_id] = ENV['SEMAPHORE_JOB_ID']
|
82
|
+
config[:service_build_url] = "#{ENV['SEMAPHORE_ORGANIZATION_URL']}/jobs/#{ENV['SEMAPHORE_JOB_ID']}"
|
83
|
+
config[:service_branch] = ENV['SEMAPHORE_GIT_WORKING_BRANCH']
|
84
|
+
config[:service_pull_request] = ENV['SEMAPHORE_GIT_PR_NUMBER']
|
82
85
|
end
|
83
86
|
|
84
87
|
def define_service_params_for_jenkins(config)
|
data/lib/coveralls/version.rb
CHANGED
@@ -259,20 +259,29 @@ describe Coveralls::Configuration do
|
|
259
259
|
|
260
260
|
describe '.define_service_params_for_semaphore' do
|
261
261
|
let(:semaphore_workflow_id) { 1234 }
|
262
|
-
let(:
|
262
|
+
let(:semaphore_git_pr_number) { 10 }
|
263
|
+
let(:semaphore_git_working_branch) { 'pr-branch' }
|
264
|
+
let(:semaphore_job_id) { 5678 }
|
265
|
+
let(:semaphore_organization_url) { 'an-organization' }
|
263
266
|
|
264
267
|
before do
|
265
268
|
allow(ENV).to receive(:[]).with('SEMAPHORE_WORKFLOW_ID').and_return(semaphore_workflow_id)
|
266
|
-
allow(ENV).to receive(:[]).with('
|
269
|
+
allow(ENV).to receive(:[]).with('SEMAPHORE_GIT_PR_NUMBER').and_return(semaphore_git_pr_number)
|
270
|
+
allow(ENV).to receive(:[]).with('SEMAPHORE_GIT_WORKING_BRANCH').and_return(semaphore_git_working_branch)
|
271
|
+
allow(ENV).to receive(:[]).with('SEMAPHORE_JOB_ID').and_return(semaphore_job_id)
|
272
|
+
allow(ENV).to receive(:[]).with('SEMAPHORE_ORGANIZATION_URL').and_return(semaphore_organization_url)
|
267
273
|
end
|
268
274
|
|
269
275
|
it 'sets the expected parameters' do
|
270
276
|
config = {}
|
271
277
|
described_class.define_service_params_for_semaphore(config)
|
272
278
|
expect(config).to include(
|
273
|
-
service_name:
|
274
|
-
service_number:
|
275
|
-
|
279
|
+
service_name: 'semaphore',
|
280
|
+
service_number: semaphore_workflow_id,
|
281
|
+
service_job_id: semaphore_job_id,
|
282
|
+
service_build_url: "#{semaphore_organization_url}/jobs/#{semaphore_job_id}",
|
283
|
+
service_branch: semaphore_git_working_branch,
|
284
|
+
service_pull_request: semaphore_git_pr_number
|
276
285
|
)
|
277
286
|
end
|
278
287
|
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.
|
4
|
+
version: 0.25.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: 2022-
|
13
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: simplecov
|
@@ -181,21 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.0.9
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: A Ruby implementation of the Coveralls API.
|
188
|
-
test_files:
|
189
|
-
- spec/coveralls/configuration_spec.rb
|
190
|
-
- spec/coveralls/coveralls_spec.rb
|
191
|
-
- spec/coveralls/fixtures/app/controllers/sample.rb
|
192
|
-
- spec/coveralls/fixtures/app/models/airplane.rb
|
193
|
-
- spec/coveralls/fixtures/app/models/dog.rb
|
194
|
-
- spec/coveralls/fixtures/app/models/house.rb
|
195
|
-
- spec/coveralls/fixtures/app/models/robot.rb
|
196
|
-
- spec/coveralls/fixtures/app/models/user.rb
|
197
|
-
- spec/coveralls/fixtures/app/vendor/vendored_gem.rb
|
198
|
-
- spec/coveralls/fixtures/sample.rb
|
199
|
-
- spec/coveralls/output_spec.rb
|
200
|
-
- spec/coveralls/simple_cov/formatter_spec.rb
|
201
|
-
- spec/spec_helper.rb
|
188
|
+
test_files: []
|