coveralls 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/coveralls-ruby.gemspec +2 -1
- data/lib/coveralls.rb +2 -0
- data/lib/coveralls/api.rb +2 -4
- data/lib/coveralls/configuration.rb +10 -0
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/coveralls_spec.rb +1 -0
- data/spec/coveralls/fixtures/app/vendor/vendored_gem.rb +1 -0
- data/spec/spec_helper.rb +6 -0
- metadata +22 -8
data/CHANGELOG.md
ADDED
data/coveralls-ruby.gemspec
CHANGED
data/lib/coveralls.rb
CHANGED
@@ -53,6 +53,8 @@ module Coveralls
|
|
53
53
|
|
54
54
|
def start!(simplecov_setting = 'test_frameworks', &block)
|
55
55
|
if @@adapter == :simplecov
|
56
|
+
::SimpleCov.add_filter 'vendor'
|
57
|
+
|
56
58
|
if simplecov_setting
|
57
59
|
puts "[Coveralls] Using SimpleCov's '#{simplecov_setting}' settings.".green
|
58
60
|
if block
|
data/lib/coveralls/api.rb
CHANGED
@@ -36,10 +36,8 @@ module Coveralls
|
|
36
36
|
end
|
37
37
|
|
38
38
|
if defined?(VCR)
|
39
|
-
VCR.configure do |c|
|
40
|
-
|
41
|
-
URI(request.uri).host == API_HOST
|
42
|
-
end
|
39
|
+
VCR.send(VCR.version.major < 2 ? :config : :configure) do |c|
|
40
|
+
c.ignore_hosts API_HOST
|
43
41
|
end
|
44
42
|
end
|
45
43
|
end
|
@@ -24,6 +24,9 @@ module Coveralls
|
|
24
24
|
config[:service_name] = 'circleci'
|
25
25
|
elsif ENV['SEMAPHORE']
|
26
26
|
config[:service_name] = 'semaphore'
|
27
|
+
elsif ENV['JENKINS_URL']
|
28
|
+
config[:service_job_id] = ENV['BUILD_NUMBER']
|
29
|
+
config[:service_name] = 'jenkins'
|
27
30
|
elsif ENV["COVERALLS_RUN_LOCALLY"] || Coveralls.testing
|
28
31
|
config[:service_job_id] = nil
|
29
32
|
config[:service_name] = 'coveralls-ruby'
|
@@ -121,6 +124,13 @@ module Coveralls
|
|
121
124
|
:branch => ENV['CIRCLE_BRANCH'],
|
122
125
|
:commit_sha => ENV['CIRCLE_SHA1']
|
123
126
|
}
|
127
|
+
elsif ENV['JENKINS_URL']
|
128
|
+
{
|
129
|
+
:jenkins_build_num => ENV['BUILD_NUMBER'],
|
130
|
+
:jenkins_build_url => ENV['BUILD_URL'],
|
131
|
+
:branch => ENV['GIT_BRANCH'],
|
132
|
+
:commit_sha => ENV['GIT_COMMIT']
|
133
|
+
}
|
124
134
|
else
|
125
135
|
{}
|
126
136
|
end
|
data/lib/coveralls/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
# this file should not be covered
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
require 'webmock'
|
3
|
+
require 'vcr'
|
3
4
|
|
4
5
|
class InceptionFormatter
|
5
6
|
def format(result)
|
@@ -26,6 +27,11 @@ setup_formatter
|
|
26
27
|
|
27
28
|
require 'coveralls'
|
28
29
|
|
30
|
+
VCR.config do |c|
|
31
|
+
c.cassette_library_dir = 'fixtures/vcr_cassettes'
|
32
|
+
c.stub_with :webmock
|
33
|
+
end
|
34
|
+
|
29
35
|
RSpec.configure do |config|
|
30
36
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
31
37
|
config.run_all_when_everything_filtered = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -142,6 +142,22 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: webmock
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - '='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '1.7'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - '='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '1.7'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: vcr
|
145
161
|
requirement: !ruby/object:Gem::Requirement
|
146
162
|
none: false
|
147
163
|
requirements:
|
@@ -169,6 +185,7 @@ files:
|
|
169
185
|
- .rbenv-version
|
170
186
|
- .rspec
|
171
187
|
- .travis.yml
|
188
|
+
- CHANGELOG.md
|
172
189
|
- Gemfile
|
173
190
|
- LICENSE
|
174
191
|
- README.md
|
@@ -190,6 +207,7 @@ files:
|
|
190
207
|
- spec/coveralls/fixtures/app/models/house.rb
|
191
208
|
- spec/coveralls/fixtures/app/models/robot.rb
|
192
209
|
- spec/coveralls/fixtures/app/models/user.rb
|
210
|
+
- spec/coveralls/fixtures/app/vendor/vendored_gem.rb
|
193
211
|
- spec/coveralls/fixtures/sample.rb
|
194
212
|
- spec/coveralls/simplecov_spec.rb
|
195
213
|
- spec/spec_helper.rb
|
@@ -205,18 +223,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
223
|
- - ! '>='
|
206
224
|
- !ruby/object:Gem::Version
|
207
225
|
version: '0'
|
208
|
-
segments:
|
209
|
-
- 0
|
210
|
-
hash: 1162132818489506396
|
211
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
227
|
none: false
|
213
228
|
requirements:
|
214
229
|
- - ! '>='
|
215
230
|
- !ruby/object:Gem::Version
|
216
231
|
version: '0'
|
217
|
-
segments:
|
218
|
-
- 0
|
219
|
-
hash: 1162132818489506396
|
220
232
|
requirements: []
|
221
233
|
rubyforge_project:
|
222
234
|
rubygems_version: 1.8.23
|
@@ -232,6 +244,8 @@ test_files:
|
|
232
244
|
- spec/coveralls/fixtures/app/models/house.rb
|
233
245
|
- spec/coveralls/fixtures/app/models/robot.rb
|
234
246
|
- spec/coveralls/fixtures/app/models/user.rb
|
247
|
+
- spec/coveralls/fixtures/app/vendor/vendored_gem.rb
|
235
248
|
- spec/coveralls/fixtures/sample.rb
|
236
249
|
- spec/coveralls/simplecov_spec.rb
|
237
250
|
- spec/spec_helper.rb
|
251
|
+
has_rdoc:
|