metric_fu 4.8.0 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +8 -8
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.metrics +1 -66
  5. data/.travis.yml +1 -0
  6. data/CONTRIBUTORS +13 -11
  7. data/DEV.md +21 -18
  8. data/Gemfile +1 -2
  9. data/Gemfile.devtools +0 -1
  10. data/HISTORY.md +7 -1
  11. data/README.md +79 -19
  12. data/Rakefile +0 -1
  13. data/checksum/metric_fu-4.8.0.gem.sha512 +1 -0
  14. data/gem_tasks/usage_test.rake +30 -0
  15. data/lib/metric_fu/configuration.rb +6 -1
  16. data/lib/metric_fu/data_structures/line_numbers.rb +1 -1
  17. data/lib/metric_fu/environment.rb +2 -7
  18. data/lib/metric_fu/logging/mf_debugger.rb +4 -4
  19. data/lib/metric_fu/metric.rb +2 -2
  20. data/lib/metric_fu/metrics/cane/template_awesome/cane.html.erb +74 -85
  21. data/lib/metric_fu/metrics/churn/churn.rb +1 -2
  22. data/lib/metric_fu/metrics/flay/template_awesome/flay.html.erb +2 -1
  23. data/lib/metric_fu/metrics/flog/template_awesome/flog.html.erb +2 -1
  24. data/lib/metric_fu/metrics/rails_best_practices/template_awesome/rails_best_practices.html.erb +2 -1
  25. data/lib/metric_fu/metrics/rcov/external_client.rb +24 -0
  26. data/lib/metric_fu/metrics/rcov/rcov.rb +9 -100
  27. data/lib/metric_fu/metrics/rcov/rcov_format_coverage.rb +140 -0
  28. data/lib/metric_fu/metrics/rcov/simplecov_formatter.rb +64 -0
  29. data/lib/metric_fu/metrics/rcov/template_awesome/rcov.html.erb +5 -1
  30. data/lib/metric_fu/metrics/reek/reek_grapher.rb +7 -1
  31. data/lib/metric_fu/metrics/reek/template_awesome/reek.html.erb +2 -1
  32. data/lib/metric_fu/metrics/roodi/template_awesome/roodi.html.erb +2 -1
  33. data/lib/metric_fu/metrics/stats/template_awesome/stats.html.erb +2 -2
  34. data/lib/metric_fu/reporting/graphs/grapher.rb +5 -20
  35. data/lib/metric_fu/reporting/templates/awesome/awesome_template.rb +1 -1
  36. data/lib/metric_fu/reporting/templates/awesome/layout.html.erb +8 -3
  37. data/lib/metric_fu/reporting/templates/javascripts/bluff_graph.js +15 -0
  38. data/lib/metric_fu/reporting/templates/javascripts/excanvas.js +1 -1
  39. data/lib/metric_fu/reporting/templates/javascripts/highcharts.js +294 -0
  40. data/lib/metric_fu/reporting/templates/javascripts/highcharts_graph.js +38 -0
  41. data/lib/metric_fu/reporting/templates/javascripts/standalone-framework.js +17 -0
  42. data/lib/metric_fu/reporting/templates/javascripts/utils.js +9 -0
  43. data/lib/metric_fu/templates/css/bluff.css +10 -10
  44. data/lib/metric_fu/templates/css/integrity.css +3 -0
  45. data/lib/metric_fu/templates/report.html.erb +3 -4
  46. data/lib/metric_fu/version.rb +1 -1
  47. data/metric_fu.gemspec +1 -0
  48. data/spec/fixtures/coverage.rb +13 -0
  49. data/spec/fixtures/exit0.sh +3 -0
  50. data/spec/fixtures/exit1.sh +3 -0
  51. data/spec/metric_fu/formatter/html_spec.rb +2 -2
  52. data/spec/metric_fu/metrics/rcov/simplecov_formatter_spec.rb +41 -0
  53. data/spec/spec_helper.rb +7 -8
  54. data/spec/support/usage_test.rb +134 -0
  55. data/spec/usage_test_spec.rb +69 -0
  56. metadata +39 -3
  57. metadata.gz.sig +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Scruggs
@@ -49,7 +49,7 @@ cert_chain:
49
49
  dWphdUtxcjhoS0RMdTRLK3F1Q0dqWC82TEw2CldPTno5dlQ2aDA1M2tIWllN
50
50
  cmQ0R3MvTmRhQTR0SlN4cmhabFhkYWpBbS8wdkFPekxJcVVISFFrM1IwdGY3
51
51
  YVkKZC93PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
52
- date: 2014-02-25 00:00:00.000000000 Z
52
+ date: 2014-03-23 00:00:00.000000000 Z
53
53
  dependencies:
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: flay
@@ -283,6 +283,20 @@ dependencies:
283
283
  - - ! '>='
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
+ - !ruby/object:Gem::Dependency
287
+ name: simplecov
288
+ requirement: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ! '>='
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ type: :development
294
+ prerelease: false
295
+ version_requirements: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ! '>='
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
286
300
  description: Code metrics from Flog, Flay, Saikuro, Churn, Reek, Roodi, Code Statistics,
287
301
  and Rails Best Practices. (and optionally RCov)
288
302
  email: github@benjaminfleischer.com
@@ -345,8 +359,10 @@ files:
345
359
  - checksum/metric_fu-4.7.2.gem.sha512
346
360
  - checksum/metric_fu-4.7.3.gem.sha512
347
361
  - checksum/metric_fu-4.7.4.gem.sha512
362
+ - checksum/metric_fu-4.8.0.gem.sha512
348
363
  - config/roodi_config.yml
349
364
  - gem_tasks/build.rake
365
+ - gem_tasks/usage_test.rake
350
366
  - gemfiles/Gemfile.travis
