coverband-service-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/coverband/service/client/version.rb +1 -1
- data/lib/coverband-service-client.rb +14 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf5d966461a5a4d802eac4a5923da9788eb8e0cbdbbd173fd33515752c20beb
|
4
|
+
data.tar.gz: 664829dde80d6db2fc0f174f96ef774141763b38840182e36c1833deb43725f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10551756a797a324765787d8cc3bd280a457b61aa51df74b1ed7f8a358082c5100980d37d9e05b8bdd2bf7aa04db930093029cc2954655977d576b78844a1f4a
|
7
|
+
data.tar.gz: 55120412d18bfe113f6cffa4977888e4967a05e38937301c4383adbd9d3a0b39095b54e7d3b6d803c5be4d405fb4826e0fd81b055b381a6fb2f449068cd10d0c
|
data/Gemfile.lock
CHANGED
@@ -7,8 +7,16 @@ COVERBAND_ENV = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || (defined?(Rails) ? Rails.
|
|
7
7
|
COVERBAND_SERVICE_URL = ENV['COVERBAND_URL'] ||
|
8
8
|
((COVERBAND_ENV == 'development') ? 'http://127.0.0.1:3456' : 'https://coverband-service.herokuapp.com')
|
9
9
|
# TODO: This id is still hard coded
|
10
|
-
COVERBAND_ID = ENV['COVERBAND_ID'] || '
|
10
|
+
COVERBAND_ID = ENV['COVERBAND_ID'] || 'error/set_COVERBAND_ID'
|
11
|
+
|
11
12
|
module Coverband
|
13
|
+
|
14
|
+
if COVERBAND_ENV == 'test' && !ENV['COVERBAND_ENABLE_TEST_MODE']
|
15
|
+
def self.report_coverage
|
16
|
+
# for now disable coverband reporting in test env by default
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
12
20
|
module Adapters
|
13
21
|
###
|
14
22
|
# Take Coverband data and store a merged coverage set to the Coverband service
|
@@ -170,5 +178,9 @@ Coverband.configure do |config|
|
|
170
178
|
config.store = Coverband::Adapters::Service.new(COVERBAND_SERVICE_URL)
|
171
179
|
|
172
180
|
# default to tracking views true
|
173
|
-
config.track_views = ENV['
|
181
|
+
config.track_views = ENV['COVERBAND_ENABLE_VIEW_TRACKER'] ? true : false
|
182
|
+
|
183
|
+
if COVERBAND_ENV == 'test'
|
184
|
+
config.background_reporting_enabled = false
|
185
|
+
end
|
174
186
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coverband-service-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-02-
|
12
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|