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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d219bb2b70714142a0ff8e82b7257ced94f5c6151fdf2c2faf657ba6860c334
4
- data.tar.gz: 00cdd6e48016c70b5a058ff93462ec8a3975c6b5a24ad4418b74d1f4d70d613c
3
+ metadata.gz: cdf5d966461a5a4d802eac4a5923da9788eb8e0cbdbbd173fd33515752c20beb
4
+ data.tar.gz: 664829dde80d6db2fc0f174f96ef774141763b38840182e36c1833deb43725f6
5
5
  SHA512:
6
- metadata.gz: 5d10188e1d2ad65016cbdecbf0259f6ba6ef096a1379e64c739e298d9b73046a8f5d5f091ee015a0ae99fb9fde61a245e6aab218858aa73c38e11ab488c99e9a
7
- data.tar.gz: 84a56afee2cf2c3b32f47a31f656caf23b0d3f3030a2b245536f912dd4edebc09e64b99e856198997efb93e16bb4b51d66d7eced5a1ecfb466cb9daa2a0c1904
6
+ metadata.gz: 10551756a797a324765787d8cc3bd280a457b61aa51df74b1ed7f8a358082c5100980d37d9e05b8bdd2bf7aa04db930093029cc2954655977d576b78844a1f4a
7
+ data.tar.gz: 55120412d18bfe113f6cffa4977888e4967a05e38937301c4383adbd9d3a0b39095b54e7d3b6d803c5be4d405fb4826e0fd81b055b381a6fb2f449068cd10d0c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coverband-service-client (0.0.3)
4
+ coverband-service-client (0.0.4)
5
5
  coverband (~> 4.2.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  module Coverband
2
2
  module Service
3
3
  module Client
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
7
7
  end
@@ -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'] || 'coverband-service/coverband_service_demo'
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['COVERBAND_DISABLE_VIEW_TRACKER'] ? false : true
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.3
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-01 00:00:00.000000000 Z
12
+ date: 2020-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler