coverband 5.0.0 → 5.0.1.rc.1

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: f73e90b7f1451c8f7a47355b680b361fa96e7ab665c1b135282e1cf2f87db8ac
4
- data.tar.gz: e0bd9b0e10bd500dcb814091a048902e4123fa09a3532e8bffb7108cf69bea53
3
+ metadata.gz: 3b37c0fc6c990699ceb5af49f39121abb439a125f9740a40ece5b661085c116e
4
+ data.tar.gz: ac164ef1389b907353155c9beacd67e99a61397105f5c7f91fee8ef988ec6237
5
5
  SHA512:
6
- metadata.gz: 67e8d3f7f1c925f030b828eb4a4b37a1b35e887341da8cc6956d4c84ec71cb2a31395f656d48ad3d1782e81404624ae95604a4d0198af4cef2e2c43fc7e08578
7
- data.tar.gz: 3d4a7456beb6adfa1e6eeec4bacb35ef4f3b3a25049b9540b603e5f9bcd65aba1d370c1cbf446c7835106d8ccc536209fbdc74f77949847e91262cdffa0c715c
6
+ metadata.gz: 3e27a72cdc036a41f3d8466e8513fa4073a2615f54bb7e414a7690dae80e45cb5b5bf5617d17e55ef6660eaa9a8181962e33f0cdef046832b0cd1d277f93676b
7
+ data.tar.gz: 7563f4760ed9359746e2d35ddeaa22145a433c33cb5285c33794ecc46ea987e2ccb5e165e60fafb372f9ef3a2d03edd2fa2b2bf916bae198a9579498792c7a9e
data/README.md CHANGED
@@ -307,7 +307,7 @@ Coverband.start
307
307
 
308
308
  ### Verbose Debug / Development Mode
309
309
 
310
- Note: To debug issues getting Coverband working. I recommend running in development mode, by turning verbose logging on `config.verbose = true` and passing in the Rails.logger `config.logger = Rails.logger` to the Coverband config. We respect the log level, and I would recommend log level info generally, but if you are investigating a prolbem Coverband logs additional data at the `debug` level. This makes it easy to follow in development mode. Be careful to not leave these on in production as they will affect performance.
310
+ Note: To debug issues getting Coverband working. I recommend running in development mode, by turning verbose logging on `config.verbose = true` and passing in the Rails.logger `config.logger = Rails.logger` to the Coverband config. We respect the log level, and I would recommend log level info generally, but if you are investigating a problem Coverband logs additional data at the `debug` level. This makes it easy to follow in development mode. Be careful to not leave these on in production as they will affect performance.
311
311
 
312
312
  ---
313
313
 
data/changes.md CHANGED
@@ -53,6 +53,12 @@ Will be the fully modern release that drops maintenance legacy support in favor
53
53
 
54
54
  # Alpha / Beta / Release Candidates
55
55
 
56
+ ### Coverband 5.0.1
57
+
58
+ - ?
59
+
60
+ # Released
61
+
56
62
  ### Coverband 5.0.0
57
63
 
58
64
  - Full JRuby support
@@ -77,14 +83,12 @@ Will be the fully modern release that drops maintenance legacy support in favor
77
83
  - reduce logs / errors / alerts on bad startup configurations
78
84
  - fix: #301 runtime vs eagerload should always remain correct
79
85
 
80
- # Released
81
-
82
- ###Coverband 4.2.7
86
+ ### Coverband 4.2.7
83
87
 
84
88
  - Ignore patterns too aggressive #382, thanks @thijsnado
85
89
  - Stack level too deep error when running certain activejob jobs #367, thanks @kejordan and @hanslauwers
86
90
 
87
- ###Coverband 4.2.6
91
+ ### Coverband 4.2.6
88
92
 
89
93
  - Address Redis exists deprecation warning by baffers
90
94
 
@@ -267,7 +271,7 @@ Will be a stable and fast release that drops maintenance legacy support in favor
267
271
  - implemented for Redis and File store
268
272
  - improved mountable web interface
269
273
 
270
- # 2.0.3
274
+ ### 2.0.3
271
275
 
272
276
  - don''t include docs in the gemfile thanks @bquorning
273
277
  - pipeline_redis to reduce network overhead thanks @Kallin
@@ -13,7 +13,21 @@ module Coverband
13
13
  initializer "coverband.configure" do |app|
14
14
  begin
15
15
  app.middleware.use Coverband::BackgroundMiddleware
16
+ rescue Redis::CannotConnectError => error
17
+ Coverband.configuration.logger.info "Redis is not available (#{error}), Coverband not configured"
18
+ Coverband.configuration.logger.info "If this is a setup task like assets:precompile feel free to ignore"
19
+ end
20
+ end
16
21
 
22
+ config.after_initialize do
23
+ unless Coverband.tasks_to_ignore?
24
+ Coverband.configure
25
+ Coverband.eager_loading_coverage!
26
+ Coverband.report_coverage
27
+ Coverband.runtime_coverage!
28
+ end
29
+
30
+ begin
17
31
  if Coverband.configuration.track_views
18
32
  COVERBAND_VIEW_TRACKER = if Coverband.coverband_service?
19
33
  Coverband::Collectors::ViewTrackerService.new
@@ -33,15 +47,6 @@ module Coverband
33
47
  end
34
48
  end
35
49
 
36
- config.after_initialize do
37
- unless Coverband.tasks_to_ignore?
38
- Coverband.configure
39
- Coverband.eager_loading_coverage!
40
- Coverband.report_coverage
41
- Coverband.runtime_coverage!
42
- end
43
- end
44
-
45
50
  config.before_configuration do
46
51
  unless ENV["COVERBAND_DISABLE_AUTO_START"]
47
52
  begin
@@ -5,5 +5,5 @@
5
5
  # use format '4.2.1.rc.1' ~> 4.2.1.rc to prerelease versions like v4.2.1.rc.2 and v4.2.1.rc.3
6
6
  ###
7
7
  module Coverband
8
- VERSION = "5.0.0"
8
+ VERSION = "5.0.1.rc.1"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coverband
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-30 00:00:00.000000000 Z
12
+ date: 2020-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: benchmark-ips
@@ -462,11 +462,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
462
462
  version: '0'
463
463
  required_rubygems_version: !ruby/object:Gem::Requirement
464
464
  requirements:
465
- - - ">="
465
+ - - ">"
466
466
  - !ruby/object:Gem::Version
467
- version: '0'
467
+ version: 1.3.1
468
468
  requirements: []
469
- rubygems_version: 3.1.2
469
+ rubygems_version: 3.0.3
470
470
  signing_key:
471
471
  specification_version: 4
472
472
  summary: Rack middleware to measure production code usage (LOC runtime usage)