activesambaldap 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/NEWS.en +20 -18
  2. data/NEWS.ja +23 -21
  3. data/README.en +122 -95
  4. data/README.ja +125 -98
  5. data/Rakefile +29 -64
  6. data/bin/asl-groupadd +1 -1
  7. data/bin/asl-groupadd.help +1 -0
  8. data/bin/asl-groupdel +1 -1
  9. data/bin/asl-groupdel.help +1 -0
  10. data/bin/asl-groupmod +1 -1
  11. data/bin/asl-groupmod.help +1 -0
  12. data/bin/asl-groupshow +1 -1
  13. data/bin/asl-groupshow.help +1 -0
  14. data/bin/asl-passwd +1 -1
  15. data/bin/asl-passwd.help +1 -0
  16. data/bin/asl-populate +2 -2
  17. data/bin/asl-populate.help +1 -0
  18. data/bin/asl-purge +1 -1
  19. data/bin/asl-purge.help +1 -0
  20. data/bin/asl-samba-computeradd +1 -1
  21. data/bin/asl-samba-computeradd.help +1 -0
  22. data/bin/asl-samba-groupadd +1 -1
  23. data/bin/asl-samba-groupadd.help +1 -0
  24. data/bin/asl-samba-groupdel +1 -1
  25. data/bin/asl-samba-groupdel.help +1 -0
  26. data/bin/asl-samba-groupmod +1 -1
  27. data/bin/asl-samba-groupmod.help +1 -0
  28. data/bin/asl-samba-useradd +1 -1
  29. data/bin/asl-samba-useradd.help +1 -0
  30. data/bin/asl-samba-userdel +1 -1
  31. data/bin/asl-samba-userdel.help +1 -0
  32. data/bin/asl-samba-usermod +1 -1
  33. data/bin/asl-samba-usermod.help +1 -0
  34. data/bin/asl-useradd +1 -1
  35. data/bin/asl-useradd.help +6 -4
  36. data/bin/asl-userdel +1 -1
  37. data/bin/asl-userdel.help +1 -0
  38. data/bin/asl-usermod +1 -1
  39. data/bin/asl-usermod.help +2 -0
  40. data/bin/asl-usershow +1 -1
  41. data/bin/asl-usershow.help +1 -0
  42. data/data/locale/ja/LC_MESSAGES/active-samba-ldap.mo +0 -0
  43. data/lib/active_samba_ldap/version.rb +1 -1
  44. data/lib/active_samba_ldap.rb +1 -1
  45. data/po/ja/active-samba-ldap.po +5 -5
  46. data/rails/{plugin/active_samba_ldap/README → README} +0 -0
  47. data/rails/{plugin/active_samba_ldap/init.rb → init.rb} +1 -1
  48. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/scaffold_active_samba_ldap_generator.rb +0 -0
  49. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/computer.rb +0 -0
  50. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/dc.rb +0 -0
  51. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/group.rb +0 -0
  52. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/idmap.rb +0 -0
  53. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/ldap.yml +0 -0
  54. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/ou.rb +0 -0
  55. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_controller.rb +0 -0
  56. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_helper.rb +0 -0
  57. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_index.rhtml +0 -0
  58. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_populate.rhtml +0 -0
  59. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_purge.rhtml +0 -0
  60. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/unix_id_pool.rb +0 -0
  61. data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/user.rb +0 -0
  62. data/test/asl-test-utils.rb +2 -2
  63. data/test/test_asl_usershow.rb +2 -2
  64. data/test/test_password.rb +2 -2
  65. data/test/test_user_home_directory.rb +2 -2
  66. data/test-unit/History.txt +76 -1
  67. data/test-unit/README.txt +32 -12
  68. data/test-unit/Rakefile +19 -1
  69. data/test-unit/TODO +5 -0
  70. data/test-unit/lib/test/unit/assertions.rb +515 -88
  71. data/test-unit/lib/test/unit/autorunner.rb +93 -14
  72. data/test-unit/lib/test/unit/collector/load.rb +1 -1
  73. data/test-unit/lib/test/unit/collector.rb +1 -1
  74. data/test-unit/lib/test/unit/color-scheme.rb +86 -0
  75. data/test-unit/lib/test/unit/color.rb +40 -5
  76. data/test-unit/lib/test/unit/diff.rb +14 -0
  77. data/test-unit/lib/test/unit/fixture.rb +7 -16
  78. data/test-unit/lib/test/unit/notification.rb +9 -0
  79. data/test-unit/lib/test/unit/omission.rb +14 -0
  80. data/test-unit/lib/test/unit/pending.rb +16 -0
  81. data/test-unit/lib/test/unit/priority.rb +38 -3
  82. data/test-unit/lib/test/unit/runner/console.rb +8 -2
  83. data/test-unit/lib/test/unit/testcase.rb +263 -12
  84. data/test-unit/lib/test/unit/ui/console/testrunner.rb +58 -30
  85. data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
  86. data/test-unit/lib/test/unit/version.rb +1 -1
  87. data/test-unit/lib/test/unit.rb +62 -0
  88. data/test-unit/sample/test_user.rb +22 -0
  89. data/test-unit/test/collector/{test_descendant.rb → test-descendant.rb} +0 -0
  90. data/test-unit/test/collector/{test_load.rb → test-load.rb} +1 -1
  91. data/test-unit/test/{test_attribute.rb → test-attribute.rb} +0 -0
  92. data/test-unit/test/test-color-scheme.rb +56 -0
  93. data/test-unit/test/{test_color.rb → test-color.rb} +10 -0
  94. data/test-unit/test/{test_diff.rb → test-diff.rb} +0 -0
  95. data/test-unit/test/{test_emacs_runner.rb → test-emacs-runner.rb} +0 -0
  96. data/test-unit/test/test-fixture.rb +287 -0
  97. data/test-unit/test/{test_notification.rb → test-notification.rb} +4 -4
  98. data/test-unit/test/{test_omission.rb → test-omission.rb} +6 -6
  99. data/test-unit/test/{test_pending.rb → test-pending.rb} +12 -6
  100. data/test-unit/test/{test_priority.rb → test-priority.rb} +30 -0
  101. data/test-unit/test/{test_testcase.rb → test-testcase.rb} +100 -4
  102. data/test-unit/test/test_assertions.rb +462 -73
  103. data/test-unit/test/{testunit_test_util.rb → testunit-test-util.rb} +4 -2
  104. data/test-unit/test/ui/test_testrunmediator.rb +1 -1
  105. data/test-unit/test/util/test-method-owner-finder.rb +38 -0
  106. metadata +69 -79
  107. data/test-unit/test/test_fixture.rb +0 -275
