corundum 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/doc/Specifications CHANGED
@@ -2,5 +2,5 @@
2
2
  A fairly complete Rakefile
3
3
  should have some tasks
4
4
 
5
- Finished in 0.44748 seconds
5
+ Finished in 0.45564 seconds
6
6
  1 example, 0 failures
@@ -23,27 +23,27 @@
23
23
  <img src="./assets/0.5.3/loading.gif" alt="loading"/>
24
24
  </div>
25
25
  <div id="wrapper" style="display:none;">
26
- <div class="timestamp">Generated <abbr class="timeago" title="2011-12-08T23:07:00-08:00">2011-12-08T23:07:00-08:00</abbr></div>
26
+ <div class="timestamp">Generated <abbr class="timeago" title="2011-12-09T18:31:15-08:00">2011-12-09T18:31:15-08:00</abbr></div>
27
27
  <ul class="group_tabs"></ul>
28
28
 
29
29
  <div id="content">
30
30
  <div class="file_list_container" id="AllFiles">
31
31
  <h2>
32
32
  <span class="group_name">All Files</span>
33
- (<span class="covered_percent"><span class="red">67.31%</span></span>
33
+ (<span class="covered_percent"><span class="red">66.9%</span></span>
34
34
  covered at
35
35
  <span class="covered_strength">
36
36
  <span class="green">
37
- 2.36
37
+ 2.38
38
38
  </span>
39
39
  </span> hits/line)
40
40
  </h2>
41
41
  <a name="AllFiles"></a>
42
42
  <div>
43
43
  <b>14</b> files in total.
44
- <b>569</b> relevant lines.
45
- <span class="green"><b>383</b> lines covered</span> and
46
- <span class="red"><b>186</b> lines missed </span>
44
+ <b>571</b> relevant lines.
45
+ <span class="green"><b>382</b> lines covered</span> and
46
+ <span class="red"><b>189</b> lines missed </span>
47
47
  </div>
48
48
  <table class="file_list">
49
49
  <thead>
@@ -61,12 +61,12 @@
61
61
 
62
62
  <tr>
63
63
  <td class="strong"><a href="#40b1a87f29241930a6c0500cd72ea10da2241237" class="src_link" title="lib/corundum.rb">lib/corundum.rb</a></td>
64
- <td class="yellow strong">86.21 %</td>
65
- <td>120</td>
66
- <td>58</td>
64
+ <td class="yellow strong">80.65 %</td>
65
+ <td>126</td>
66
+ <td>62</td>
67
67
  <td>50</td>
68
- <td>8</td>
69
- <td>0.9</td>
68
+ <td>12</td>
69
+ <td>0.8</td>
70
70
  </tr>
71
71
 
72
72
  <tr>
@@ -76,7 +76,7 @@
76
76
  <td>32</td>
77
77
  <td>32</td>
78
78
  <td>0</td>
79
- <td>16.6</td>
79
+ <td>16.8</td>
80
80
  </tr>
81
81
 
82
82
  <tr>
@@ -181,12 +181,12 @@
181
181
 
182
182
  <tr>
183
183
  <td class="strong"><a href="#58abe8fc8bf9e6883cd935a00513d6746935b12c" class="src_link" title="lib/corundum/version_control/monotone.rb">lib/corundum/version_control/monotone.rb</a></td>
184
- <td class="yellow strong">84.21 %</td>
185
- <td>128</td>
186
- <td>76</td>
187
- <td>64</td>
188
- <td>12</td>
189
- <td>3.4</td>
184
+ <td class="yellow strong">85.14 %</td>
185
+ <td>124</td>
186
+ <td>74</td>
187
+ <td>63</td>
188
+ <td>11</td>
189
+ <td>3.5</td>
190
190
  </tr>
191
191
 
192
192
  <tr>
@@ -218,11 +218,11 @@
218
218
  <div class="source_table" id="40b1a87f29241930a6c0500cd72ea10da2241237">
219
219
  <div class="header">
220
220
  <h3>lib/corundum.rb</h3>
221
- <h4><span class="yellow">86.21 %</span> covered</h4>
221
+ <h4><span class="yellow">80.65 %</span> covered</h4>
222
222
  <div>
223
- <b>58</b> relevant lines.
223
+ <b>62</b> relevant lines.
224
224
  <span class="green"><b>50</b> lines covered</span> and
225
- <span class="red"><b>8</b> lines missed.</span>
225
+ <span class="red"><b>12</b> lines missed.</span>
226
226
  </div>
227
227
  </div>
228
228
 
@@ -400,207 +400,207 @@
400
400
  <li class="never" data-hits="" data-linenumber="29">
401
401
 
402
402
 
403
- <code class="ruby"> :file_lists =&gt; nested(:code =&gt; nil, :test =&gt; nil, :docs =&gt; nil, :all =&gt; nil),</code>
403
+ <code class="ruby"> :file_lists =&gt; nested(:code =&gt; nil,</code>
404
404
  </li>
405
405
 
406
406
  <li class="never" data-hits="" data-linenumber="30">
407
407
 
408
408
 
409
- <code class="ruby"> :rubyforge =&gt; nested().nil_fields(:group_id, :package_id,</code>
409
+ <code class="ruby"> :test =&gt; nil,</code>
410
410
  </li>
411
411
 
412
412
  <li class="never" data-hits="" data-linenumber="31">
413
413
 
414
414
 
415
- <code class="ruby"> :release_name, :home_page, :project_page),</code>
415
+ <code class="ruby"> :docs =&gt; nil,</code>
416
416
  </li>
417
417
 
418
- <li class="covered" data-hits="1" data-linenumber="32">
419
- <span class="hits">1</span>
418
+ <li class="never" data-hits="" data-linenumber="32">
420
419
 
421
- <code class="ruby"> :doc_dir =&gt; &quot;rubydoc&quot;</code>
420
+
421
+ <code class="ruby"> :project =&gt; nil,</code>
422
422
  </li>
423
423
 
424
424
  <li class="never" data-hits="" data-linenumber="33">
425
425
 
426
426
 
427
- <code class="ruby"> )</code>
427
+ <code class="ruby"> :all =&gt; nil),</code>
428
428
  </li>
