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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f00e319a2e891af3bd8577ba9dd1ea88117b686562ba6332134aafffffd65b2
4
- data.tar.gz: cca9cae70a90f4342594db68d91b7be0080ccbf534f00f9e6276ef99980f28ed
3
+ metadata.gz: e66521d64ebaa51f54a9315ca83e619681c931bea2f8abf7c278014d96fb3aa7
4
+ data.tar.gz: 87f24915f01916f256d3b16797ab73cfb703aea5dcbbdaaa195172868fdf4d91
5
5
  SHA512:
6
- metadata.gz: efd993c1e74eaeb537eb6d081f632706f17fcfe86e1c0ed8cc45efa70862eafa5acac96732929a9a7aabdfa28c2fca104d980210696aa3aef4b2f250baedb32c
7
- data.tar.gz: d1ce6ca63c6aee73c63830e80a3a8dc942eb8500429e80fcc453a35aa35ca5eba75d8a6798bbf75b794398781b5581dec18b2040c490e5bf1779a4456fde527c
6
+ metadata.gz: 968918385b2a4f1fdbc5f1285d4e8846c91cb0c936daa6eab7c8a0cc99156c1b1c9032e4b32b0fd417986558e124e3b9b3e92a2f16d0ef11a540d8b716c6e832
7
+ data.tar.gz: 378d8e9ee67dbb76016136fef7d09331252a55e7e2edce5d26c308a089014573c768f35a6bd230aea109db82e858f12bbc9e9833cfa3822ede93cc823384b97b
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  os: [ubuntu-latest]
19
- ruby-version: ['2.5']
19
+ ruby-version: ['3.1']
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v2
@@ -18,7 +18,7 @@ jobs:
18
18
  include:
19
19
  - ruby-version: 'head'
20
20
  experimental: true
21
- - ruby-version: 'jruby-9.2'
21
+ - ruby-version: 'jruby-9.3'
22
22
  experimental: true
23
23
 
24
24
  continue-on-error: ${{ matrix.experimental }}
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.11.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', github: 'vcr/vcr', ref: '9bb8d2c6f81a6720082a6db86ee11f4b82685d63' # TODO: revert to stable when Ruby 3.1 will be supported
19
+ gem 'vcr', '~> 6.0'
20
20
  gem 'webmock', '~> 3.14'
data/README.md CHANGED
@@ -7,7 +7,7 @@ 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.24.0', require: false
10
+ gem 'coveralls_reborn', '~> 0.25.0', require: false
11
11
  ```
12
12
 
13
13
  ### GitHub Actions
@@ -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[:service_branch] = ENV['SEMAPHORE_GIT_BRANCH']
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.24.0'
4
+ VERSION = '0.25.0'
5
5
  end
@@ -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(:semaphore_git_branch) { 'a-branch' }
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('SEMAPHORE_GIT_BRANCH').and_return(semaphore_git_branch)
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: 'semaphore',
274
- service_number: semaphore_workflow_id,
275
- service_branch: semaphore_git_branch
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.24.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-03-11 00:00:00.000000000 Z
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.2.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: []