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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +6 -1
  3. data/Gemfile +2 -10
  4. data/{Gemfile.rails4 → Gemfile.rails7} +2 -1
  5. data/changes.md +8 -0
  6. data/coverband.gemspec +3 -3
  7. data/diagram.svg +1 -1
  8. data/lib/coverband/adapters/hash_redis_store.rb +1 -1
  9. data/lib/coverband/adapters/redis_store.rb +0 -2
  10. data/lib/coverband/collectors/coverage.rb +7 -1
  11. data/lib/coverband/collectors/route_tracker.rb +175 -0
  12. data/lib/coverband/configuration.rb +4 -1
  13. data/lib/coverband/integrations/background.rb +1 -0
  14. data/lib/coverband/reporters/web.rb +41 -4
  15. data/lib/coverband/utils/html_formatter.rb +8 -0
  16. data/lib/coverband/utils/rails6_ext.rb +58 -0
  17. data/lib/coverband/utils/railtie.rb +20 -0
  18. data/lib/coverband/version.rb +1 -1
  19. data/lib/coverband.rb +1 -0
  20. data/test/benchmarks/benchmark.rake +0 -1
  21. data/test/coverband/collectors/coverage_test.rb +20 -0
  22. data/test/coverband/collectors/route_tracker_test.rb +125 -0
  23. data/test/coverband/collectors/view_tracker_test.rb +1 -1
  24. data/test/coverband/reporters/web_test.rb +1 -1
  25. data/test/forked/rails_full_stack_views_test.rb +5 -0
  26. data/test/forked/rails_route_tracker_stack_test.rb +45 -0
  27. data/test/forked/rails_view_tracker_stack_test.rb +1 -1
  28. data/test/rails5_dummy/config/coverband.rb +1 -2
  29. data/test/rails7_dummy/Rakefile +6 -0
  30. data/test/rails7_dummy/app/controllers/dummy_controller.rb +5 -0
  31. data/test/rails7_dummy/app/controllers/dummy_view_controller.rb +16 -0
  32. data/test/rails7_dummy/app/views/dummy_view/show.html.erb +5 -0
  33. data/test/rails7_dummy/app/views/dummy_view/show_haml.html.haml +4 -0
  34. data/test/rails7_dummy/app/views/dummy_view/show_slim.html.slim +4 -0
  35. data/test/rails7_dummy/config/application.rb +15 -0
  36. data/test/rails7_dummy/config/boot.rb +3 -0
  37. data/test/rails7_dummy/config/coverband.rb +3 -0
  38. data/test/rails7_dummy/config/coverband_missing_redis.rb +3 -0
  39. data/test/rails7_dummy/config/environment.rb +5 -0
  40. data/test/rails7_dummy/config/routes.rb +7 -0
  41. data/test/rails7_dummy/config/secrets.yml +3 -0
  42. data/test/rails7_dummy/config.ru +4 -0
  43. data/test/rails7_dummy/tmp/.keep +0 -0
  44. data/test/test_helper.rb +14 -5
  45. data/views/nav.erb +7 -2
  46. data/views/route_tracker.erb +49 -0
  47. data/views/view_tracker.erb +1 -1
  48. metadata +43 -7
  49. data/Gemfile.rails6 +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c8757666aef8f0f574448435cb61fd66d24a7ace2b128df30562dbd8e7a3e1e
4
- data.tar.gz: 8420bf08b255e38623b9dcfbef365d25bcb5dd6715bb362c5763a08616955d4a
3
+ metadata.gz: 29c141e8e62eabb26244757e45620d7167ecff2e54b6be387afc02af325270af
4
+ data.tar.gz: 7dda0bea9109e8c36175d6b45ddae9470590fe45d60ed53f284b7f6a64d769f3
5
5
  SHA512:
6
- metadata.gz: 96714df5ae4daf880e400319a867035eea27db7c87df49501d62c32da2514a7cfbc92e40d8e5bd0fe20a56e5626058c7e173f155c46a6742204641a9dd451a0b
7
- data.tar.gz: bac28c51086c03e22100a84958f5b04fec83ec9942d600e2da4f2d7039d54585e15394699b225bcd5a20c6d6976263a2ec611e4e5afa8d805464a021c3428973
6
+ metadata.gz: 22c115d68356bc5c238c97ab5ef8e9fb6fc37769a91559cfbf254e0266f8a997fa00e53d4a0b3d6b8195d69633c08765327d8b1283094bbd34242966d1ef1421
7
+ data.tar.gz: 29722490a0d2a3b0af5cf37e67d976b73e12bd50b4649af8f9d3f332a4a07193399ffc2300cb2c02b83effd94dc36c5a7e37eb1a585be2e86cd30bb4062f5cc1
@@ -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
- ruby: [2.3, 2.4, 2.5, 2.6, 2.7, "3.0", jruby, jruby-head]
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
- # these gems are used for testing gem tracking
18
- gem "irb", require: false
10
+ gem "webrick"
@@ -4,6 +4,7 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in coverband.gemspec
6
6
  gemspec
7
- gem 'rails', '~>4'
7
+ gem 'rails', '~>7'
8
8
  gem "haml"
9
9
  gem "slim"
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 = '>= 2.3'
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"