simplecov-html 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -2
  3. data/LICENSE +1 -1
  4. data/README.md +1 -1
  5. data/assets/javascripts/application.js +54 -28
  6. data/assets/javascripts/plugins/jquery.colorbox.js +952 -0
  7. data/assets/stylesheets/plugins/jquery.colorbox.css +52 -0
  8. data/lib/simplecov-html.rb +2 -1
  9. data/lib/simplecov-html/version.rb +2 -2
  10. data/public/application.css +52 -363
  11. data/public/application.js +1005 -72
  12. data/public/colorbox/border.png +0 -0
  13. data/public/colorbox/controls.png +0 -0
  14. data/public/colorbox/loading.gif +0 -0
  15. data/public/colorbox/loading_background.png +0 -0
  16. metadata +20 -49
  17. data/assets/javascripts/plugins/jquery.fancybox-1.3.1.pack.js +0 -44
  18. data/assets/stylesheets/plugins/jquery.fancybox-1.3.1.css +0 -363
  19. data/public/fancybox/blank.gif +0 -0
  20. data/public/fancybox/fancy_close.png +0 -0
  21. data/public/fancybox/fancy_loading.png +0 -0
  22. data/public/fancybox/fancy_nav_left.png +0 -0
  23. data/public/fancybox/fancy_nav_right.png +0 -0
  24. data/public/fancybox/fancy_shadow_e.png +0 -0
  25. data/public/fancybox/fancy_shadow_n.png +0 -0
  26. data/public/fancybox/fancy_shadow_ne.png +0 -0
  27. data/public/fancybox/fancy_shadow_nw.png +0 -0
  28. data/public/fancybox/fancy_shadow_s.png +0 -0
  29. data/public/fancybox/fancy_shadow_se.png +0 -0
  30. data/public/fancybox/fancy_shadow_sw.png +0 -0
  31. data/public/fancybox/fancy_shadow_w.png +0 -0
  32. data/public/fancybox/fancy_title_left.png +0 -0
  33. data/public/fancybox/fancy_title_main.png +0 -0
  34. data/public/fancybox/fancy_title_over.png +0 -0
  35. data/public/fancybox/fancy_title_right.png +0 -0
  36. data/public/fancybox/fancybox-x.png +0 -0
  37. data/public/fancybox/fancybox-y.png +0 -0
  38. data/public/fancybox/fancybox.png +0 -0