429
429
 
430
430
  <li class="never" data-hits="" data-linenumber="34">
431
431
 
432
432
 
433
- <code class="ruby"> end</code>
433
+ <code class="ruby"> :rubyforge =&gt; nested().nil_fields(:group_id, :package_id,</code>
434
434
  </li>
435
435
 
436
436
  <li class="never" data-hits="" data-linenumber="35">
437
437
 
438
438
 
439
- <code class="ruby"></code>
439
+ <code class="ruby"> :release_name, :home_page, :project_page),</code>
440
440
  </li>
441
441
 
442
442
  <li class="covered" data-hits="1" data-linenumber="36">
443
443
  <span class="hits">1</span>
444
444
 
445
- <code class="ruby"> def load_gemspec</code>
445
+ <code class="ruby"> :doc_dir =&gt; &quot;rubydoc&quot;</code>
446
446
  </li>
447
447
 
448
- <li class="covered" data-hits="1" data-linenumber="37">
449
- <span class="hits">1</span>
448
+ <li class="never" data-hits="" data-linenumber="37">
450
449
 
451
- <code class="ruby"> @gemspec_path ||= guess_gemspec</code>
452
- </li>
453
-
454
- <li class="covered" data-hits="1" data-linenumber="38">
455
- <span class="hits">1</span>
456
450
 
457
- <code class="ruby"> @gemspec ||= Gem::Specification::load(gemspec_path)</code>
451
+ <code class="ruby"> )</code>
458
452
  </li>
459
453
 
460
- <li class="covered" data-hits="1" data-linenumber="39">
461
- <span class="hits">1</span>
454
+ <li class="never" data-hits="" data-linenumber="38">
462
455
 
463
- <code class="ruby"> return gemspec</code>
456
+
457
+ <code class="ruby"> end</code>
464
458
  </li>
465
459
 
466
- <li class="never" data-hits="" data-linenumber="40">
460
+ <li class="never" data-hits="" data-linenumber="39">
467
461
 
468
462
 
469
- <code class="ruby"> end</code>
463
+ <code class="ruby"></code>
470
464
  </li>
471
465
 
472
- <li class="never" data-hits="" data-linenumber="41">
466
+ <li class="covered" data-hits="1" data-linenumber="40">
467
+ <span class="hits">1</span>
473
468
 
469
+ <code class="ruby"> def load_gemspec</code>
470
+ </li>
471
+
472
+ <li class="covered" data-hits="1" data-linenumber="41">
473
+ <span class="hits">1</span>
474
474
 
475
- <code class="ruby"></code>
475
+ <code class="ruby"> @gemspec_path ||= guess_gemspec</code>
476
476
  </li>
477
477
 
478
478
  <li class="covered" data-hits="1" data-linenumber="42">
479
479
  <span class="hits">1</span>
480
480
 
481
- <code class="ruby"> def resolve_configuration</code>
481
+ <code class="ruby"> @gemspec ||= Gem::Specification::load(gemspec_path)</code>
482
482
  </li>
483
483
 
484
484
  <li class="covered" data-hits="1" data-linenumber="43">
485
485
  <span class="hits">1</span>
486
486
 
487
- <code class="ruby"> load_gemspec</code>
487
+ <code class="ruby"> return gemspec</code>
488
488
  </li>
489
489
 
490
490
  <li class="never" data-hits="" data-linenumber="44">
491
491
 
492
492
 
493
- <code class="ruby"></code>
493
+ <code class="ruby"> end</code>
494
494
  </li>
495
495
 
496
- <li class="covered" data-hits="1" data-linenumber="45">
497
- <span class="hits">1</span>
496
+ <li class="never" data-hits="" data-linenumber="45">
498
497
 
499
- <code class="ruby"> @finished_files.build ||= File::join(</code>
498
+
499
+ <code class="ruby"></code>
500
500
  </li>
501
501
 
502
- <li class="never" data-hits="" data-linenumber="46">
503
-
502
+ <li class="covered" data-hits="1" data-linenumber="46">
503
+ <span class="hits">1</span>
504
504
 
505
- <code class="ruby"> finished_dir, &quot;build_#{gemspec.version}&quot;)</code>
505
+ <code class="ruby"> def resolve_configuration</code>
506
506
  </li>
507
507
 
508
508
  <li class="covered" data-hits="1" data-linenumber="47">
509
509
  <span class="hits">1</span>
510
510
 
511
- <code class="ruby"> @finished_files.qa ||= File::join(</code>
511
+ <code class="ruby"> load_gemspec</code>
512
512
  </li>
513
513
 
514
514
  <li class="never" data-hits="" data-linenumber="48">
515
515
 
516
516
 
517
- <code class="ruby"> finished_dir, &quot;qa_#{gemspec.version}&quot;)</code>
517
+ <code class="ruby"></code>
518
518
  </li>
519
519
 
520
520
  <li class="covered" data-hits="1" data-linenumber="49">
521
521
  <span class="hits">1</span>
522
522
 
523
- <code class="ruby"> @finished_files.package ||= File::join(</code>
523
+ <code class="ruby"> @finished_files.build ||= File::join( package_dir, &quot;#{gemspec.full_name}.gem&quot;)</code>
524
524
  </li>
525
525
 
526
526
  <li class="never" data-hits="" data-linenumber="50">
527
527
 
528
528
 
529
- <code class="ruby"> finished_dir, &quot;package_#{gemspec.version}&quot;)</code>
529
+ <code class="ruby"></code>
530
530
  </li>
531
531
 
532
532
  <li class="covered" data-hits="1" data-linenumber="51">
533
533
  <span class="hits">1</span>
534
534
 
535
- <code class="ruby"> @finished_files.release ||= File::join(</code>
535
+ <code class="ruby"> @finished_files.qa ||= File::join( finished_dir, &quot;qa_#{gemspec.version}&quot;)</code>
536
536
  </li>
537
537
 
538
- <li class="never" data-hits="" data-linenumber="52">
539
-
538
+ <li class="covered" data-hits="1" data-linenumber="52">
539
+ <span class="hits">1</span>
540
540
 
541
- <code class="ruby"> finished_dir, &quot;release_#{gemspec.version}&quot;)</code>
541
+ <code class="ruby"> @finished_files.release ||= File::join( finished_dir, &quot;release_#{gemspec.version}&quot;)</code>
542
542
  </li>
543
543
 
544
544
  <li class="covered" data-hits="1" data-linenumber="53">
545
545
  <span class="hits">1</span>
546
546
 
547
- <code class="ruby"> @finished_files.press ||= File::join(</code>
547
+ <code class="ruby"> @finished_files.press ||= File::join( finished_dir, &quot;press_#{gemspec.version}&quot;)</code>
548
548
  </li>
549
549
 
550
550
  <li class="never" data-hits="" data-linenumber="54">
551
551
 
552
552
 
553
- <code class="ruby"> finished_dir, &quot;press_#{gemspec.version}&quot;)</code>
554
- </li>
555
-
556
- <li class="never" data-hits="" data-linenumber="55">
557
-
558
-
559
553
  <code class="ruby"></code>
560
554
  </li>
561
555
 
562
- <li class="covered" data-hits="1" data-linenumber="56">
556
+ <li class="covered" data-hits="1" data-linenumber="55">
563
557
  <span class="hits">1</span>
564
558
 
565
559
  <code class="ruby"> @files.code ||= gemspec.files.grep(%r{^lib/})</code>
566
560
  </li>
567
561
 
568
- <li class="covered" data-hits="1" data-linenumber="57">
562
+ <li class="covered" data-hits="1" data-linenumber="56">
569
563
  <span class="hits">1</span>
570
564
 
571
565
  <code class="ruby"> @files.test ||= gemspec.files.grep(%r{^spec/})</code>
572
566
  </li>
573
567
 
574
- <li class="covered" data-hits="1" data-linenumber="58">
568
+ <li class="covered" data-hits="1" data-linenumber="57">
575
569
  <span class="hits">1</span>
576
570
 
577
571
  <code class="ruby"> @files.docs ||= gemspec.files.grep(%r{^doc/})</code>
578
572
  </li>
579
573
 
580
- <li class="never" data-hits="" data-linenumber="59">
574
+ <li class="never" data-hits="" data-linenumber="58">
581
575
 
582
576
 
583
577
  <code class="ruby"></code>
584
578
  </li>
585
579
 
586
- <li class="covered" data-hits="1" data-linenumber="60">
580
+ <li class="covered" data-hits="1" data-linenumber="59">
587
581
  <span class="hits">1</span>
588
582
 
589
583
  <code class="ruby"> @file_lists.code ||= FileList['lib/**/*.rb']</code>
590
584
  </li>
591
585
 
592
- <li class="covered" data-hits="1" data-linenumber="61">
586
+ <li class="covered" data-hits="1" data-linenumber="60">
593
587
  <span class="hits">1</span>
594
588
 
595
589
  <code class="ruby"> @file_lists.test ||= FileList['test/**/*.rb','spec/**/*.rb','features/**/*.rb']</code>
596
590
  </li>
597
591
 
598
- <li class="covered" data-hits="1" data-linenumber="62">
592
+ <li class="covered" data-hits="1" data-linenumber="61">
599
593
  <span class="hits">1</span>
600
594
 
601
595
  <code class="ruby"> @file_lists.docs ||= FileList['doc/**/*.rb']</code>
602
596
  </li>
603
597
 
598
+ <li class="covered" data-hits="1" data-linenumber="62">
599
+ <span class="hits">1</span>
600
+
601
+ <code class="ruby"> @file_lists.project ||= FileList['Rakefile', gemspec_path]</code>
602
+ </li>
603
+
604
604
  <li class="covered" data-hits="1" data-linenumber="63">
605
605
  <span class="hits">1</span>
606
606
 
@@ -796,154 +796,190 @@
796
796
  <li class="covered" data-hits="1" data-linenumber="95">
797
797
  <span class="hits">1</span>
798
798
 
799
- <code class="ruby"> task :qa =&gt; :preflight</code>
799
+ <code class="ruby"> task :qa =&gt; [:preflight, finished_files.qa]</code>
800
800
  </li>
801
801
 
802
- <li class="covered" data-hits="1" data-linenumber="96">
802
+ <li class="never" data-hits="" data-linenumber="96">
803
+
804
+
805
+ <code class="ruby"> file finished_files.qa =&gt;</code>
806
+ </li>
807
+
808
+ <li class="covered" data-hits="1" data-linenumber="97">
803
809
  <span class="hits">1</span>
804
810
 
805
- <code class="ruby"> file finished_files.qa =&gt; [:qa, finished_dir] do |task|</code>
811
+ <code class="ruby"> [finished_dir] + file_lists.project + file_lists.code + file_lists.test do |task|</code>
806
812
  </li>
807
813
 
808
- <li class="missed" data-hits="0" data-linenumber="97">
814
+ <li class="missed" data-hits="0" data-linenumber="98">
815
+
816
+
817
+ <code class="ruby"> Rake::Task[:qa].invoke #because I don't want this to be needed if it's not</code>
818
+ </li>
819
+
820
+ <li class="missed" data-hits="0" data-linenumber="99">
809
821
 
810
822
 
811
823
  <code class="ruby"> touch task.name</code>
812
824
  </li>
813
825
 
814
- <li class="never" data-hits="" data-linenumber="98">
826
+ <li class="never" data-hits="" data-linenumber="100">
815
827
 
816
828
 
817
829
  <code class="ruby"> end</code>
818
830
  </li>
819
831
 
820
- <li class="never" data-hits="" data-linenumber="99">
832
+ <li class="never" data-hits="" data-linenumber="101">
821
833
 
822
834
 
823
835
  <code class="ruby"></code>
824
836
  </li>
825
837
 
826
- <li class="covered" data-hits="1" data-linenumber="100">
838
+ <li class="covered" data-hits="1" data-linenumber="102">
827
839
  <span class="hits">1</span>
828
840
 
829
841
  <code class="ruby"> desc &quot;Build the package&quot;</code>
830
842
  </li>
831
843
 
832
- <li class="covered" data-hits="1" data-linenumber="101">
844
+ <li class="covered" data-hits="1" data-linenumber="103">
833
845
  <span class="hits">1</span>
834
846
 
835
- <code class="ruby"> task :build =&gt; finished_files.qa</code>
847
+ <code class="ruby"> task :build =&gt; [finished_files.qa, :preflight, finished_files.build]</code>
836
848
  </li>
837
849
 
838
- <li class="covered" data-hits="1" data-linenumber="102">
850
+ <li class="never" data-hits="" data-linenumber="104">
851
+
852
+
853
+ <code class="ruby"> file finished_files.build =&gt;</code>
854
+ </li>
855
+
856
+ <li class="covered" data-hits="1" data-linenumber="105">
839
857
  <span class="hits">1</span>
840
858
 
841
- <code class="ruby"> file finished_files.build =&gt; [:build, finished_dir] do |task|</code>
859
+ <code class="ruby"> [finished_dir] + file_lists.code + file_lists.project do |task|</code>
842
860
  </li>
843
861
 
844
- <li class="missed" data-hits="0" data-linenumber="103">
862
+ <li class="missed" data-hits="0" data-linenumber="106">
863
+
864
+
865
+ <code class="ruby"> Rake::Task[:build].invoke</code>
866
+ </li>
867
+
868
+ <li class="missed" data-hits="0" data-linenumber="107">
845
869
 
846
870
 
847
871
  <code class="ruby"> touch task.name</code>
848
872
  </li>
849
873
 
850
- <li class="never" data-hits="" data-linenumber="104">
874
+ <li class="never" data-hits="" data-linenumber="108">
851
875
 
852
876
 
853
877
  <code class="ruby"> end</code>
854
878
  </li>
855
879
 
856
- <li class="never" data-hits="" data-linenumber="105">
880
+ <li class="never" data-hits="" data-linenumber="109">
857
881
 
858
882
 
859
883
  <code class="ruby"></code>
860
884
  </li>
861
885
 
862
- <li class="covered" data-hits="1" data-linenumber="106">
886
+ <li class="covered" data-hits="1" data-linenumber="110">
863
887
  <span class="hits">1</span>
864
888
 
865
889
  <code class="ruby"> desc &quot;Push package out to the world&quot;</code>
866
890
  </li>
867
891
 
868
- <li class="covered" data-hits="1" data-linenumber="107">
892
+ <li class="covered" data-hits="1" data-linenumber="111">
869
893
  <span class="hits">1</span>
870
894
 
871
- <code class="ruby"> task :release =&gt; finished_files.build</code>
895
+ <code class="ruby"> task :release =&gt; [finished_files.build, :preflight, finished_files.release]</code>
872
896
  </li>
873
897
 
874
- <li class="covered" data-hits="1" data-linenumber="108">
898
+ <li class="covered" data-hits="1" data-linenumber="112">
875
899
  <span class="hits">1</span>
876
900
 
877
- <code class="ruby"> file finished_files.release =&gt; [:release, finished_dir] do |task|</code>
901
+ <code class="ruby"> file finished_files.release =&gt; [finished_dir] do |task|</code>
902
+ </li>
903
+
904
+ <li class="missed" data-hits="0" data-linenumber="113">
905
+
906
+
907
+ <code class="ruby"> Rake::Task[:release].invoke</code>
878
908
  </li>
879
909
 
880
- <li class="missed" data-hits="0" data-linenumber="109">
910
+ <li class="missed" data-hits="0" data-linenumber="114">
881
911
 
882
912
 
883
913
  <code class="ruby"> touch task.name</code>
884
914
  </li>
885
915
 
886
- <li class="never" data-hits="" data-linenumber="110">
916
+ <li class="never" data-hits="" data-linenumber="115">
887
917
 
888
918
 
889
919
  <code class="ruby"> end</code>
890
920
  </li>
891
921
 
892
- <li class="never" data-hits="" data-linenumber="111">
922
+ <li class="never" data-hits="" data-linenumber="116">
893
923
 
894
924
 
895
925
  <code class="ruby"></code>
896
926
  </li>
897
927
 
898
- <li class="covered" data-hits="1" data-linenumber="112">
928
+ <li class="covered" data-hits="1" data-linenumber="117">
899
929
  <span class="hits">1</span>
900
930
 
901
931
  <code class="ruby"> desc &quot;Announce publication&quot;</code>
902
932
  </li>
903
933
 
904
- <li class="covered" data-hits="1" data-linenumber="113">
934
+ <li class="covered" data-hits="1" data-linenumber="118">
905
935
  <span class="hits">1</span>
906
936
 
907
- <code class="ruby"> task :press =&gt; finished_files.release</code>
937
+ <code class="ruby"> task :press =&gt; [finished_files.release, finished_files.press]</code>
908
938
  </li>
909
939
 
910
- <li class="covered" data-hits="1" data-linenumber="114">
940
+ <li class="covered" data-hits="1" data-linenumber="119">
911
941
  <span class="hits">1</span>
912
942
 
913
- <code class="ruby"> file finished_files.press =&gt; [:press, finished_dir] do |task|</code>
943
+ <code class="ruby"> file finished_files.press =&gt; [finished_dir] do |task|</code>
914
944
  </li>
915
945
 
916
- <li class="missed" data-hits="0" data-linenumber="115">
946
+ <li class="missed" data-hits="0" data-linenumber="120">
947
+
948
+
949
+ <code class="ruby"> Rake::Task[:press].invoke</code>
950
+ </li>
951
+
952
+ <li class="missed" data-hits="0" data-linenumber="121">
917
953
 
918
954
 
919
955
  <code class="ruby"> touch task.name</code>
920
956
  </li>
921
957
 
922
- <li class="never" data-hits="" data-linenumber="116">
958
+ <li class="never" data-hits="" data-linenumber="122">
923
959
 
924
960
 
925
961
  <code class="ruby"> end</code>
926
962
  </li>
927
963
 
928
- <li class="never" data-hits="" data-linenumber="117">
964
+ <li class="never" data-hits="" data-linenumber="123">
929
965
 
930
966
 
931
967
  <code class="ruby"> end</code>
932
968
  </li>
933
969
 
934
- <li class="never" data-hits="" data-linenumber="118">
970
+ <li class="never" data-hits="" data-linenumber="124">
935
971
 
936
972
 
937
973
  <code class="ruby"> end</code>
938
974
  </li>
939
975
 
940
- <li class="never" data-hits="" data-linenumber="119">
976
+ <li class="never" data-hits="" data-linenumber="125">
941
977
 
942
978
 
943
979
  <code class="ruby"> end</code>
944
980
  </li>
945
981
 
946
- <li class="never" data-hits="" data-linenumber="120">
982
+ <li class="never" data-hits="" data-linenumber="126">
947
983
 
948
984
 
949
985
  <code class="ruby">end</code>
@@ -1027,8 +1063,8 @@
1027
1063
  <code class="ruby"> mod</code>
1028
1064
  </li>
1029
1065
 
1030
- <li class="covered" data-hits="89" data-linenumber="11">
1031
- <span class="hits">89</span>
1066
+ <li class="covered" data-hits="90" data-linenumber="11">
1067
+ <span class="hits">90</span>
1032
1068
 
1033
1069
  <code class="ruby"> end</code>
1034
1070
  </li>
@@ -1081,14 +1117,14 @@
1081
1117
  <code class="ruby"> def setting(name, default_value = nil)</code>
1082
1118
  </li>
1083
1119
 
1084
- <li class="covered" data-hits="89" data-linenumber="20">
1085
- <span class="hits">89</span>
1120
+ <li class="covered" data-hits="90" data-linenumber="20">
1121
+ <span class="hits">90</span>
1086
1122
 
1087
1123
  <code class="ruby"> local_attrs.instance_eval do</code>
1088
1124
  </li>
1089
1125
 
1090
- <li class="covered" data-hits="89" data-linenumber="21">
1091
- <span class="hits">89</span>
1126
+ <li class="covered" data-hits="90" data-linenumber="21">
1127
+ <span class="hits">90</span>
1092
1128
 
1093
1129
  <code class="ruby"> attr_accessor(name)</code>
1094
1130
  </li>
@@ -1099,8 +1135,8 @@
1099
1135
  <code class="ruby"> end</code>
1100
1136
  </li>
1101
1137
 
1102
- <li class="covered" data-hits="89" data-linenumber="23">
1103
- <span class="hits">89</span>
1138
+ <li class="covered" data-hits="90" data-linenumber="23">
1139
+ <span class="hits">90</span>
1104
1140
 
1105
1141
  <code class="ruby"> instance_variable_set(&quot;@#{name}&quot;, default_value)</code>
1106
1142
  </li>
@@ -1171,8 +1207,8 @@
1171
1207
  <code class="ruby"> hash.each_pair do |name, value|</code>
1172
1208
  </li>
1173
1209
 
1174
- <li class="covered" data-hits="41" data-linenumber="35">
1175
- <span class="hits">41</span>
1210
+ <li class="covered" data-hits="42" data-linenumber="35">
1211
+ <span class="hits">42</span>
1176
1212
 
1177
1213
  <code class="ruby"> setting(name, value)</code>
1178
1214
  </li>
@@ -4492,7 +4528,7 @@
4492
4528
  <li class="covered" data-hits="1" data-linenumber="75">
4493
4529
  <span class="hits">1</span>
4494
4530
 
4495
- <code class="ruby"> task :view =&gt; :generate_report do</code>
4531
+ <code class="ruby"> task :view =&gt; report_path do</code>
4496
4532
  </li>
4497
4533
 
4498
4534
  <li class="missed" data-hits="0" data-linenumber="76">
@@ -5372,11 +5408,11 @@
5372
5408
  <div class="source_table" id="58abe8fc8bf9e6883cd935a00513d6746935b12c">
5373
5409
  <div class="header">
5374
5410
  <h3>lib/corundum/version_control/monotone.rb</h3>
5375
- <h4><span class="yellow">84.21 %</span> covered</h4>
5411
+ <h4><span class="yellow">85.14 %</span> covered</h4>
5376
5412
  <div>
5377
- <b>76</b> relevant lines.
5378
- <span class="green"><b>64</b> lines covered</span> and
5379
- <span class="red"><b>12</b> lines missed.</span>
5413
+ <b>74</b> relevant lines.
5414
+ <span class="green"><b>63</b> lines covered</span> and
5415
+ <span class="red"><b>11</b> lines missed.</span>
5380
5416
  </div>
5381
5417
  </div>
5382
5418
 
@@ -6064,13 +6100,13 @@
6064
6100
  <li class="covered" data-hits="1" data-linenumber="114">
6065
6101
  <span class="hits">1</span>
6066
6102
 
6067
- <code class="ruby"> task :commit do</code>
6103
+ <code class="ruby"> task :sync do</code>
6068
6104
  </li>
6069
6105
 
6070
6106
  <li class="missed" data-hits="0" data-linenumber="115">
6071
6107
 
6072
6108
 
6073
- <code class="ruby"> sh &quot;mtn commit --branch #{branch} --message \&quot;Automatic commit: gem built at version #{gemspec.version}\&quot;&quot;</code>
6109
+ <code class="ruby"> mtn_automate(&quot;sync&quot;)</code>
6074
6110
  </li>
6075
6111
 
6076
6112
  <li class="never" data-hits="" data-linenumber="116">
@@ -6088,64 +6124,40 @@
6088
6124
  <li class="covered" data-hits="1" data-linenumber="118">
6089
6125
  <span class="hits">1</span>
6090
6126
 
6091
- <code class="ruby"> task :sync do</code>
6092
- </li>
6093
-
6094
- <li class="missed" data-hits="0" data-linenumber="119">
6095
-
6096
-
6097
- <code class="ruby"> mtn_automate(&quot;sync&quot;)</code>
6098
- </li>
6099
-
6100
- <li class="never" data-hits="" data-linenumber="120">
6101
-
6102
-
6103
- <code class="ruby"> end</code>
6104
- </li>
6105
-
6106
- <li class="never" data-hits="" data-linenumber="121">
6107
-
6108
-
6109
- <code class="ruby"></code>
6110
- </li>
6111
-
6112
- <li class="covered" data-hits="1" data-linenumber="122">
6113
- <span class="hits">1</span>
6114
-
6115
6127
  <code class="ruby"> task :check_in =&gt; %w{commit sync}</code>
6116
6128
  </li>
6117
6129
 
6118
- <li class="never" data-hits="" data-linenumber="123">
6130
+ <li class="never" data-hits="" data-linenumber="119">
6119
6131
 
6120
6132
 
6121
6133
  <code class="ruby"></code>
6122
6134
  </li>
6123
6135
 
6124
- <li class="covered" data-hits="1" data-linenumber="124">
6136
+ <li class="covered" data-hits="1" data-linenumber="120">
6125
6137
  <span class="hits">1</span>
6126
6138
 
6127
6139
  <code class="ruby"> task :is_checked_in =&gt; [:is_committed]</code>
6128
6140
  </li>
6129
6141
 
6130
- <li class="never" data-hits="" data-linenumber="125">
6142
+ <li class="never" data-hits="" data-linenumber="121">
6131
6143
 
6132
6144
 
6133
6145
  <code class="ruby"> end</code>
6134
6146
  </li>
6135
6147
 
6136
- <li class="never" data-hits="" data-linenumber="126">
6148
+ <li class="never" data-hits="" data-linenumber="122">
6137
6149
 
6138
6150
 
6139
6151
  <code class="ruby"> end</code>
6140
6152
  </li>
6141
6153
 
6142
- <li class="never" data-hits="" data-linenumber="127">
6154
+ <li class="never" data-hits="" data-linenumber="123">
6143
6155
 
6144
6156
 
6145
6157
  <code class="ruby"> end</code>
6146
6158
  </li>
6147
6159
 
6148
- <li class="never" data-hits="" data-linenumber="128">
6160
+ <li class="never" data-hits="" data-linenumber="124">
6149
6161
 
6150
6162
 
6151
6163
  <code class="ruby">end</code>
data/lib/corundum.rb CHANGED
@@ -26,7 +26,11 @@ module Corundum
26
26
  ),
27
27
  :package_dir => "pkg",
28
28
  :files => nested(:code => nil, :test => nil, :docs => nil),
29
- :file_lists => nested(:code => nil, :test => nil, :docs => nil, :all => nil),
29
+ :file_lists => nested(:code => nil,
30
+ :test => nil,
31
+ :docs => nil,
32
+ :project => nil,
33
+ :all => nil),
30
34
  :rubyforge => nested().nil_fields(:group_id, :package_id,
31
35
  :release_name, :home_page, :project_page),
32
36
  :doc_dir => "rubydoc"
@@ -42,16 +46,11 @@ module Corundum
42
46
  def resolve_configuration
43
47
  load_gemspec
44
48
 
45
- @finished_files.build ||= File::join(
46
- finished_dir, "build_#{gemspec.version}")
47
- @finished_files.qa ||= File::join(
48
- finished_dir, "qa_#{gemspec.version}")
49
- @finished_files.package ||= File::join(
50
- finished_dir, "package_#{gemspec.version}")
51
- @finished_files.release ||= File::join(
52
- finished_dir, "release_#{gemspec.version}")
53
- @finished_files.press ||= File::join(
54
- finished_dir, "press_#{gemspec.version}")
49
+ @finished_files.build ||= File::join( package_dir, "#{gemspec.full_name}.gem")
50
+
51
+ @finished_files.qa ||= File::join( finished_dir, "qa_#{gemspec.version}")
52
+ @finished_files.release ||= File::join( finished_dir, "release_#{gemspec.version}")
53
+ @finished_files.press ||= File::join( finished_dir, "press_#{gemspec.version}")
55
54
 
56
55
  @files.code ||= gemspec.files.grep(%r{^lib/})
57
56
  @files.test ||= gemspec.files.grep(%r{^spec/})
@@ -60,6 +59,7 @@ module Corundum
60
59
  @file_lists.code ||= FileList['lib/**/*.rb']
61
60
  @file_lists.test ||= FileList['test/**/*.rb','spec/**/*.rb','features/**/*.rb']
62
61
  @file_lists.docs ||= FileList['doc/**/*.rb']
62
+ @file_lists.project ||= FileList['Rakefile', gemspec_path]
63
63
  @file_lists.all ||=
64
64
  file_lists.code +
65
65
  file_lists.test +
@@ -92,26 +92,32 @@ module Corundum
92
92
  task :preflight
93
93
 
94
94
  desc "Run quality assurance tasks"
95
- task :qa => :preflight
96
- file finished_files.qa => [:qa, finished_dir] do |task|
95
+ task :qa => [:preflight, finished_files.qa]
96
+ file finished_files.qa =>
97
+ [finished_dir] + file_lists.project + file_lists.code + file_lists.test do |task|
98
+ Rake::Task[:qa].invoke #because I don't want this to be needed if it's not
97
99
  touch task.name
98
100
  end
99
101
 
100
102
  desc "Build the package"
101
- task :build => finished_files.qa
102
- file finished_files.build => [:build, finished_dir] do |task|
103
+ task :build => [finished_files.qa, :preflight, finished_files.build]
104
+ file finished_files.build =>
105
+ [finished_dir] + file_lists.code + file_lists.project do |task|
106
+ Rake::Task[:build].invoke
103
107
  touch task.name
104
108
  end
105
109
 
106
110
  desc "Push package out to the world"
107
- task :release => finished_files.build
108
- file finished_files.release => [:release, finished_dir] do |task|
111
+ task :release => [finished_files.build, :preflight, finished_files.release]
112
+ file finished_files.release => [finished_dir] do |task|
113
+ Rake::Task[:release].invoke
109
114
  touch task.name
110
115
  end
111
116
 
112
117
  desc "Announce publication"
113
- task :press => finished_files.release
114
- file finished_files.press => [:press, finished_dir] do |task|
118
+ task :press => [finished_files.release, finished_files.press]
119
+ file finished_files.press => [finished_dir] do |task|
120
+ Rake::Task[:press].invoke
115
121
  touch task.name
116
122
  end
117
123
  end
@@ -72,7 +72,7 @@ module Corundum
72
72
  task :generate_report => [:preflight, report_path]
73
73
 
74
74
  desc "View coverage in browser"
75
- task :view => :generate_report do
75
+ task :view => report_path do
76
76
  sh "#{browser} #{report_path}"
77
77
  end
78
78
 
@@ -111,10 +111,6 @@ module Corundum
111
111
  mtn_automate("cert", base_revision, "tag", tag)
112
112
  end
113
113
 
114
- task :commit do
115
- sh "mtn commit --branch #{branch} --message \"Automatic commit: gem built at version #{gemspec.version}\""
116
- end
117
-
118
114
  task :sync do
119
115
  mtn_automate("sync")
120
116
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: corundum
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Judson Lester
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-09 00:00:00 Z
13
+ date: 2011-12-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: corundum
@@ -264,7 +264,7 @@ rdoc_options:
264
264
  - --main
265
265
  - doc/README
266
266
  - --title
267
- - corundum-0.0.2 RDoc
267
+ - corundum-0.0.3 RDoc
268
268
  require_paths:
269
269
  - lib/
270
270
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -272,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
272
  requirements:
273
273
  - - ">="
274
274
  - !ruby/object:Gem::Version
275
- hash: -725107619
275
+ hash: 298532273
276
276
  segments:
277
277
  - 0
278
278
  version: "0"