coverband 5.2.4 → 5.2.5.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +6 -1
- data/Gemfile +2 -10
- data/{Gemfile.rails4 → Gemfile.rails7} +2 -1
- data/changes.md +8 -0
- data/coverband.gemspec +3 -3
- data/diagram.svg +1 -1
- data/lib/coverband/adapters/hash_redis_store.rb +1 -1
- data/lib/coverband/adapters/redis_store.rb +0 -2
- data/lib/coverband/collectors/coverage.rb +7 -1
- data/lib/coverband/collectors/route_tracker.rb +175 -0
- data/lib/coverband/configuration.rb +4 -1
- data/lib/coverband/integrations/background.rb +1 -0
- data/lib/coverband/reporters/web.rb +41 -4
- data/lib/coverband/utils/html_formatter.rb +8 -0
- data/lib/coverband/utils/rails6_ext.rb +58 -0
- data/lib/coverband/utils/railtie.rb +20 -0
- data/lib/coverband/version.rb +1 -1
- data/lib/coverband.rb +1 -0
- data/test/benchmarks/benchmark.rake +0 -1
- data/test/coverband/collectors/coverage_test.rb +20 -0
- data/test/coverband/collectors/route_tracker_test.rb +125 -0
- data/test/coverband/collectors/view_tracker_test.rb +1 -1
- data/test/coverband/reporters/web_test.rb +1 -1
- data/test/forked/rails_full_stack_views_test.rb +5 -0
- data/test/forked/rails_route_tracker_stack_test.rb +45 -0
- data/test/forked/rails_view_tracker_stack_test.rb +1 -1
- data/test/rails5_dummy/config/coverband.rb +1 -2
- data/test/rails7_dummy/Rakefile +6 -0
- data/test/rails7_dummy/app/controllers/dummy_controller.rb +5 -0
- data/test/rails7_dummy/app/controllers/dummy_view_controller.rb +16 -0
- data/test/rails7_dummy/app/views/dummy_view/show.html.erb +5 -0
- data/test/rails7_dummy/app/views/dummy_view/show_haml.html.haml +4 -0
- data/test/rails7_dummy/app/views/dummy_view/show_slim.html.slim +4 -0
- data/test/rails7_dummy/config/application.rb +15 -0
- data/test/rails7_dummy/config/boot.rb +3 -0
- data/test/rails7_dummy/config/coverband.rb +3 -0
- data/test/rails7_dummy/config/coverband_missing_redis.rb +3 -0
- data/test/rails7_dummy/config/environment.rb +5 -0
- data/test/rails7_dummy/config/routes.rb +7 -0
- data/test/rails7_dummy/config/secrets.yml +3 -0
- data/test/rails7_dummy/config.ru +4 -0
- data/test/rails7_dummy/tmp/.keep +0 -0
- data/test/test_helper.rb +14 -5
- data/views/nav.erb +7 -2
- data/views/route_tracker.erb +49 -0
- data/views/view_tracker.erb +1 -1
- metadata +43 -7
- data/Gemfile.rails6 +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29c141e8e62eabb26244757e45620d7167ecff2e54b6be387afc02af325270af
|
4
|
+
data.tar.gz: 7dda0bea9109e8c36175d6b45ddae9470590fe45d60ed53f284b7f6a64d769f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c115d68356bc5c238c97ab5ef8e9fb6fc37769a91559cfbf254e0266f8a997fa00e53d4a0b3d6b8195d69633c08765327d8b1283094bbd34242966d1ef1421
|
7
|
+
data.tar.gz: 29722490a0d2a3b0af5cf37e67d976b73e12bd50b4649af8f9d3f332a4a07193399ffc2300cb2c02b83effd94dc36c5a7e37eb1a585be2e86cd30bb4062f5cc1
|
data/.github/workflows/main.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
name: CI
|
2
2
|
# Controls when the action will run.
|
3
|
+
# Github Actions multiple gemfile support?
|
3
4
|
on:
|
4
5
|
# Triggers the workflow on push or pull request events but only for the master branch
|
5
6
|
push:
|
@@ -17,7 +18,10 @@ jobs:
|
|
17
18
|
# remove until I sort out CI issues for truffle
|
18
19
|
# truffleruby,
|
19
20
|
# truffleruby-head,
|
20
|
-
|
21
|
+
# removing jruby again to flaky
|
22
|
+
# ruby: [2.3, 2.4, 2.5, 2.6, 2.7, "3.0", "3.1", jruby]
|
23
|
+
# need to add support for multiple gemfiles
|
24
|
+
ruby: ["2.7", "3.0", "3.1"]
|
21
25
|
redis-version: [4, 5, 6]
|
22
26
|
runs-on: ${{ matrix.os }}-latest
|
23
27
|
steps:
|
@@ -27,4 +31,5 @@ jobs:
|
|
27
31
|
with:
|
28
32
|
ruby-version: ${{ matrix.ruby }}
|
29
33
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
34
|
+
- run: bundle exec standardrb
|
30
35
|
- run: bundle exec rake
|
data/Gemfile
CHANGED
@@ -4,15 +4,7 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in coverband.gemspec
|
6
6
|
gemspec
|
7
|
-
|
8
|
-
# add when debugging
|
9
|
-
# require 'byebug'; byebug
|
10
|
-
unless ENV["CI"]
|
11
|
-
gem "pry-byebug"
|
12
|
-
end
|
13
|
-
|
14
|
-
gem "rails", "~>5"
|
7
|
+
gem "rails", "~>6"
|
15
8
|
gem "haml"
|
16
9
|
gem "slim"
|
17
|
-
|
18
|
-
gem "irb", require: false
|
10
|
+
gem "webrick"
|
data/changes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### Coverband 6.0.0
|
2
|
+
|
3
|
+
- (colemanja91/danmayer) support for route tracking
|
4
|
+
- remove deprecations for old coverband, rails, and ruby versions out of support
|
5
|
+
- Note: official support is now:
|
6
|
+
- Ruby: 2.7.6, 3.0.4, 3.1.2 (min versions)
|
7
|
+
- Rails: 6.0.x, 6.1.x, 7.0.x, 7.1.x
|
8
|
+
|
1
9
|
### Coverband 5.2.4
|
2
10
|
|
3
11
|
- add install task with example configuration file
|
data/coverband.gemspec
CHANGED
@@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
22
|
spec.require_paths = %w[lib]
|
23
|
-
|
24
|
-
spec.required_ruby_version =
|
23
|
+
|
24
|
+
spec.required_ruby_version = ">= 2.3"
|
25
25
|
|
26
26
|
spec.metadata = {
|
27
27
|
"homepage_uri" => "https://github.com/danmayer/coverband",
|
28
28
|
"bug_tracker_uri" => "https://github.com/danmayer/coverband/issues",
|
29
29
|
"documentation_uri" => "https://github.com/danmayer/coverband",
|
30
30
|
"changelog_uri" => "https://github.com/danmayer/coverband/blob/main/changes.md",
|
31
|
-
"source_code_uri" => "https://github.com/danmayer/coverband"
|
31
|
+
"source_code_uri" => "https://github.com/danmayer/coverband"
|
32
32
|
}
|
33
33
|
|
34
34
|
spec.add_development_dependency "benchmark-ips"
|