@@ -30,7 +30,7 @@ unless Process.uid.zero?
30
30
  exit 1
31
31
  end
32
32
 
33
- ActiveSambaLdap::Base.establish_connection("update")
33
+ ActiveSambaLdap::Base.setup_connection("update")
34
34
 
35
35
  class Group < ActiveSambaLdap::Group
36
36
  ldap_mapping :recommended_classes => []
@@ -3,6 +3,7 @@ Usage: asl-samba-groupmod [options] GROUP_NAME
3
3
  --add-members
4
4
  -d=MEMBER1,MEMBER2,MEBMER3 delete members (comma delimited)
5
5
  --delete-members
6
+
6
7
  Common options:
7
8
  --config=CONFIG Specify configuration file
8
9
  Default configuration files:
@@ -34,7 +34,7 @@ unless Process.uid.zero?
34
34
  exit 1
35
35
  end
36
36
 
37
- ActiveSambaLdap::Base.establish_connection("update")
37
+ ActiveSambaLdap::Base.setup_connection("update")
38
38
 
39
39
 
40
40
  class User < ActiveSambaLdap::User
@@ -1,6 +1,7 @@
1
1
  Usage: asl-samba-useradd [options] USER_NAME
2
2
  -o, --ou=OU add the user in the organizational unit OU
3
3
  (relative to the user suffix)
4
+
4
5
  Common options:
5
6
  --config=CONFIG Specify configuration file
6
7
  Default configuration files:
@@ -22,7 +22,7 @@ unless Process.uid.zero?
22
22
  exit 1
23
23
  end
24
24
 
25
- ActiveSambaLdap::Base.establish_connection("update")
25
+ ActiveSambaLdap::Base.setup_connection("update")
26
26
 
27
27
  class User < ActiveSambaLdap::User
28
28
  ldap_mapping :recommended_classes => []
@@ -1,4 +1,5 @@
1
1
  Usage: asl-samba-userdel [options] USER_NAME
2
+
2
3
  Common options:
3
4
  --config=CONFIG Specify configuration file
4
5
  Default configuration files:
@@ -27,7 +27,7 @@ else
27
27
  exit 1
28
28
  end
29
29
 
30
- ActiveSambaLdap::Base.establish_connection("update")
30
+ ActiveSambaLdap::Base.setup_connection("update")
31
31
 
32
32
  class User < ActiveSambaLdap::User
33
33
  ldap_mapping :recommended_classes => []
@@ -3,6 +3,7 @@ Usage: asl-samba-usermod [options] USER_NAME
3
3
  (otherwise, Windows user)
4
4
  (false)
5
5
  -g, --gid=GID gid
6
+
6
7
  Common options:
7
8
  --config=CONFIG Specify configuration file
8
9
  Default configuration files:
data/bin/asl-useradd CHANGED
@@ -145,7 +145,7 @@ unless Process.uid.zero?
145
145
  exit 1
146
146
  end
147
147
 
148
- ActiveSambaLdap::Base.establish_connection("update")
148
+ ActiveSambaLdap::Base.setup_connection("update")
149
149
 
150
150
 
151
151
  class User < ActiveSambaLdap::User
data/bin/asl-useradd.help CHANGED
@@ -1,17 +1,17 @@
1
1
  Usage: asl-useradd [options] USER_NAME
2
2
  -o, --ou=OU add the user in the organizational unit OU
3
3
  (relative to the user suffix)
4
- -c, --[no-]computer-account is a Windows Workstation
4
+ --[no-]computer-account is a Windows Workstation
5
5
  (otherwise, Windows user)
6
6
  (false)
7
7
  -u, --uid=UID uid
8
8
  -g, --gid=GID gid
9
- -G, --groups=GID1,GID2,GID3 supplementary groups (comma separated)
9
+ --groups=GID1,GID2,GID3 supplementary groups (comma separated)
10
10
  --[no-]create-group create a group for the user
11
11
  (true)
12
- --comment=COMMENT set the GECOS field for the new user account
12
+ -c, --comment=COMMENT set the GECOS field for the new user account
13
13
  -s, --shell=SHELL shell
14
- --given-name=NAME given name
14
+ -G, --given-name=NAME given name
15
15
  -N, --common-name=NAME common name
16
16
  -S, --surname=NAME surname
17
17
  -d, --home-directory=HOME_DIR home directory
@@ -22,6 +22,7 @@ Usage: asl-useradd [options] USER_NAME
22
22
  --skeleton-directory
23
23
  --time=TIME wait TIME seconds before exiting
24
24
  (0)
25
+
25
26
  For samba accounts:
26
27
  -e, --expire-date=DATE expire date
27
28
  -C, --[no-]can-change-password can change password
@@ -36,6 +37,7 @@ For samba accounts:
36
37
  (profile directory, like '\\PDC\profiles\user')
37
38
  --samba-account-flags=FLAGS sambaAcctFlags
38
39
  (samba account control bits, like '[NDHTUMWSLXI]')
40
+
39
41
  Common options:
40
42
  --config=CONFIG Specify configuration file
41
43
  Default configuration files:
data/bin/asl-userdel CHANGED
@@ -43,7 +43,7 @@ unless Process.uid.zero?
43
43
  exit 1
44
44
  end
45
45
 
46
- ActiveSambaLdap::Base.establish_connection("update")
46
+ ActiveSambaLdap::Base.setup_connection("update")
47
47
 
48
48
  class User < ActiveSambaLdap::User
49
49
  ldap_mapping
data/bin/asl-userdel.help CHANGED
@@ -6,6 +6,7 @@ Usage: asl-userdel [options] USER_NAME
6
6
  (false)
7
7
  -i, --[no-]interactive do interactively
8
8
  (false)
9
+
9
10
  Common options:
10
11
  --config=CONFIG Specify configuration file
11
12
  Default configuration files:
data/bin/asl-usermod CHANGED
@@ -141,7 +141,7 @@ else
141
141
  exit 1
142
142
  end
143
143
 
144
- ActiveSambaLdap::Base.establish_connection("update")
144
+ ActiveSambaLdap::Base.setup_connection("update")
145
145
 
146
146
  class User < ActiveSambaLdap::User
147
147
  ldap_mapping
data/bin/asl-usermod.help CHANGED
@@ -18,6 +18,7 @@ Usage: asl-usermod [options] USER_NAME
18
18
  --given-name=NAME given name
19
19
  -N, --common-name=NAME common name
20
20
  -S, --surname=NAME surname
21
+
21
22
  For samba accounts:
22
23
  -e, --expire-date=DATE expire date
23
24
  -C, --[no-]can-change-password can change password
@@ -34,6 +35,7 @@ For samba accounts:
34
35
  (samba account control bits, like '[NDHTUMWSLXI]')
35
36
  -D, --[no-]disable-user disable this user
36
37
  -E, --[no-]enable-user enable this user
38
+
37
39
  Common options:
38
40
  --config=CONFIG Specify configuration file
39
41
  Default configuration files:
data/bin/asl-usershow CHANGED
@@ -17,7 +17,7 @@ else
17
17
  exit 1
18
18
  end
19
19
 
20
- ActiveSambaLdap::Base.establish_connection("reference")
20
+ ActiveSambaLdap::Base.setup_connection("reference")
21
21
 
22
22
  class User < ActiveSambaLdap::User
23
23
  ldap_mapping
@@ -1,4 +1,5 @@
1
1
  Usage: asl-usershow [options] USER_NAME
2
+
2
3
  Common options:
3
4
  --config=CONFIG Specify configuration file
4
5
  Default configuration files:
@@ -1,3 +1,3 @@
1
1
  module ActiveSambaLdap
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -8,7 +8,7 @@ require_gem_if_need = Proc.new do |library_name, gem_name, *options|
8
8
  end
9
9
  end
10
10
 
11
- required_active_ldap_version = ">= 1.0.1"
11
+ required_active_ldap_version = ">= 1.1.0"
12
12
  require_gem_if_need.call("active_ldap", "activeldap",
13
13
  required_active_ldap_version)
14
14
 
@@ -1,15 +1,15 @@
1
1
  # Japanese translations for Ruby/ActiveSambaLdap.
2
- # Copyright (C) 2007 Kouhei Sutou
2
+ # Copyright (C) 2007-2009 Kouhei Sutou
3
3
  # This file is distributed under the same license as the Ruby/ActiveSambaLdap
4
4
  # package.
5
- # Kouhei Sutou <kou@cozmixng.org>, 2007.
5
+ # Kouhei Sutou <kou@clear-code.com>, 2007.
6
6
  #
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: Ruby/ActiveSambaLdap 0.0.5\n"
9
+ "Project-Id-Version: Ruby/ActiveSambaLdap 0.0.7\n"
10
10
  "POT-Creation-Date: 2007-09-16 22:47+0900\n"
11
- "PO-Revision-Date: 2007-09-16 22:47+0900\n"
12
- "Last-Translator: Kouhei Sutou <kou@cozmixng.org>\n"
11
+ "PO-Revision-Date: 2009-07-11 09:41+0900\n"
12
+ "Last-Translator: Kouhei Sutou <kou@clear-code.com>\n"
13
13
  "Language-Team: Japanese\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
File without changes
@@ -14,7 +14,7 @@ ldap_configuration_file = File.join(RAILS_ROOT, 'config', 'ldap.yml')
14
14
  if File.exist?(ldap_configuration_file)
15
15
  ActiveSambaLdap::Base.configurations =
16
16
  ActiveSambaLdap::Configuration.read(ldap_configuration_file)
17
- ActiveSambaLdap::Base.establish_connection
17
+ ActiveSambaLdap::Base.setup_connection
18
18
  else
19
19
  ActiveLdap::Base.class_eval do
20
20
  format = _("You should run 'script/generator scaffold_active_samba_ldap' " \
@@ -53,7 +53,7 @@ module AslTestUtils
53
53
  module Connection
54
54
  def setup
55
55
  super
56
- ActiveSambaLdap::Base.establish_connection(update_configuration)
56
+ ActiveSambaLdap::Base.setup_connection(update_configuration)
57
57
  end
58
58
 
59
59
  def teardown
@@ -76,7 +76,7 @@ module AslTestUtils
76
76
 
77
77
  def teardown
78
78
  super
79
- ActiveSambaLdap::Base.establish_connection(update_configuration)
79
+ ActiveSambaLdap::Base.setup_connection(update_configuration)
80
80
  ActiveSambaLdap::Base.purge
81
81
  ActiveSambaLdap::Base.load(@dumped_data)
82
82
  end
@@ -10,12 +10,12 @@ class AslUserShowTest < Test::Unit::TestCase
10
10
 
11
11
  def test_exist_user
12
12
  make_dummy_user do |user, password|
13
- user.class.establish_connection("reference")
13
+ user.class.setup_connection("reference")
14
14
  begin
15
15
  user = user.class.find(user.uid)
16
16
  assert_equal([true, user.to_ldif, ""], run_command(user.uid))
17
17
  ensure
18
- user.class.establish_connection("update")
18
+ user.class.setup_connection("update")
19
19
  end
20
20
  end
21
21
  end
@@ -31,7 +31,7 @@ class PasswordTest < Test::Unit::TestCase
31
31
  klass = Class.new(@user_class)
32
32
  assert_nothing_raised do
33
33
  configuration = reference_configuration.merge(:password_hash_type => type)
34
- klass.establish_connection(configuration)
34
+ klass.setup_connection(configuration)
35
35
  klass.ldap_mapping
36
36
  end
37
37
  yield(klass, klass.configuration[:password_hash_type]) if block_given?
@@ -43,7 +43,7 @@ class PasswordTest < Test::Unit::TestCase
43
43
  klass = Class.new(@user_class)
44
44
  assert_raises(ActiveSambaLdap::InvalidConfigurationValueError) do
45
45
  configuration = reference_configuration.merge(:password_hash_type => type)
46
- klass.establish_connection(configuration)
46
+ klass.setup_connection(configuration)
47
47
  end
48
48
  ensure
49
49
  klass.remove_connection
@@ -23,7 +23,7 @@ class UserHomeDirectoryTest < Test::Unit::TestCase
23
23
  klass = Class.new(@user_class)
24
24
  assert_nothing_raised do
25
25
  config = reference_configuration.merge(:user_home_directory_mode => type)
26
- klass.establish_connection(config)
26
+ klass.setup_connection(config)
27
27
  klass.ldap_mapping
28
28
  end
29
29
  yield(klass, klass.configuration[:user_home_directory_mode]) if block_given?
@@ -35,7 +35,7 @@ class UserHomeDirectoryTest < Test::Unit::TestCase
35
35
  klass = Class.new(@user_class)
36
36
  assert_raises(ActiveSambaLdap::InvalidConfigurationValueError) do
37
37
  config = reference_configuration.merge(:user_home_directory_mode => type)
38
- klass.establish_connection(config)
38
+ klass.setup_connection(config)
39
39
  end
40
40
  ensure
41
41
  klass.remove_connection
@@ -1,4 +1,79 @@
1
- === 2.0.0 / 2008-06-15
1
+ === 2.0.3 / 2009-07-17
2
+
3
+ * 6 major enhancements
4
+ * add assert_predicate.
5
+ * add assert_not_predicate.
6
+ * [#24210] assert_kind_of supports an array of classes or modules.
7
+ [Daniel Berger]
8
+ * assert_instance_of supports an array of classes or modules.
9
+ * add --default-priority option.
10
+ * [#26627] add --order option. [Daniel Berger]
11
+
12
+ * 4 minor enhancements
13
+ * use yellow foreground + black background for error.
14
+ * don't show diff for long string.
15
+ * accept "*term-color" TERM environment as colorizable terminal.
16
+ (e.g. Apple's Terminal)
17
+ * [#26268] add a workaround for test-spec's after_all. [Angelo Lakra]
18
+
19
+ * 1 bug fix
20
+ * [#23586] re-support ruby 1.9.1. [Diego Pettenò]
21
+
22
+ * Thanks
23
+ * Diego Pettenò
24
+ * Daniel Berger
25
+ * Angelo Lakra
26
+
27
+ === 2.0.2 / 2008-12-21
28
+
29
+ * 2 major enhancements
30
+
31
+ * re-support ruby 1.8.5.
32
+ * improve exception object comparison.
33
+
34
+ * 3 bug fixes
35
+
36
+ * [#22723]: collector fails on anonymous classes
37
+ * [#22986]: Test names with '?' blow up on Windows
38
+ * [#22988]: don't create .test-result on non-priority mode.
39
+
40
+ * Thanks
41
+
42
+ * Erik Hollensbe
43
+ * Daniel Berger
44
+ * Bill Lear
45
+
46
+ === 2.0.1 / 2008-11-09
47
+
48
+ * 19 major enhancements
49
+
50
+ * support ruby 1.9.1.
51
+ * add run_test method to be extensible.
52
+ * improve priority-mode auto off.
53
+ * improve startup/shutdown RDoc. [Daniel Berger]
54
+ * add assert_compare. [#20851] [Designing Patterns]
55
+ * add assert_fail_assertion. [#20851] [Designing Patterns]
56
+ * add assert_raise_message. [#20851] [Designing Patterns]
57
+ * support folded diff.
58
+ * add assert_raise_kind_of. [Daniel Berger]
59
+ * ingore inherited test for nested test case.
60
+ * add assert_const_defined.
61
+ * add assert_not_const_defined.
62
+ * support assert_raise with an exception object.
63
+ * support assert_raise with no arguments that asserts any
64
+ exception is raised. [#22602] [Daniel Berger]
65
+ * support folded dot progress.
66
+ * add --progress-row-max option.
67
+ * support color scheme customize.
68
+ * support configuration file. (YAML)
69
+ * recognize test-XXX.rb files as test files not only test_XXX.rb
70
+
71
+ * Thanks
72
+
73
+ * Daniel Berger
74
+ * Designing Patterns
75
+
76
+ === 2.0.0 / 2008-06-18
2
77
 
3
78
  * 15 major enhancements
4
79
 
data/test-unit/README.txt CHANGED
@@ -1,13 +1,17 @@
1
- = Test::Unit (Classic)
1
+ = Test::Unit 2.x
2
2
 
3
3
  * http://rubyforge.org/projects/test-unit/
4
4
 
5
- == DESCRIPTION:
5
+ == DESCRIPTION
6
6
 
7
- Test::Unit (Classic) - Nathaniel Talbott's originial test-unit,
8
- externalized from the ruby project as a gem (for tool developers).
7
+ Test::Unit 2.x - Improved version of Test::Unit bundled in
8
+ Ruby 1.8.x.
9
9
 
10
- == FEATURES/PROBLEMS:
10
+ Ruby 1.9.x bundles miniunit not Test::Unit. Test::Unit
11
+ bundled in Ruby 1.8.x had not been improved but unbundled
12
+ Test::Unit (Test::Unit 2.x) will be improved actively.
13
+
14
+ == FEATURES
11
15
 
12
16
  * Test::Unit 1.2.3 is the original Test::Unit, taken
13
17
  straight from the ruby distribution. It is being
@@ -15,18 +19,34 @@ externalized from the ruby project as a gem (for tool developers).
15
19
  stand-alone package. (The test framework in ruby is going
16
20
  to radically change very soon).
17
21
 
18
- * DO NOT INSTALL THIS GEM unless you're active state or some other
19
- development tool provider! You don't need it.
22
+ * Test::Unit 2.x will be improved actively and may break
23
+ compatiblity with Test::Unit 1.2.3. (We will not hope it
24
+ if it isn't needed.)
25
+
26
+ * Some features exist as separated gems like GUI test
27
+ runner. (Tk, GTK+ and Fox) test-unit-full gem package
28
+ provides for installing all Test::Unit related gems
29
+ easily.
30
+
31
+ == INSTALL
20
32
 
21
- * Test::Unit 2.0.0 or later are extended versions of the
22
- original Test::Unit (== Tset::Unit 1.2.3).
33
+ % sudo gem install test-unit
23
34
 
24
- == INSTALL:
35
+ If you want to use full Test::Unit features:
25
36
 
26
- * sudo gem install test-unit
37
+ % sudo gem install test-unit-full
27
38
 
28
- == LICENSE:
39
+ == LICENSE
29
40
 
30
41
  (The Ruby License)
31
42
 
32
43
  This software is distributed under the same terms as ruby.
44
+
45
+ == Thanks
46
+
47
+ * Daniel Berger: Suggestions and bug reports.
48
+ * Designing Patterns: Suggestions.
49
+ * Erik Hollensbe: Suggestions.
50
+ * Bill Lear: A suggestion.
51
+ * Diego Pettenò: A bug report.
52
+ * Angelo Lakra: A bug report.
data/test-unit/Rakefile CHANGED
@@ -1,10 +1,17 @@
1
1
  # -*- ruby -*-
2
2
 
3
3
  require 'rubygems'
4
+ gem 'rdoc'
4
5
  require 'hoe'
5
6
  require './lib/test/unit/version.rb'
6
7
 
7
- Hoe.new('test-unit', Test::Unit::VERSION) do |p|
8
+ ENV["NODOT"] = "yes"
9
+
10
+ version = Test::Unit::VERSION
11
+ ENV["VERSION"] = version
12
+ Hoe.spec('test-unit') do |p|
13
+ Hoe::Test::SUPPORTED_TEST_FRAMEWORKS[:testunit2] = "test/run-test.rb"
14
+ p.version = version
8
15
  p.developer('Kouhei Sutou', 'kou@cozmixng.org')
9
16
  p.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
10
17
 
@@ -13,10 +20,21 @@ Hoe.new('test-unit', Test::Unit::VERSION) do |p|
13
20
  end
14
21
 
15
22
  task :check_manifest => :clean_test_result
23
+ task :check_manifest => :clean_coverage
16
24
 
17
25
  task :clean_test_result do
18
26
  test_results = Dir.glob("**/.test-result")
19
27
  sh("rm", "-rf", *test_results) unless test_results.empty?
20
28
  end
21
29
 
30
+ task :clean_coverage do
31
+ sh("rm", "-rf", "coverage")
32
+ end
33
+
34
+ task :tag do
35
+ message = "Released Test::Unit #{version}!"
36
+ base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/test-unit/"
37
+ sh 'svn', 'copy', '-m', message, "#{base}trunk", "#{base}tags/#{version}"
38
+ end
39
+
22
40
  # vim: syntax=Ruby
data/test-unit/TODO ADDED
@@ -0,0 +1,5 @@
1
+ * mock.
2
+ * data-driven test.
3
+ * port ruby trunk's assert_equal's intelligent inspection
4
+ when inspected expected and actual are same content
5
+ string.