coveralls 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ ## 0.6.4 (April 2, 2013)
2
+
3
+ [Full Changelog](https://github.com/lemurheavy/coveralls-ruby/compare/v0.6.3...v0.6.4)
4
+
5
+ Enhancements:
6
+
7
+ * Support [Jenkins CI](http://jenkins-ci.org/)
8
+ * Support VCR versions <= 2
9
+ * Add SimpleCov filter 'vendor' by default.
@@ -32,5 +32,6 @@ Gem::Specification.new do |gem|
32
32
 
33
33
  gem.add_development_dependency 'rspec'
34
34
  gem.add_development_dependency 'rake'
35
- gem.add_development_dependency 'webmock'
35
+ gem.add_development_dependency 'webmock', '1.7'
36
+ gem.add_development_dependency 'vcr'
36
37
  end
@@ -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
@@ -36,10 +36,8 @@ module Coveralls
36
36
  end
37
37
 
38
38
  if defined?(VCR)
39
- VCR.configure do |c|
40
- c.ignore_request do |request|
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
@@ -1,3 +1,3 @@
1
1
  module Coveralls
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -39,6 +39,7 @@ describe Coveralls do
39
39
  silence do
40
40
  subject.wear!
41
41
  end
42
+ ::SimpleCov.filters.map(&:filter_argument).should include 'vendor'
42
43
  end
43
44
  end
44
45
 
@@ -0,0 +1 @@
1
+ # this file should not be covered
@@ -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.3
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-03-19 00:00:00.000000000 Z
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: