coveralls_reborn 0.13.2 → 0.13.3

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: e85003e7d77482e6743fd759d5987f66c2e7a82a8dad7df91d73b4db21496b43
4
- data.tar.gz: db302deed172653ab92a6fb47f88dfc25e9e00b47fd008e3191a9b80b92d11b2
3
+ metadata.gz: 7207ef73660774d201e5a57f7a268bda6f1ad889776531fec61c4ac5c63e9e72
4
+ data.tar.gz: 133b1181cf5c41f1e05d34cb46a9a330944f48e231986470dd76e0f0e329d970
5
5
  SHA512:
6
- metadata.gz: b45bc97c7019b347684edd5e1447eb2d21f954f5cb0349cbc117779958bb5508497997f0dc86f53f614801f08b9ca25d555b5cf8dede8c4279b0f95e1258a8b3
7
- data.tar.gz: ce86a724b1169b3adfab6cf51a480bc27e964dcf677088aee5db1915e12d099d9e931ef1508be5b1408142d20f47ed0a15cefc6e03c55dbae276fb5867aa1a2b
6
+ metadata.gz: f24192e4f87cc0c0631e33997cefd3be8f681cd7e9214956f4cb442178f9731f7a70d7a2f6b4f9860acc2ce6db9162d0eb4a4a2c5d227def8147996c69b3a2b8
7
+ data.tar.gz: 18e1999db93d9449fe35f25fb1d9e9370966db84a41f2900e78cb90806f6bdaea5373a88324da497b69624c583bc3536938ebc7a66f49cce9a49dd34153e34a1
@@ -1,4 +1,6 @@
1
- require: rubocop-rspec
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
 
@@ -15,14 +15,14 @@ env:
15
15
 
16
16
  rvm:
17
17
  - 2.3.8
18
- - 2.4.6
19
- - 2.5.5
20
- - 2.6.3
18
+ - 2.4.9
19
+ - 2.5.7
20
+ - 2.6.5
21
21
  - ruby-head
22
- - jruby-9.2.7.0
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.7.0
27
+ - rvm: jruby-9.2.8.0
28
28
  fast_finish: true
@@ -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', '~> 12.3'
14
- gem 'rspec', '~> 3.8'
15
- gem 'rubocop', '~> 0.73.0'
16
- gem 'rubocop-rspec', '~> 1.33'
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.5'
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
@@ -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.0'
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'
@@ -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, boundary=#{boundary}"
100
+ request.content_type = "multipart/form-data; boundary=#{boundary}"
101
101
 
102
102
  request
103
103
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.13.2'
4
+ VERSION = '0.13.3'
5
5
  end
@@ -80,28 +80,30 @@ describe Coveralls::Configuration do
80
80
  end
81
81
 
82
82
  context 'with services' do
83
- SERVICES = {
84
- appveyor: 'APPVEYOR',
85
- circleci: 'CIRCLECI',
86
- gitlab: 'GITLAB_CI',
87
- jenkins: 'JENKINS_URL',
88
- semaphore: 'SEMAPHORE',
89
- tddium: 'TDDIUM',
90
- travis: 'TRAVIS',
91
- coveralls_local: 'COVERALLS_RUN_LOCALLY',
92
- generic: 'CI_NAME'
93
- }.freeze
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(SERVICES[service_name]).and_return('1')
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
- SERVICES.each_key.reject { |service| service == service_name }.each do |service|
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
- SERVICES.each_key do |service|
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
- subject.wear! do
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
- subject.wear! 'test_frameworks'
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
- subject.wear!
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
- subject.wear_merged! 'rails' do
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 = subject.push!
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 { subject.setup! }
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.2
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-07-19 00:00:00.000000000 Z
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.0
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.0
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.4
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.
@@ -1 +0,0 @@
1
- 2.5.1