From null+test-unit @ clear-code.com Fri Aug 5 23:39:19 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 03:39:19 +0000 Subject: [test-unit-commit:00058] test-unit/test-unit [master] add --show-detail-immediately option. Message-ID: <20110806034138.E25302C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 03:39:19 +0000 (Sat, 06 Aug 2011) New Revision: 56e85a8dcf8e13f76be6178e052c4baf92b8223a Log: add --show-detail-immediately option. Modified files: lib/test/unit/runner/console.rb lib/test/unit/ui/console/testrunner.rb Modified: lib/test/unit/runner/console.rb (+6 -0) =================================================================== --- lib/test/unit/runner/console.rb 2011-07-21 14:59:41 +0000 (71305fa) +++ lib/test/unit/runner/console.rb 2011-08-06 03:39:19 +0000 (2d0493a) @@ -48,6 +48,12 @@ module Test "(default is auto)") do |max| auto_runner.runner_options[:progress_row_max] = max end + + opts.on("--[no-]show-detail-immediately", + "Shows not passed test details immediately.", + "(default is no)") do |boolean| + auto_runner.runner_options[:show_detail_immediately] = boolean + end end end end Modified: lib/test/unit/ui/console/testrunner.rb (+22 -10) =================================================================== --- lib/test/unit/ui/console/testrunner.rb 2011-07-21 14:59:41 +0000 (08bd348) +++ lib/test/unit/ui/console/testrunner.rb 2011-08-06 03:39:19 +0000 (730625e) @@ -37,6 +37,7 @@ module Test @progress_row = 0 @progress_row_max = @options[:progress_row_max] @progress_row_max ||= guess_progress_row_max + @show_detail_immediately = @options[:show_detail_immediately] @already_outputted = false @indent = 0 @top_level = true @@ -83,6 +84,7 @@ module Test def add_fault(fault) @faults << fault output_progress(fault.single_character_display, fault_color(fault)) + output_progress_in_detail(fault) if @show_detail_immediately @already_outputted = true if fault.critical? end @@ -97,7 +99,8 @@ module Test def finished(elapsed_time) nl if output?(NORMAL) and !output?(VERBOSE) - output_faults + output_faults unless @show_detail_immediately + nl(IMPORTANT_FAULTS_ONLY) change_output_level(IMPORTANT_FAULTS_ONLY) do output_statistics(elapsed_time) end @@ -112,7 +115,6 @@ module Test categorized_faults[:omissions]) output_faults_in_short("Notifications", Notification, categorized_faults[:notifications]) - nl(IMPORTANT_FAULTS_ONLY) end def max_digit(max_number) @@ -145,14 +147,18 @@ module Test def categorize_faults @faults.group_by do |fault| - case fault - when Omission - :omissions - when Notification - :notifications - else - :need_detail_faults - end + categorize_fault(fault) + end + end + + def categorize_fault(fault) + case fault + when Omission + :omissions + when Notification + :notifications + else + :need_detail_faults end end @@ -346,6 +352,12 @@ module Test end end + def output_progress_in_detail(fault) + return if @output_level == SILENT + return unless categorize_fault(fault) == :need_detail_faults + output_fault(fault) + end + def output?(level) (level || @current_output_level) <= @output_level end From null+test-unit @ clear-code.com Fri Aug 5 23:46:34 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 03:46:34 +0000 Subject: [test-unit-commit:00059] test-unit/test-unit [master] update to the correct license information. Message-ID: <20110806035059.408502C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 03:46:34 +0000 (Sat, 06 Aug 2011) New Revision: 568280d5130606d684ddff608749ce73b2a87347 Log: update to the correct license information. Modified files: COPYING Modified: COPYING (+9 -1) =================================================================== --- COPYING 2011-08-06 03:39:19 +0000 (9043404) +++ COPYING 2011-08-06 03:46:34 +0000 (3205abf) @@ -1,4 +1,7 @@ -Ruby is copyrighted free software by Yukihiro Matsumoto . +test-unit is copyrighted free software by Kouhei Sutou +, Ryan Davis +and Nathaniel Talbott . + You can redistribute it and/or modify it under either the terms of the GPL version 2 (see the file GPL), or the conditions below: @@ -54,3 +57,8 @@ version 2 (see the file GPL), or the conditions below: IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +Exceptions +---------- + + * lib/test/unit/diff.rb: PSFL From null+test-unit @ clear-code.com Fri Aug 5 23:48:39 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 03:48:39 +0000 Subject: [test-unit-commit:00060] test-unit/test-unit [master] convert format from RDoc to textile. Message-ID: <20110806035059.4DA112C4738@taiyaki.ru> Kouhei Sutou 2011-08-06 03:48:39 +0000 (Sat, 06 Aug 2011) New Revision: 752e04f1de022b7815090db9d07f05e9a8b0b2ee Log: convert format from RDoc to textile. Renamed files: README.textile (from README.txt) Renamed: README.textile (+16 -12) 89% =================================================================== --- README.txt 2011-08-06 03:46:34 +0000 (020e991) +++ README.textile 2011-08-06 03:48:39 +0000 (f0d0b05) @@ -1,8 +1,8 @@ -= Test::Unit 2.x +h1. Test::Unit 2.x * http://rubyforge.org/projects/test-unit/ -== DESCRIPTION +h2. DESCRIPTION Test::Unit 2.x - Improved version of Test::Unit bundled in Ruby 1.8.x. @@ -11,7 +11,7 @@ Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit bundled in Ruby 1.8.x had not been improved but unbundled Test::Unit (Test::Unit 2.x) will be improved actively. -== FEATURES +h2. FEATURES * Test::Unit 1.2.3 is the original Test::Unit, taken straight from the ruby distribution. It is being @@ -28,15 +28,19 @@ Test::Unit (Test::Unit 2.x) will be improved actively. provides for installing all Test::Unit related gems easily. -== INSTALL +h2. INSTALL - % sudo gem install test-unit +
+% sudo gem install test-unit
+
If you want to use full Test::Unit features: - % sudo gem install test-unit-full +
+% sudo gem install test-unit-full
+
-== LICENSE +h2. LICENSE (The Ruby License) @@ -45,23 +49,23 @@ This software is distributed under the same terms as ruby. Exception: lib/test/unit/diff.rb is a dual license of the Ruby license and PSF license. -== AUTHORS +h2. AUTHORS -=== Active +h3. Active * Kouhei Sutou: The current maintainer * Haruka Yoshihara: Data driven test supports. -=== Inactive +h3. Inactive * Nathaniel Talbott: The original author * Ryan Davis: The second maintainer -=== Images +h3. Images * Mayu & Co.: kinotan icons: http://cocooooooon.com/kinotan/ -== Thanks +h2. Thanks * Daniel Berger: Suggestions and bug reports. * Designing Patterns: Suggestions. From null+test-unit @ clear-code.com Fri Aug 5 23:50:04 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 03:50:04 +0000 Subject: [test-unit-commit:00061] test-unit/test-unit [master] standardize notation. Message-ID: <20110806035221.BD3C72C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 03:50:04 +0000 (Sat, 06 Aug 2011) New Revision: 68c58436af3330405180b7793e194c6ea171f698 Log: standardize notation. Modified files: README.textile Modified: README.textile (+11 -11) =================================================================== --- README.textile 2011-08-06 03:48:39 +0000 (f0d0b05) +++ README.textile 2011-08-06 03:50:04 +0000 (babdd51) @@ -1,17 +1,17 @@ -h1. Test::Unit 2.x +h1. test-unit 2 -* http://rubyforge.org/projects/test-unit/ +http://rubyforge.org/projects/test-unit/ -h2. DESCRIPTION +h2. Description -Test::Unit 2.x - Improved version of Test::Unit bundled in -Ruby 1.8.x. +test-unit 2 - Improved version of Test::Unit bundled in Ruby +1.8.x. Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit bundled in Ruby 1.8.x had not been improved but unbundled -Test::Unit (Test::Unit 2.x) will be improved actively. +Test::Unit (test-unit 2) will be improved actively. -h2. FEATURES +h2. Features * Test::Unit 1.2.3 is the original Test::Unit, taken straight from the ruby distribution. It is being @@ -19,7 +19,7 @@ h2. FEATURES stand-alone package. (The test framework in ruby is going to radically change very soon). -* Test::Unit 2.x will be improved actively and may break +* test-unit 2 will be improved actively and may break compatiblity with Test::Unit 1.2.3. (We will not hope it if it isn't needed.) @@ -28,7 +28,7 @@ h2. FEATURES provides for installing all Test::Unit related gems easily. -h2. INSTALL +h2. Install
 % sudo gem install test-unit
@@ -40,7 +40,7 @@ If you want to use full Test::Unit features:
 % sudo gem install test-unit-full
 
-h2. LICENSE +h2. License (The Ruby License) @@ -49,7 +49,7 @@ This software is distributed under the same terms as ruby. Exception: lib/test/unit/diff.rb is a dual license of the Ruby license and PSF license. -h2. AUTHORS +h2. Authors h3. Active From null+test-unit @ clear-code.com Sat Aug 6 00:00:02 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:00:02 +0000 Subject: [test-unit-commit:00062] test-unit/test-unit [master] move html/ and images/ to doc/html/. Message-ID: <20110806041442.C71A72C4738@taiyaki.ru> Kouhei Sutou 2011-08-06 04:00:02 +0000 (Sat, 06 Aug 2011) New Revision: d54049f53f1b871bba90452daac501130e84f295 Log: move html/ and images/ to doc/html/. Renamed files: doc/html/bar.png (from html/bar.png) doc/html/bar.svg (from html/bar.svg) doc/html/color-diff.png (from images/color-diff.png) doc/html/developer.png (from html/developer.png) doc/html/developer.svg (from html/developer.svg) doc/html/famfamfam-logo.png (from html/famfamfam-logo.png) doc/html/favicon.ico (from html/favicon.ico) doc/html/favicon.png (from html/favicon.png) doc/html/favicon.svg (from html/favicon.svg) doc/html/github-logo.png (from html/github-logo.png) doc/html/heading-mark.png (from html/heading-mark.png) doc/html/heading-mark.svg (from html/heading-mark.svg) doc/html/index.html (from html/index.html) doc/html/index.html.ja (from html/index.html.ja) doc/html/install.png (from html/install.png) doc/html/install.svg (from html/install.svg) doc/html/jp.png (from html/jp.png) doc/html/kinotan-failure.png (from html/kinotan-failure.png) doc/html/kinotan-pass.png (from html/kinotan-pass.png) doc/html/logo.png (from html/logo.png) doc/html/logo.svg (from html/logo.svg) doc/html/reference.png (from html/reference.png) doc/html/rubyforge.png (from html/rubyforge.png) doc/html/tango-logo.png (from html/tango-logo.png) doc/html/test-unit.css (from html/test-unit.css) doc/html/tutorial.png (from html/tutorial.png) doc/html/tutorial.svg (from html/tutorial.svg) doc/html/us.png (from html/us.png) Renamed: doc/html/bar.png (+0 -0) 100% =================================================================== Renamed: doc/html/bar.svg (+0 -0) 100% =================================================================== Renamed: doc/html/color-diff.png (+0 -0) 100% =================================================================== Renamed: doc/html/developer.png (+0 -0) 100% =================================================================== Renamed: doc/html/developer.svg (+0 -0) 100% =================================================================== Renamed: doc/html/famfamfam-logo.png (+0 -0) 100% =================================================================== Renamed: doc/html/favicon.ico (+0 -0) 100% =================================================================== Renamed: doc/html/favicon.png (+0 -0) 100% =================================================================== Renamed: doc/html/favicon.svg (+0 -0) 100% =================================================================== Renamed: doc/html/github-logo.png (+0 -0) 100% =================================================================== Renamed: doc/html/heading-mark.png (+0 -0) 100% =================================================================== Renamed: doc/html/heading-mark.svg (+0 -0) 100% =================================================================== Renamed: doc/html/index.html (+0 -0) 100% =================================================================== Renamed: doc/html/index.html.ja (+0 -0) 100% =================================================================== Renamed: doc/html/install.png (+0 -0) 100% =================================================================== Renamed: doc/html/install.svg (+0 -0) 100% =================================================================== Renamed: doc/html/jp.png (+0 -0) 100% =================================================================== Renamed: doc/html/kinotan-failure.png (+0 -0) 100% =================================================================== Renamed: doc/html/kinotan-pass.png (+0 -0) 100% =================================================================== Renamed: doc/html/logo.png (+0 -0) 100% =================================================================== Renamed: doc/html/logo.svg (+0 -0) 100% =================================================================== Renamed: doc/html/reference.png (+0 -0) 100% =================================================================== Renamed: doc/html/rubyforge.png (+0 -0) 100% =================================================================== Renamed: doc/html/tango-logo.png (+0 -0) 100% =================================================================== Renamed: doc/html/test-unit.css (+0 -0) 100% =================================================================== Renamed: doc/html/tutorial.png (+0 -0) 100% =================================================================== Renamed: doc/html/tutorial.svg (+0 -0) 100% =================================================================== Renamed: doc/html/us.png (+0 -0) 100% =================================================================== From null+test-unit @ clear-code.com Fri Aug 5 23:59:20 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 03:59:20 +0000 Subject: [test-unit-commit:00063] test-unit/test-unit [master] convert format for news from RDoc to textile. Message-ID: <20110806041442.BC1112C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 03:59:20 +0000 (Sat, 06 Aug 2011) New Revision: 29c9933c9a9ca44fa1757e55c90eca862110e988 Log: convert format for news from RDoc to textile. Renamed files: doc/text/news.textile (from History.txt) Renamed: doc/text/news.textile (+16 -14) 95% =================================================================== --- History.txt 2011-08-06 03:50:04 +0000 (fbadcd1) +++ doc/text/news.textile 2011-08-06 03:59:20 +0000 (e74a6e1) @@ -1,4 +1,6 @@ -=== 2.3.0 / 2011-04-17 +h1. News + +h2. 2.3.0 / 2011-04-17 * 13 enhancements * improve Hash key sorting for diff. @@ -21,7 +23,7 @@ * Daniel Berger * Haruka Yoshihara -=== 2.2.0 / 2011-02-14 +h2. 2.2.0 / 2011-02-14 * 22 enhancements * [#28808] accept String as delta for assert_in_delta. @@ -63,12 +65,12 @@ * Daniel Berger * Nobuyoshi Nakada -=== 2.1.2 / 2010-11-25 +h2. 2.1.2 / 2010-11-25 * 1 enhancement * support auto runner prepare hook. -=== 2.1.1 / 2010-07-29 +h2. 2.1.1 / 2010-07-29 * 1 bug fix * [test-unit-users-en:00026] re-work tap runner. @@ -86,7 +88,7 @@ * Thanks * Daniel Berger -=== 2.0.8 / 2010-06-02 +h2. 2.0.8 / 2010-06-02 * 5 major enchancements * collect *_test.rb and *-test.rb files as test files. @@ -109,7 +111,7 @@ * Florian Frank * David MARCHALAND -=== 2.0.7 / 2010-03-09 +h2. 2.0.7 / 2010-03-09 * 4 major enhancements * detect redefined test methods. @@ -137,7 +139,7 @@ * Bob Saveland * Champak Ch -=== 2.0.6 / 2010-01-09 +h2. 2.0.6 / 2010-01-09 * 3 major enhancements * [#27380] Declarative syntax? [Daniel Berger] @@ -163,7 +165,7 @@ * David MARCHALAND * Daniel Berger -=== 2.0.5 / 2009-10-18 +h2. 2.0.5 / 2009-10-18 * 1 bug fixes * [#27314] fix diff may raise an exception. [Erik Hollensbe] @@ -171,7 +173,7 @@ * Thanks * Erik Hollensbe -=== 2.0.4 / 2009-10-17 +h2. 2.0.4 / 2009-10-17 * 4 major enhancements * use ~/.test-unit.yml as global configuration file. @@ -193,7 +195,7 @@ * Thanks * Mike Pomraning -=== 2.0.3 / 2009-07-19 +h2. 2.0.3 / 2009-07-19 * 6 major enhancements * add assert_predicate. @@ -219,7 +221,7 @@ * Daniel Berger * Angelo Lakra -=== 2.0.2 / 2008-12-21 +h2. 2.0.2 / 2008-12-21 * 2 major enhancements @@ -238,7 +240,7 @@ * Daniel Berger * Bill Lear -=== 2.0.1 / 2008-11-09 +h2. 2.0.1 / 2008-11-09 * 19 major enhancements @@ -268,7 +270,7 @@ * Daniel Berger * Designing Patterns -=== 2.0.0 / 2008-06-18 +h2. 2.0.0 / 2008-06-18 * 15 major enhancements @@ -295,7 +297,7 @@ * split FOX runner as another gem. * split Tk runner as another gem. -=== 1.2.3 / 2008-02-25 +h2. 1.2.3 / 2008-02-25 * 1 major enhancement From null+test-unit @ clear-code.com Sat Aug 6 00:12:22 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:12:22 +0000 Subject: [test-unit-commit:00064] test-unit/test-unit [master] [doc] fix markup. Message-ID: <20110806041442.DF00F2C473B@taiyaki.ru> Kouhei Sutou 2011-08-06 04:12:22 +0000 (Sat, 06 Aug 2011) New Revision: f91b63b733f4a6e52b0807abdb01768dc1dc98d4 Log: [doc] fix markup. Modified files: doc/text/news.textile Modified: doc/text/news.textile (+1 -1) =================================================================== --- doc/text/news.textile 2011-08-06 04:00:21 +0000 (e74a6e1) +++ doc/text/news.textile 2011-08-06 04:12:22 +0000 (5607cfa) @@ -185,7 +185,7 @@ h2. 2.0.4 / 2009-10-17 * 4 minor enhancements * improve verbose mode output format. (use indent) * support NOT_PASS_THROUGH_EXCEPTIONS. - * support arguments option in #{runner}_options. + * support arguments option in @#{runner}@_options. * TC_ -> Test in sample test case name. * 1 bug fixes From null+test-unit @ clear-code.com Sat Aug 6 00:00:21 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:00:21 +0000 Subject: [test-unit-commit:00065] test-unit/test-unit [master] update ignore files. Message-ID: <20110806041442.D2E2B2C473A@taiyaki.ru> Kouhei Sutou 2011-08-06 04:00:21 +0000 (Sat, 06 Aug 2011) New Revision: d0d51afb8a598f47ac078960505ca85f29a3adb5 Log: update ignore files. Modified files: .gitignore Modified: .gitignore (+1 -1) =================================================================== --- .gitignore 2011-08-06 04:00:02 +0000 (473fec8) +++ .gitignore 2011-08-06 04:00:21 +0000 (4b4d945) @@ -1,2 +1,2 @@ -/doc/ +/doc/reference/ /pkg/ From null+test-unit @ clear-code.com Sat Aug 6 00:28:12 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:28:12 +0000 Subject: [test-unit-commit:00066] test-unit/test-unit [master] [doc] style for reference manual. Message-ID: <20110806043056.401202C4738@taiyaki.ru> Kouhei Sutou 2011-08-06 04:28:12 +0000 (Sat, 06 Aug 2011) New Revision: b32ebce2b902bd2fea138601d25352ea29e8b5b9 Log: [doc] style for reference manual. Modified files: doc/html/test-unit.css Modified: doc/html/test-unit.css (+6 -5) =================================================================== --- doc/html/test-unit.css 2011-08-06 04:28:02 +0000 (84aaed0) +++ doc/html/test-unit.css 2011-08-06 04:28:12 +0000 (0ea8d3f) @@ -1,8 +1,8 @@ html, body { - margin: 0px; - padding: 0px; + margin: 0px !important; + padding: 0px !important; color: black !important; background-color: white !important; } @@ -24,7 +24,8 @@ div.header padding: 0px; } -div.header div.title +div.header div.title, +div.header h1.title { background: url(logo.png) no-repeat; font-family: sans-serif; @@ -131,7 +132,7 @@ ul.menu li ul.menu li a { - color: #fed08e; + color: #f6ede0; text-decoration: none; padding-left: 20px; } @@ -143,7 +144,7 @@ ul.menu li a:hover ul.menu li a:visited { - color: #ffb84f; + color: #f6ede0; } ul.menu li#menu-reference From null+test-unit @ clear-code.com Sat Aug 6 00:28:02 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:28:02 +0000 Subject: [test-unit-commit:00067] test-unit/test-unit [master] [doc] add templates for reference manual. Message-ID: <20110806043056.3568D2C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 04:28:02 +0000 (Sat, 06 Aug 2011) New Revision: 9c9efccab498bf8a3dce1df634b1df05af11c187 Log: [doc] add templates for reference manual. Added files: doc/templates/footer.en.html.erb doc/templates/footer.ja.html.erb doc/templates/head.en.html.erb doc/templates/head.ja.html.erb doc/templates/header.en.html.erb doc/templates/header.ja.html.erb Added: doc/templates/footer.en.html.erb (+38 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/footer.en.html.erb 2011-08-06 04:28:02 +0000 (965043d) @@ -0,0 +1,38 @@ + + + Added: doc/templates/footer.ja.html.erb (+33 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/footer.ja.html.erb 2011-08-06 04:28:02 +0000 (38681a8) @@ -0,0 +1,33 @@ + + + Added: doc/templates/head.en.html.erb (+4 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/head.en.html.erb 2011-08-06 04:28:02 +0000 (5da7f0c) @@ -0,0 +1,4 @@ + + + + <%= title %> - test-unit Added: doc/templates/head.ja.html.erb (+4 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/head.ja.html.erb 2011-08-06 04:28:02 +0000 (5da7f0c) @@ -0,0 +1,4 @@ + + + + <%= title %> - test-unit Added: doc/templates/header.en.html.erb (+19 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/header.en.html.erb 2011-08-06 04:28:02 +0000 (c06bc85) @@ -0,0 +1,19 @@ + + +
Added: doc/templates/header.ja.html.erb (+20 -0) 100644 =================================================================== --- /dev/null +++ doc/templates/header.ja.html.erb 2011-08-06 04:28:02 +0000 (e6f1ee5) @@ -0,0 +1,20 @@ + + +
From null+test-unit @ clear-code.com Sat Aug 6 00:28:58 2011 From: null+test-unit @ clear-code.com (null+test-unit @ clear-code.com) Date: Sat, 06 Aug 2011 04:28:58 +0000 Subject: [test-unit-commit:00068] test-unit/test-unit [master] use Jeweler. drop Hoe!!! Message-ID: <20110806043115.EC3142C4711@taiyaki.ru> Kouhei Sutou 2011-08-06 04:28:58 +0000 (Sat, 06 Aug 2011) New Revision: dee623f1239b719c404087327681e62fa1b507bf Log: use Jeweler. drop Hoe!!! Removed files: Manifest.txt Modified files: Rakefile Deleted: Manifest.txt (+0 -118) 100644 =================================================================== --- Manifest.txt 2011-08-06 04:28:35 +0000 (61adec0) +++ /dev/null @@ -1,118 +0,0 @@ -COPYING -GPL -History.txt -Manifest.txt -PSFL -README.txt -Rakefile -TODO -bin/testrb -html/bar.png -html/bar.svg -html/developer.png -html/developer.svg -html/famfamfam-logo.png -html/favicon.ico -html/favicon.png -html/favicon.svg -html/github-logo.png -html/heading-mark.png -html/heading-mark.svg -html/index.html -html/index.html.ja -html/install.png -html/install.svg -html/jp.png -html/kinotan-failure.png -html/kinotan-pass.png -html/logo.png -html/logo.svg -html/reference.png -html/rubyforge.png -html/tango-logo.png -html/test-unit.css -html/tutorial.png -html/tutorial.svg -html/us.png -images/color-diff.png -lib/test/unit.rb -lib/test/unit/assertionfailederror.rb -lib/test/unit/assertions.rb -lib/test/unit/attribute.rb -lib/test/unit/autorunner.rb -lib/test/unit/collector.rb -lib/test/unit/collector/descendant.rb -lib/test/unit/collector/dir.rb -lib/test/unit/collector/load.rb -lib/test/unit/collector/objectspace.rb -lib/test/unit/collector/xml.rb -lib/test/unit/color-scheme.rb -lib/test/unit/color.rb -lib/test/unit/data.rb -lib/test/unit/diff.rb -lib/test/unit/error.rb -lib/test/unit/exceptionhandler.rb -lib/test/unit/failure.rb -lib/test/unit/fixture.rb -lib/test/unit/notification.rb -lib/test/unit/omission.rb -lib/test/unit/pending.rb -lib/test/unit/priority.rb -lib/test/unit/runner/console.rb -lib/test/unit/runner/emacs.rb -lib/test/unit/runner/tap.rb -lib/test/unit/runner/xml.rb -lib/test/unit/testcase.rb -lib/test/unit/testresult.rb -lib/test/unit/testsuite.rb -lib/test/unit/testsuitecreator.rb -lib/test/unit/ui/console/outputlevel.rb -lib/test/unit/ui/console/testrunner.rb -lib/test/unit/ui/emacs/testrunner.rb -lib/test/unit/ui/tap/testrunner.rb -lib/test/unit/ui/testrunner.rb -lib/test/unit/ui/testrunnermediator.rb -lib/test/unit/ui/testrunnerutilities.rb -lib/test/unit/ui/xml/testrunner.rb -lib/test/unit/util/backtracefilter.rb -lib/test/unit/util/method-owner-finder.rb -lib/test/unit/util/observable.rb -lib/test/unit/util/output.rb -lib/test/unit/util/procwrapper.rb -lib/test/unit/version.rb -sample/adder.rb -sample/subtracter.rb -sample/test_adder.rb -sample/test_subtracter.rb -sample/test_user.rb -test/collector/test-descendant.rb -test/collector/test-load.rb -test/collector/test_dir.rb -test/collector/test_objectspace.rb -test/fixtures/plus.csv -test/run-test.rb -test/test-assertions.rb -test/test-attribute.rb -test/test-color-scheme.rb -test/test-color.rb -test/test-data.rb -test/test-diff.rb -test/test-emacs-runner.rb -test/test-fixture.rb -test/test-notification.rb -test/test-omission.rb -test/test-pending.rb -test/test-priority.rb -test/test-testcase.rb -test/test_error.rb -test/test_failure.rb -test/test_testresult.rb -test/test_testsuite.rb -test/testunit-test-util.rb -test/ui/test_tap.rb -test/ui/test_testrunmediator.rb -test/util/test-method-owner-finder.rb -test/util/test-output.rb -test/util/test_backtracefilter.rb -test/util/test_observable.rb -test/util/test_procwrapper.rb Modified: Rakefile (+302 -27) =================================================================== --- Rakefile 2011-08-06 04:28:35 +0000 (fd40c8a) +++ Rakefile 2011-08-06 04:28:58 +0000 (c8de802) @@ -2,51 +2,326 @@ Encoding.default_internal = "UTF-8" if defined?(Encoding.default_internal) -require 'rubygems' -gem 'rdoc' -require 'hoe' -require './lib/test/unit/version.rb' +require "erb" +require "rubygems" +require "rake/clean" +require "yard" +require "jeweler" +require "./lib/test/unit/version.rb" -ENV["NODOT"] = "yes" +def cleanup_white_space(entry) + entry.gsub(/(\A\n+|\n+\z)/, '') + "\n" +end -version = Test::Unit::VERSION +version = Test::Unit::VERSION.dup ENV["VERSION"] = version -project = Hoe.spec('test-unit') do - Hoe::Test::SUPPORTED_TEST_FRAMEWORKS[:testunit2] = "test/run-test.rb" - self.version = version - developer('Kouhei Sutou', 'kou @ cozmixng.org') - developer('Ryan Davis', 'ryand-ruby @ zenspider.com') +spec = nil +Jeweler::Tasks.new do |_spec| + spec = _spec + spec.name = "test-unit" + spec.version = version + spec.rubyforge_project = "test-unit" + spec.homepage = "http://test-unit.rubyforge.org/" + spec.authors = ["Kouhei Sutou", "Haruka Yoshihara"] + spec.email = ["kou @ cozmixng.org", "yoshihara @ clear-code.com"] + entries = File.read("README.textile").split(/^h2\.\s(.*)$/) + description = cleanup_white_space(entries[entries.index("Description") + 1]) + spec.summary, spec.description, = description.split(/\n\n+/, 3) + spec.license = "Ruby's and PSFL (lib/test/unit/diff.rb)" + spec.files = FileList["lib/**/*.rb", + "bin/*", + "sample/*.rb", + "README.textile", + "TODO", + "Rakefile", + "COPYING", + "GPL", + "PSFL"] + spec.test_files = FileList["test/**/*.rb"] +end + +Rake::Task["release"].prerequisites.clear +Jeweler::RubygemsDotOrgTasks.new do +end + +reference_base_dir = Pathname.new("doc/reference") +doc_en_dir = reference_base_dir + "en" +html_base_dir = Pathname.new("doc/html") +html_reference_dir = html_base_dir + spec.name +YARD::Rake::YardocTask.new do |task| + task.options += ["--title", spec.name] + # task.options += ["--charset", "UTF-8"] + task.options += ["--readme", "README.textile"] + task.options += ["--files", "doc/text/**/*"] + task.options += ["--output-dir", doc_en_dir.to_s] + task.options += ["--charset", "utf-8"] + task.files += FileList["lib/**/*.rb"] +end - # Ex-Parrot: - # developer('Nathaniel Talbott', 'nathaniel @ talbott.ws') +task :yard do + doc_en_dir.find do |path| + next if path.extname != ".html" + html = path.read + html = html.gsub(/