@@ -0,0 +1,52 @@
1
+ /*
2
+ ColorBox Core Style:
3
+ The following CSS is consistent between example themes and should not be altered.
4
+ */
5
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
6
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
7
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
+ #cboxContent{position:relative;}
9
+ #cboxLoadedContent{overflow:auto;}
10
+ #cboxTitle{margin:0;}
11
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
14
+ .cboxIframe{width:100%; height:100%; display:block; border:0;}
15
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
16
+
17
+ /*
18
+ User Style:
19
+ Change the following styles to modify the appearance of ColorBox. They are
20
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
21
+ */
22
+ #cboxOverlay{background:#000;}
23
+ #colorbox{}
24
+ #cboxTopLeft{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat 0 0;}
25
+ #cboxTopCenter{height:14px; background:url(colorbox/border.png) repeat-x top left;}
26
+ #cboxTopRight{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat -36px 0;}
27
+ #cboxBottomLeft{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat 0 -32px;}
28
+ #cboxBottomCenter{height:43px; background:url(colorbox/border.png) repeat-x bottom left;}
29
+ #cboxBottomRight{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat -36px -32px;}
30
+ #cboxMiddleLeft{width:14px; background:url(colorbox/controls.png) repeat-y -175px 0;}
31
+ #cboxMiddleRight{width:14px; background:url(colorbox/controls.png) repeat-y -211px 0;}
32
+ #cboxContent{background:#fff; overflow:visible;}
33
+ .cboxIframe{background:#fff;}
34
+ #cboxError{padding:50px; border:1px solid #ccc;}
35
+ #cboxLoadedContent{margin-bottom:5px;}
36
+ #cboxLoadingOverlay{background:url(colorbox/loading_background.png) no-repeat center center;}
37
+ #cboxLoadingGraphic{background:url(colorbox/loading.gif) no-repeat center center;}
38
+ #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
39
+ #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
40
+
41
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(colorbox/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
42
+ #cboxPrevious{left:0px; background-position: -51px -25px;}
43
+ #cboxPrevious:hover{background-position:-51px 0px;}
44
+ #cboxNext{left:27px; background-position:-75px -25px;}
45
+ #cboxNext:hover{background-position:-75px 0px;}
46
+ #cboxClose{right:0; background-position:-100px -25px;}
47
+ #cboxClose:hover{background-position:-100px 0px;}
48
+
49
+ .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
50
+ .cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
51
+ .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
52
+ .cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
@@ -5,7 +5,7 @@ require 'digest/sha1'
5
5
  require 'time'
6
6
 
7
7
  # Ensure we are using a compatible version of SimpleCov
8
- if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.7.1")
8
+ if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.8.0")
9
9
  raise RuntimeError, "The version of SimpleCov you are using is too old. Please update with `gem install simplecov` or `bundle update simplecov`"
10
10
  end
11
11
 
@@ -55,6 +55,7 @@ class SimpleCov::Formatter::HTMLFormatter
55
55
  # Returns a table containing the given source files
56
56
  def formatted_file_list(title, source_files)
57
57
  title_id = title.gsub(/^[^a-zA-Z]+/, '').gsub(/[^a-zA-Z0-9\-\_]/, '')
58
+ title_id # Ruby will give a warning when we do not use this except via the binding :( FIXME
58
59
  template('file_list').result(binding)
59
60
  end
60
61
 
@@ -1,7 +1,7 @@
1
1
  module SimpleCov
2
2
  module Formatter
3
3
  class HTMLFormatter
4
- VERSION = "0.7.1"
4
+ VERSION = "0.8.0"
5
5
  end
6
6
  end
7
- end
7
+ end
@@ -528,369 +528,58 @@ pre .tex .formula {
528
528
  /* Overlays */
529
529
  .ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
530
530
  .ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }
531
- /*
532
- * FancyBox - jQuery Plugin
533
- * Simple and fancy lightbox alternative
534
- *
535
- * Examples and documentation at: http://fancybox.net
536
- *
537
- * Copyright (c) 2008 - 2010 Janis Skarnelis
538
- *
539
- * Version: 1.3.1 (05/03/2010)
540
- * Requires: jQuery v1.3+
541
- *
542
- * Dual licensed under the MIT and GPL licenses:
543
- * http://www.opensource.org/licenses/mit-license.php
544
- * http://www.gnu.org/licenses/gpl.html
545
- */
546
-
547
- #fancybox-loading {
548
- position: fixed;
549
- top: 50%;
550
- left: 50%;
551
- height: 40px;
552
- width: 40px;
553
- margin-top: -20px;
554
- margin-left: -20px;
555
- cursor: pointer;
556
- overflow: hidden;
557
- z-index: 1104;
558
- display: none;
559
- }
560
-
561
- * html #fancybox-loading { /* IE6 */
562
- position: absolute;
563
- margin-top: 0;
564
- }
565
-
566
- #fancybox-loading div {
567
- position: absolute;
568
- top: 0;
569
- left: 0;
570
- width: 40px;
571
- height: 480px;
572
- background-image: url('fancybox.png');
573
- }
574
-
575
- #fancybox-overlay {
576
- position: fixed;
577
- top: 0;
578
- left: 0;
579
- bottom: 0;
580
- right: 0;
581
- background: #000;
582
- z-index: 1100;
583
- display: none;
584
- }
585
-
586
- * html #fancybox-overlay { /* IE6 */
587
- position: absolute;
588
- width: 100%;
589
- }
590
-
591
- #fancybox-tmp {
592
- padding: 0;
593
- margin: 0;
594
- border: 0;
595
- overflow: auto;
596
- display: none;
597
- }
598
-
599
- #fancybox-wrap {
600
- position: absolute;
601
- top: 0;
602
- left: 0;
603
- margin: 0;
604
- padding: 20px;
605
- z-index: 1101;
606
- display: none;
607
- }
608
-
609
- #fancybox-outer {
610
- position: relative;
611
- width: 100%;
612
- height: 100%;
613
- background: #FFF;
614
- }
615
-
616
- #fancybox-inner {
617
- position: absolute;
618
- top: 0;
619
- left: 0;
620
- width: 1px;
621
- height: 1px;
622
- padding: 0;
623
- margin: 0;
624
- outline: none;
625
- overflow: hidden;
626
- }
627
-
628
- #fancybox-hide-sel-frame {
629
- position: absolute;
630
- top: 0;
631
- left: 0;
632
- width: 100%;
633
- height: 100%;
634
- background: transparent;
635
- }
636
-
637
- #fancybox-close {
638
- position: absolute;
639
- top: -15px;
640
- right: -15px;
641
- width: 30px;
642
- height: 30px;
643
- background-image: url('fancybox.png');
644
- background-position: -40px 0px;
645
- cursor: pointer;
646
- z-index: 1103;
647
- display: none;
648
- }
649
-
650
- #fancybox_error {
651
- color: #444;
652
- font: normal 12px/20px Arial;
653
- padding: 7px;
654
- margin: 0;
655
- }
656
-
657
- #fancybox-content {
658
- height: auto;
659
- width: auto;
660
- padding: 0;
661
- margin: 0;
662
- }
663
-
664
- #fancybox-img {
665
- width: 100%;
666
- height: 100%;
667
- padding: 0;
668
- margin: 0;
669
- border: none;
670
- outline: none;
671
- line-height: 0;
672
- vertical-align: top;
673
- -ms-interpolation-mode: bicubic;
674
- }
675
-
676
- #fancybox-frame {
677
- position: relative;
678
- width: 100%;
679
- height: 100%;
680
- border: none;
681
- display: block;
682
- }
683
-
684
- #fancybox-title {
685
- position: absolute;
686
- bottom: 0;
687
- left: 0;
688
- font-family: Arial;
689
- font-size: 12px;
690
- z-index: 1102;
691
- }
692
-
693
- .fancybox-title-inside {
694
- padding: 10px 0;
695
- text-align: center;
696
- color: #333;
697
- }
698
-
699
- .fancybox-title-outside {
700
- padding-top: 5px;
701
- color: #FFF;
702
- text-align: center;
703
- font-weight: bold;
704
- }
705
-
706
- .fancybox-title-over {
707
- color: #FFF;
708
- text-align: left;
709
- }
710
-
711
- #fancybox-title-over {
712
- padding: 10px;
713
- background-image: url('fancy_title_over.png');
714
- display: block;
715
- }
716
-
717
- #fancybox-title-wrap {
718
- display: inline-block;
719
- }
720
-
721
- #fancybox-title-wrap span {
722
- height: 32px;
723
- float: left;
724
- }
725
-
726
- #fancybox-title-left {
727
- padding-left: 15px;
728
- background-image: url('fancybox.png');
729
- background-position: -40px -90px;
730
- background-repeat: no-repeat;
731
- }
732
-
733
- #fancybox-title-main {
734
- font-weight: bold;
735
- line-height: 29px;
736
- background-image: url('fancybox-x.png');
737
- background-position: 0px -40px;
738
- color: #FFF;
739
- }
740
-
741
- #fancybox-title-right {
742
- padding-left: 15px;
743
- background-image: url('fancybox.png');
744
- background-position: -55px -90px;
745
- background-repeat: no-repeat;
746
- }
747
-
748
- #fancybox-left, #fancybox-right {
749
- position: absolute;
750
- bottom: 0px;
751
- height: 100%;
752
- width: 35%;
753
- cursor: pointer;
754
- outline: none;
755
- background-image: url('blank.gif');
756
- z-index: 1102;
757
- display: none;
758
- }
759
-
760
- #fancybox-left {
761
- left: 0px;
762
- }
763
-
764
- #fancybox-right {
765
- right: 0px;
766
- }
767
-
768
- #fancybox-left-ico, #fancybox-right-ico {
769
- position: absolute;
770
- top: 50%;
771
- left: -9999px;
772
- width: 30px;
773
- height: 30px;
774
- margin-top: -15px;
775
- cursor: pointer;
776
- z-index: 1102;
777
- display: block;
778
- }
779
-
780
- #fancybox-left-ico {
781
- background-image: url('fancybox.png');
782
- background-position: -40px -30px;
783
- }
784
-
785
- #fancybox-right-ico {
786
- background-image: url('fancybox.png');
787
- background-position: -40px -60px;
788
- }
789
-
790
- #fancybox-left:hover, #fancybox-right:hover {
791
- visibility: visible; /* IE6 */
792
- }
793
-
794
- #fancybox-left:hover span {
795
- left: 20px;
796
- }
797
-
798
- #fancybox-right:hover span {
799
- left: auto;
800
- right: 20px;
801
- }
802
-
803
- .fancy-bg {
804
- position: absolute;
805
- padding: 0;
806
- margin: 0;
807
- border: 0;
808
- width: 20px;
809
- height: 20px;
810
- z-index: 1001;
811
- }
812
-
813
- #fancy-bg-n {
814
- top: -20px;
815
- left: 0;
816
- width: 100%;
817
- background-image: url('fancybox-x.png');
818
- }
819
-
820
- #fancy-bg-ne {
821
- top: -20px;
822
- right: -20px;
823
- background-image: url('fancybox.png');
824
- background-position: -40px -162px;
825
- }
826
-
827
- #fancy-bg-e {
828
- top: 0;
829
- right: -20px;
830
- height: 100%;
831
- background-image: url('fancybox-y.png');
832
- background-position: -20px 0px;
833
- }
834
-
835
- #fancy-bg-se {
836
- bottom: -20px;
837
- right: -20px;
838
- background-image: url('fancybox.png');
839
- background-position: -40px -182px;
840
- }
841
-
842
- #fancy-bg-s {
843
- bottom: -20px;
844
- left: 0;
845
- width: 100%;
846
- background-image: url('fancybox-x.png');
847
- background-position: 0px -20px;
848
- }
849
-
850
- #fancy-bg-sw {
851
- bottom: -20px;
852
- left: -20px;
853
- background-image: url('fancybox.png');
854
- background-position: -40px -142px;
855
- }
856
-
857
- #fancy-bg-w {
858
- top: 0;
859
- left: -20px;
860
- height: 100%;
861
- background-image: url('fancybox-y.png');
862
- }
863
-
864
- #fancy-bg-nw {
865
- top: -20px;
866
- left: -20px;
867
- background-image: url('fancybox.png');
868
- background-position: -40px -122px;
869
- }
870
-
871
- /* IE */
872
-
873
- #fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
874
- .fancybox-ie #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
875
-
876
- .fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
877
- .fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
878
- .fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
879
- .fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
880
-
881
- .fancybox-ie #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
882
- .fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
883
-
884
- .fancybox-ie .fancy-bg { background: transparent !important; }
885
-
886
- .fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
887
- .fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
888
- .fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
889
- .fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
890
- .fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
891
- .fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
892
- .fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
893
- .fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
531
+ /*
532
+ ColorBox Core Style:
533
+ The following CSS is consistent between example themes and should not be altered.
534
+ */
535
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
536
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
537
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
538
+ #cboxContent{position:relative;}
539
+ #cboxLoadedContent{overflow:auto;}
540
+ #cboxTitle{margin:0;}
541
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
542
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
543
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
544
+ .cboxIframe{width:100%; height:100%; display:block; border:0;}
545
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
546
+
547
+ /*
548
+ User Style:
549
+ Change the following styles to modify the appearance of ColorBox. They are
550
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
551
+ */
552
+ #cboxOverlay{background:#000;}
553
+ #colorbox{}
554
+ #cboxTopLeft{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat 0 0;}
555
+ #cboxTopCenter{height:14px; background:url(colorbox/border.png) repeat-x top left;}
556
+ #cboxTopRight{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat -36px 0;}
557
+ #cboxBottomLeft{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat 0 -32px;}
558
+ #cboxBottomCenter{height:43px; background:url(colorbox/border.png) repeat-x bottom left;}
559
+ #cboxBottomRight{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat -36px -32px;}
560
+ #cboxMiddleLeft{width:14px; background:url(colorbox/controls.png) repeat-y -175px 0;}
561
+ #cboxMiddleRight{width:14px; background:url(colorbox/controls.png) repeat-y -211px 0;}
562
+ #cboxContent{background:#fff; overflow:visible;}
563
+ .cboxIframe{background:#fff;}
564
+ #cboxError{padding:50px; border:1px solid #ccc;}
565
+ #cboxLoadedContent{margin-bottom:5px;}
566
+ #cboxLoadingOverlay{background:url(colorbox/loading_background.png) no-repeat center center;}
567
+ #cboxLoadingGraphic{background:url(colorbox/loading.gif) no-repeat center center;}
568
+ #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
569
+ #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
570
+
571
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(colorbox/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
572
+ #cboxPrevious{left:0px; background-position: -51px -25px;}
573
+ #cboxPrevious:hover{background-position:-51px 0px;}
574
+ #cboxNext{left:27px; background-position:-75px -25px;}
575
+ #cboxNext:hover{background-position:-75px 0px;}
576
+ #cboxClose{right:0; background-position:-100px -25px;}
577
+ #cboxClose:hover{background-position:-100px 0px;}
578
+
579
+ .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
580
+ .cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
581
+ .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
582
+ .cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
894
583
  #loading {
895
584
  position: fixed;
896
585
  left: 40%;