351
367
  - lib/metric_fu.rb
352
368
  - lib/metric_fu/calculate.rb
@@ -412,10 +428,13 @@ files:
412
428
  - lib/metric_fu/metrics/rails_best_practices/rails_best_practices.rb
413
429
  - lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
414
430
  - lib/metric_fu/metrics/rails_best_practices/template_awesome/rails_best_practices.html.erb
431
+ - lib/metric_fu/metrics/rcov/external_client.rb
415
432
  - lib/metric_fu/metrics/rcov/init.rb
416
433
  - lib/metric_fu/metrics/rcov/rcov.rb
434
+ - lib/metric_fu/metrics/rcov/rcov_format_coverage.rb
417
435
  - lib/metric_fu/metrics/rcov/rcov_grapher.rb
418
436
  - lib/metric_fu/metrics/rcov/rcov_hotspot.rb
437
+ - lib/metric_fu/metrics/rcov/simplecov_formatter.rb
419
438
  - lib/metric_fu/metrics/rcov/template_awesome/rcov.html.erb
420
439
  - lib/metric_fu/metrics/reek/init.rb
421
440
  - lib/metric_fu/metrics/reek/reek.rb
@@ -445,8 +464,13 @@ files:
445
464
  - lib/metric_fu/reporting/templates/awesome/index.html.erb
446
465
  - lib/metric_fu/reporting/templates/awesome/layout.html.erb
447
466
  - lib/metric_fu/reporting/templates/javascripts/bluff-min.js
467
+ - lib/metric_fu/reporting/templates/javascripts/bluff_graph.js
448
468
  - lib/metric_fu/reporting/templates/javascripts/excanvas.js
469
+ - lib/metric_fu/reporting/templates/javascripts/highcharts.js
470
+ - lib/metric_fu/reporting/templates/javascripts/highcharts_graph.js
449
471
  - lib/metric_fu/reporting/templates/javascripts/js-class.js
472
+ - lib/metric_fu/reporting/templates/javascripts/standalone-framework.js
473
+ - lib/metric_fu/reporting/templates/javascripts/utils.js
450
474
  - lib/metric_fu/run.rb
451
475
  - lib/metric_fu/tasks/metric_fu.rake
452
476
  - lib/metric_fu/templates/configuration.rb
@@ -469,6 +493,9 @@ files:
469
493
  - spec/dummy/lib/.gitkeep
470
494
  - spec/dummy/spec/.gitkeep
471
495
  - spec/fixtures/20090630.yml
496
+ - spec/fixtures/coverage.rb
497
+ - spec/fixtures/exit0.sh
498
+ - spec/fixtures/exit1.sh
472
499
  - spec/fixtures/hotspots/flog.yml
473
500
  - spec/fixtures/hotspots/generator.yml
474
501
  - spec/fixtures/hotspots/generator_analysis.yml
@@ -519,6 +546,7 @@ files:
519
546
  - spec/metric_fu/metrics/rcov/rcov_grapher_spec.rb
520
547
  - spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb
521
548
  - spec/metric_fu/metrics/rcov/rcov_spec.rb
549
+ - spec/metric_fu/metrics/rcov/simplecov_formatter_spec.rb
522
550
  - spec/metric_fu/metrics/reek/reek_grapher_spec.rb
523
551
  - spec/metric_fu/metrics/reek/reek_spec.rb
524
552
  - spec/metric_fu/metrics/roodi/roodi_grapher_spec.rb
@@ -540,6 +568,8 @@ files:
540
568
  - spec/support/suite.rb
541
569
  - spec/support/test_fixtures.rb
542
570
  - spec/support/timeout.rb
571
+ - spec/support/usage_test.rb
572
+ - spec/usage_test_spec.rb
543
573
  homepage: https://github.com/metricfu/metric_fu
544
574
  licenses:
545
575
  - MIT
@@ -562,7 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
592
  version: 1.3.6
563
593
  requirements: []
564
594
  rubyforge_project: metric_fu
565
- rubygems_version: 2.2.1
595
+ rubygems_version: 2.2.2
566
596
  signing_key:
567
597
  specification_version: 4
568
598
  summary: A fistful of code metrics, with awesome templates and graphs
@@ -574,6 +604,9 @@ test_files:
574
604
  - spec/dummy/lib/.gitkeep
575
605
  - spec/dummy/spec/.gitkeep
576
606
  - spec/fixtures/20090630.yml
607
+ - spec/fixtures/coverage.rb
608
+ - spec/fixtures/exit0.sh
609
+ - spec/fixtures/exit1.sh
577
610
  - spec/fixtures/hotspots/flog.yml
578
611
  - spec/fixtures/hotspots/generator.yml
579
612
  - spec/fixtures/hotspots/generator_analysis.yml
@@ -624,6 +657,7 @@ test_files:
624
657
  - spec/metric_fu/metrics/rcov/rcov_grapher_spec.rb
625
658
  - spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb
626
659
  - spec/metric_fu/metrics/rcov/rcov_spec.rb
660
+ - spec/metric_fu/metrics/rcov/simplecov_formatter_spec.rb
627
661
  - spec/metric_fu/metrics/reek/reek_grapher_spec.rb
628
662
  - spec/metric_fu/metrics/reek/reek_spec.rb
629
663
  - spec/metric_fu/metrics/roodi/roodi_grapher_spec.rb
@@ -645,4 +679,6 @@ test_files:
645
679
  - spec/support/suite.rb
646
680
  - spec/support/test_fixtures.rb
647
681
  - spec/support/timeout.rb
682
+ - spec/support/usage_test.rb
683
+ - spec/usage_test_spec.rb
648
684
  has_rdoc: true
metadata.gz.sig CHANGED
Binary file