coveralls_reborn 0.13.2 → 0.13.3
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 +4 -4
- data/.rubocop.yml +3 -4
- data/.travis.yml +5 -5
- data/CHANGELOG.md +7 -0
- data/Gemfile +9 -6
- data/coveralls-ruby.gemspec +1 -1
- data/lib/coveralls/api.rb +1 -1
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/configuration_spec.rb +16 -14
- data/spec/coveralls/coveralls_spec.rb +8 -6
- metadata +5 -6
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7207ef73660774d201e5a57f7a268bda6f1ad889776531fec61c4ac5c63e9e72
|
4
|
+
data.tar.gz: 133b1181cf5c41f1e05d34cb46a9a330944f48e231986470dd76e0f0e329d970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24192e4f87cc0c0631e33997cefd3be8f681cd7e9214956f4cb442178f9731f7a70d7a2f6b4f9860acc2ce6db9162d0eb4a4a2c5d227def8147996c69b3a2b8
|
7
|
+
data.tar.gz: 18e1999db93d9449fe35f25fb1d9e9370966db84a41f2900e78cb90806f6bdaea5373a88324da497b69624c583bc3536938ebc7a66f49cce9a49dd34153e34a1
|
data/.rubocop.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
require:
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
- rubocop-rspec
|
2
4
|
|
3
5
|
AllCops:
|
4
6
|
TargetRubyVersion: 2.3
|
@@ -40,9 +42,6 @@ RSpec/ExampleLength:
|
|
40
42
|
RSpec/MultipleExpectations:
|
41
43
|
Enabled: false
|
42
44
|
|
43
|
-
RSpec/NamedSubject:
|
44
|
-
Enabled: false
|
45
|
-
|
46
45
|
RSpec/NestedGroups:
|
47
46
|
Max: 4
|
48
47
|
|
data/.travis.yml
CHANGED
@@ -15,14 +15,14 @@ env:
|
|
15
15
|
|
16
16
|
rvm:
|
17
17
|
- 2.3.8
|
18
|
-
- 2.4.
|
19
|
-
- 2.5.
|
20
|
-
- 2.6.
|
18
|
+
- 2.4.9
|
19
|
+
- 2.5.7
|
20
|
+
- 2.6.5
|
21
21
|
- ruby-head
|
22
|
-
- jruby-9.2.
|
22
|
+
- jruby-9.2.8.0
|
23
23
|
|
24
24
|
matrix:
|
25
25
|
allow_failures:
|
26
26
|
- rvm: ruby-head
|
27
|
-
- rvm: jruby-9.2.
|
27
|
+
- rvm: jruby-9.2.8.0
|
28
28
|
fast_finish: true
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.13.3 / 2019-10-13
|
4
|
+
|
5
|
+
* [FIX] Do not rescue from LoadError with required gems
|
6
|
+
* [FIX] Fix multipart content-type delimeter [lemurheavy/coveralls-ruby#154](https://github.com/lemurheavy/coveralls-ruby/pull/154)
|
7
|
+
* [ENHANCEMENT] Test against latest JRuby version
|
8
|
+
* [ENHANCEMENT] Update dependencies
|
9
|
+
|
3
10
|
## 0.13.2 / 2019-07-19
|
4
11
|
|
5
12
|
* [FIX] Do not rescue from LoadError with required gems
|
data/Gemfile
CHANGED
@@ -10,15 +10,18 @@ platforms :jruby do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
group :development do
|
13
|
-
gem 'rake', '~>
|
14
|
-
gem 'rspec', '~> 3.
|
15
|
-
gem 'rubocop', '~> 0.
|
16
|
-
gem 'rubocop-
|
13
|
+
gem 'rake', '~> 13.0'
|
14
|
+
gem 'rspec', '~> 3.9'
|
15
|
+
gem 'rubocop', '~> 0.75.0'
|
16
|
+
gem 'rubocop-performance', '~> 1.4'
|
17
|
+
gem 'rubocop-rspec', '~> 1.36'
|
17
18
|
gem 'truthy', '~> 1.0'
|
18
19
|
gem 'vcr', '~> 5.0'
|
19
|
-
gem 'webmock', '~> 3.
|
20
|
+
gem 'webmock', '~> 3.7'
|
20
21
|
end
|
21
22
|
|
22
|
-
group :test do
|
23
|
+
group :development, :test do
|
24
|
+
gem 'byebug', '~> 11.0', platforms: %i[mri mingw x64_mingw]
|
23
25
|
gem 'pry', '~> 0.12.2'
|
26
|
+
gem 'pry-byebug', '~> 3.7', platforms: %i[mri mingw x64_mingw]
|
24
27
|
end
|
data/coveralls-ruby.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.required_ruby_version = '>= 2.3'
|
25
25
|
|
26
26
|
gem.add_dependency 'json', '~> 2.1'
|
27
|
-
gem.add_dependency 'simplecov', '~> 0.17.
|
27
|
+
gem.add_dependency 'simplecov', '~> 0.17.1'
|
28
28
|
gem.add_dependency 'term-ansicolor', '~> 1.6'
|
29
29
|
gem.add_dependency 'thor', '~> 0.20.0'
|
30
30
|
gem.add_dependency 'tins', '~> 1.16'
|
data/lib/coveralls/api.rb
CHANGED
@@ -97,7 +97,7 @@ module Coveralls
|
|
97
97
|
boundary = rand(1_000_000).to_s
|
98
98
|
|
99
99
|
request.body = build_request_body(hash, boundary)
|
100
|
-
request.content_type = "multipart/form-data
|
100
|
+
request.content_type = "multipart/form-data; boundary=#{boundary}"
|
101
101
|
|
102
102
|
request
|
103
103
|
end
|
data/lib/coveralls/version.rb
CHANGED
@@ -80,28 +80,30 @@ describe Coveralls::Configuration do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
context 'with services' do
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
83
|
+
def services
|
84
|
+
{
|
85
|
+
appveyor: 'APPVEYOR',
|
86
|
+
circleci: 'CIRCLECI',
|
87
|
+
gitlab: 'GITLAB_CI',
|
88
|
+
jenkins: 'JENKINS_URL',
|
89
|
+
semaphore: 'SEMAPHORE',
|
90
|
+
tddium: 'TDDIUM',
|
91
|
+
travis: 'TRAVIS',
|
92
|
+
coveralls_local: 'COVERALLS_RUN_LOCALLY',
|
93
|
+
generic: 'CI_NAME'
|
94
|
+
}
|
95
|
+
end
|
94
96
|
|
95
97
|
shared_examples 'a service' do |service_name|
|
96
98
|
let(:service_variable) { options[:service_variable] }
|
97
99
|
|
98
100
|
before do
|
99
|
-
allow(ENV).to receive(:[]).with(
|
101
|
+
allow(ENV).to receive(:[]).with(services[service_name]).and_return('1')
|
100
102
|
described_class.configuration
|
101
103
|
end
|
102
104
|
|
103
105
|
it 'sets service parameters for this service and no other' do
|
104
|
-
|
106
|
+
services.each_key.reject { |service| service == service_name }.each do |service|
|
105
107
|
expect(described_class).not_to have_received(:"define_service_params_for_#{service}")
|
106
108
|
end
|
107
109
|
|
@@ -111,7 +113,7 @@ describe Coveralls::Configuration do
|
|
111
113
|
end
|
112
114
|
|
113
115
|
before do
|
114
|
-
|
116
|
+
services.each_key do |service|
|
115
117
|
allow(described_class).to receive(:"define_service_params_for_#{service}")
|
116
118
|
end
|
117
119
|
|
@@ -41,7 +41,7 @@ describe Coveralls do
|
|
41
41
|
describe '#wear!' do
|
42
42
|
it 'receives block' do
|
43
43
|
silence do
|
44
|
-
|
44
|
+
described_class.wear! do
|
45
45
|
add_filter 's'
|
46
46
|
end
|
47
47
|
end
|
@@ -51,7 +51,7 @@ describe Coveralls do
|
|
51
51
|
|
52
52
|
it 'uses string' do
|
53
53
|
silence do
|
54
|
-
|
54
|
+
described_class.wear! 'test_frameworks'
|
55
55
|
end
|
56
56
|
|
57
57
|
expect(::SimpleCov).to have_received(:start).with 'test_frameworks'
|
@@ -59,7 +59,7 @@ describe Coveralls do
|
|
59
59
|
|
60
60
|
it 'uses default' do
|
61
61
|
silence do
|
62
|
-
|
62
|
+
described_class.wear!
|
63
63
|
end
|
64
64
|
|
65
65
|
expect(::SimpleCov).to have_received(:start).with no_args
|
@@ -70,7 +70,7 @@ describe Coveralls do
|
|
70
70
|
describe '#wear_merged!' do
|
71
71
|
it 'sets formatter to NilFormatter' do
|
72
72
|
silence do
|
73
|
-
|
73
|
+
described_class.wear_merged! 'rails' do
|
74
74
|
add_filter '/spec/'
|
75
75
|
end
|
76
76
|
end
|
@@ -83,7 +83,7 @@ describe Coveralls do
|
|
83
83
|
it 'sends existing test results' do
|
84
84
|
result = false
|
85
85
|
silence do
|
86
|
-
result =
|
86
|
+
result = described_class.push!
|
87
87
|
end
|
88
88
|
expect(result).to be_truthy
|
89
89
|
end
|
@@ -91,10 +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
95
|
SimpleCovTmp = SimpleCov
|
95
96
|
Object.send :remove_const, :SimpleCov
|
96
|
-
silence {
|
97
|
+
silence { described_class.setup! }
|
97
98
|
SimpleCov = SimpleCovTmp
|
99
|
+
# rubocop:enable RSpec/LeakyConstantDeclaration
|
98
100
|
end
|
99
101
|
end
|
100
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.13.
|
4
|
+
version: 0.13.3
|
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: 2019-
|
13
|
+
date: 2019-10-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.17.
|
35
|
+
version: 0.17.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.17.
|
42
|
+
version: 0.17.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: term-ansicolor
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,7 +115,6 @@ files:
|
|
115
115
|
- ".gitignore"
|
116
116
|
- ".rspec"
|
117
117
|
- ".rubocop.yml"
|
118
|
-
- ".ruby-version"
|
119
118
|
- ".travis.yml"
|
120
119
|
- CHANGELOG.md
|
121
120
|
- Gemfile
|
@@ -165,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
164
|
- !ruby/object:Gem::Version
|
166
165
|
version: '0'
|
167
166
|
requirements: []
|
168
|
-
rubygems_version: 3.0.
|
167
|
+
rubygems_version: 3.0.6
|
169
168
|
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: A Ruby implementation of the Coveralls API.
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.5.1
|