activeldap 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. data/CHANGES +17 -0
  2. data/README +7 -1
  3. data/Rakefile +2 -1
  4. data/benchmark/bench-al.rb +3 -3
  5. data/examples/al-admin/app/helpers/users_helper.rb +1 -1
  6. data/examples/al-admin/config/environment.rb +4 -3
  7. data/examples/al-admin/config/initializers/gettext.rb +1 -0
  8. data/examples/al-admin/config/session_secret.txt +1 -1
  9. data/examples/al-admin/po/al-admin.pot +344 -0
  10. data/examples/al-admin/public/images/active-ldap.png +0 -0
  11. data/examples/al-admin/vendor/locale_rails/.gitignore +6 -0
  12. data/examples/al-admin/vendor/locale_rails/COPYING +56 -0
  13. data/examples/al-admin/vendor/locale_rails/ChangeLog +35 -0
  14. data/examples/al-admin/vendor/locale_rails/README.rdoc +62 -0
  15. data/examples/al-admin/vendor/locale_rails/Rakefile +73 -0
  16. data/examples/al-admin/vendor/locale_rails/lib/locale_rails.rb +18 -0
  17. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller.rb +15 -0
  18. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/base.rb +82 -0
  19. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/caching.rb +51 -0
  20. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/test_process.rb +44 -0
  21. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/action_view.rb +53 -0
  22. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/i18n.rb +67 -0
  23. data/examples/al-admin/vendor/locale_rails/lib/locale_rails/version.rb +4 -0
  24. data/examples/al-admin/vendor/locale_rails/sample/README +22 -0
  25. data/examples/al-admin/vendor/locale_rails/sample/Rakefile +10 -0
  26. data/examples/al-admin/vendor/locale_rails/sample/app/controllers/application.rb +42 -0
  27. data/examples/al-admin/vendor/locale_rails/sample/app/controllers/samples_controller.rb +30 -0
  28. data/examples/al-admin/vendor/locale_rails/sample/app/helpers/application_helper.rb +3 -0
  29. data/examples/al-admin/vendor/locale_rails/sample/app/views/layouts/samples.html.erb +20 -0
  30. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/_part.html.erb +68 -0
  31. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/_part_nl.html.erb +2 -0
  32. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/cached_action.html.erb +6 -0
  33. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/index.html.erb +33 -0
  34. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/index.pt.html.erb +16 -0
  35. data/examples/al-admin/vendor/locale_rails/sample/app/views/samples/index_uz_UZ.html.erb +16 -0
  36. data/examples/al-admin/vendor/locale_rails/sample/config/boot.rb +109 -0
  37. data/examples/al-admin/vendor/locale_rails/sample/config/environment.rb +25 -0
  38. data/examples/al-admin/vendor/locale_rails/sample/config/environments/development.rb +17 -0
  39. data/examples/al-admin/vendor/locale_rails/sample/config/environments/production.rb +24 -0
  40. data/examples/al-admin/vendor/locale_rails/sample/config/environments/test.rb +22 -0
  41. data/examples/al-admin/vendor/locale_rails/sample/config/initializers/inflections.rb +10 -0
  42. data/examples/al-admin/vendor/locale_rails/sample/config/initializers/mime_types.rb +5 -0
  43. data/examples/al-admin/vendor/locale_rails/sample/config/initializers/new_rails_defaults.rb +17 -0
  44. data/examples/al-admin/vendor/locale_rails/sample/config/locales/en.yml +2 -0
  45. data/examples/al-admin/vendor/locale_rails/sample/config/locales/ja.yml +2 -0
  46. data/examples/al-admin/vendor/locale_rails/sample/config/routes.rb +13 -0
  47. data/examples/al-admin/vendor/locale_rails/sample/db/schema.rb +10 -0
  48. data/examples/al-admin/vendor/locale_rails/sample/public/404.html +30 -0
  49. data/examples/al-admin/vendor/locale_rails/sample/public/422.html +30 -0
  50. data/examples/al-admin/vendor/locale_rails/sample/public/500.html +33 -0
  51. data/examples/al-admin/vendor/locale_rails/sample/public/dispatch.cgi +10 -0
  52. data/examples/al-admin/vendor/locale_rails/sample/public/dispatch.fcgi +24 -0
  53. data/examples/al-admin/vendor/locale_rails/sample/public/dispatch.rb +10 -0
  54. data/examples/al-admin/vendor/locale_rails/sample/public/favicon.ico +0 -0
  55. data/examples/al-admin/vendor/locale_rails/sample/public/images/rails.png +0 -0
  56. data/examples/al-admin/vendor/locale_rails/sample/public/javascripts/application.js +2 -0
  57. data/examples/al-admin/vendor/locale_rails/sample/public/javascripts/controls.js +963 -0
  58. data/examples/al-admin/vendor/locale_rails/sample/public/javascripts/dragdrop.js +972 -0
  59. data/examples/al-admin/vendor/locale_rails/sample/public/javascripts/effects.js +1120 -0
  60. data/examples/al-admin/vendor/locale_rails/sample/public/javascripts/prototype.js +4221 -0
  61. data/examples/al-admin/vendor/locale_rails/sample/public/robots.txt +5 -0
  62. data/examples/al-admin/vendor/locale_rails/sample/public/stylesheets/locale.css +81 -0
  63. data/examples/al-admin/vendor/locale_rails/sample/public/stylesheets/scaffold.css +74 -0
  64. data/examples/al-admin/vendor/locale_rails/sample/script/about +4 -0
  65. data/examples/al-admin/vendor/locale_rails/sample/script/console +3 -0
  66. data/examples/al-admin/vendor/locale_rails/sample/script/dbconsole +3 -0
  67. data/examples/al-admin/vendor/locale_rails/sample/script/destroy +3 -0
  68. data/examples/al-admin/vendor/locale_rails/sample/script/generate +3 -0
  69. data/examples/al-admin/vendor/locale_rails/sample/script/performance/benchmarker +3 -0
  70. data/examples/al-admin/vendor/locale_rails/sample/script/performance/profiler +3 -0
  71. data/examples/al-admin/vendor/locale_rails/sample/script/performance/request +3 -0
  72. data/examples/al-admin/vendor/locale_rails/sample/script/plugin +3 -0
  73. data/examples/al-admin/vendor/locale_rails/sample/script/process/inspector +3 -0
  74. data/examples/al-admin/vendor/locale_rails/sample/script/process/reaper +3 -0
  75. data/examples/al-admin/vendor/locale_rails/sample/script/process/spawner +3 -0
  76. data/examples/al-admin/vendor/locale_rails/sample/script/runner +3 -0
  77. data/examples/al-admin/vendor/locale_rails/sample/script/server +3 -0
  78. data/examples/al-admin/vendor/locale_rails/sample/test/performance/browsing_test.rb +9 -0
  79. data/examples/al-admin/vendor/locale_rails/sample/test/test_helper.rb +38 -0
  80. data/examples/al-admin/vendor/locale_rails/test/README +243 -0
  81. data/examples/al-admin/vendor/locale_rails/test/Rakefile +10 -0
  82. data/examples/al-admin/vendor/locale_rails/test/app/controllers/application_controller.rb +10 -0
  83. data/examples/al-admin/vendor/locale_rails/test/app/controllers/articles_controller.rb +17 -0
  84. data/examples/al-admin/vendor/locale_rails/test/app/helpers/application_helper.rb +3 -0
  85. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/index.html.erb +1 -0
  86. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/index_de.html.erb +1 -0
  87. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/index_fr_FR.html.erb +1 -0
  88. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/index_ja.html.erb +1 -0
  89. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/list.html.erb +1 -0
  90. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/show.html.erb +0 -0
  91. data/examples/al-admin/vendor/locale_rails/test/app/views/articles/show.js.rjs +0 -0
  92. data/examples/al-admin/vendor/locale_rails/test/config/boot.rb +110 -0
  93. data/examples/al-admin/vendor/locale_rails/test/config/environment.rb +42 -0
  94. data/examples/al-admin/vendor/locale_rails/test/config/environments/development.rb +17 -0
  95. data/examples/al-admin/vendor/locale_rails/test/config/environments/production.rb +28 -0
  96. data/examples/al-admin/vendor/locale_rails/test/config/environments/test.rb +35 -0
  97. data/examples/al-admin/vendor/locale_rails/test/config/initializers/backtrace_silencers.rb +7 -0
  98. data/examples/al-admin/vendor/locale_rails/test/config/initializers/inflections.rb +10 -0
  99. data/examples/al-admin/vendor/locale_rails/test/config/initializers/mime_types.rb +5 -0
  100. data/examples/al-admin/vendor/locale_rails/test/config/initializers/new_rails_defaults.rb +19 -0
  101. data/examples/al-admin/vendor/locale_rails/test/config/initializers/session_store.rb +15 -0
  102. data/examples/al-admin/vendor/locale_rails/test/config/locales/en.yml +5 -0
  103. data/examples/al-admin/vendor/locale_rails/test/config/routes.rb +46 -0
  104. data/examples/al-admin/vendor/locale_rails/test/db/schema.rb +0 -0
  105. data/examples/al-admin/vendor/locale_rails/test/public/404.html +30 -0
  106. data/examples/al-admin/vendor/locale_rails/test/public/422.html +30 -0
  107. data/examples/al-admin/vendor/locale_rails/test/public/500.html +30 -0
  108. data/examples/al-admin/vendor/locale_rails/test/public/favicon.ico +0 -0
  109. data/examples/al-admin/vendor/locale_rails/test/public/images/rails.png +0 -0
  110. data/examples/al-admin/vendor/locale_rails/test/public/index.html +275 -0
  111. data/examples/al-admin/vendor/locale_rails/test/public/javascripts/application.js +2 -0
  112. data/examples/al-admin/vendor/locale_rails/test/public/javascripts/controls.js +963 -0
  113. data/examples/al-admin/vendor/locale_rails/test/public/javascripts/dragdrop.js +973 -0
  114. data/examples/al-admin/vendor/locale_rails/test/public/javascripts/effects.js +1128 -0
  115. data/examples/al-admin/vendor/locale_rails/test/public/javascripts/prototype.js +4320 -0
  116. data/examples/al-admin/vendor/locale_rails/test/public/robots.txt +5 -0
  117. data/examples/al-admin/vendor/locale_rails/test/script/about +4 -0
  118. data/examples/al-admin/vendor/locale_rails/test/script/console +3 -0
  119. data/examples/al-admin/vendor/locale_rails/test/script/dbconsole +3 -0
  120. data/examples/al-admin/vendor/locale_rails/test/script/destroy +3 -0
  121. data/examples/al-admin/vendor/locale_rails/test/script/generate +3 -0
  122. data/examples/al-admin/vendor/locale_rails/test/script/performance/benchmarker +3 -0
  123. data/examples/al-admin/vendor/locale_rails/test/script/performance/profiler +3 -0
  124. data/examples/al-admin/vendor/locale_rails/test/script/plugin +3 -0
  125. data/examples/al-admin/vendor/locale_rails/test/script/runner +3 -0
  126. data/examples/al-admin/vendor/locale_rails/test/script/server +3 -0
  127. data/examples/al-admin/vendor/locale_rails/test/test/functional/articles_controller_test.rb +161 -0
  128. data/examples/al-admin/vendor/locale_rails/test/test/performance/browsing_test.rb +9 -0
  129. data/examples/al-admin/vendor/locale_rails/test/test/test_helper.rb +38 -0
  130. data/lib/active_ldap.rb +9 -4
  131. data/lib/active_ldap/adapter/base.rb +3 -3
  132. data/lib/active_ldap/adapter/jndi.rb +1 -1
  133. data/lib/active_ldap/adapter/jndi_connection.rb +1 -3
  134. data/lib/active_ldap/adapter/ldap.rb +11 -11
  135. data/lib/active_ldap/adapter/ldap_ext.rb +25 -3
  136. data/lib/active_ldap/adapter/net_ldap.rb +9 -2
  137. data/lib/active_ldap/association/collection.rb +14 -2
  138. data/lib/active_ldap/base.rb +13 -5
  139. data/lib/active_ldap/configuration.rb +1 -0
  140. data/lib/active_ldap/ldap_error.rb +3 -3
  141. data/lib/active_ldap/ldif.rb +1 -1
  142. data/lib/active_ldap/operations.rb +2 -0
  143. data/lib/active_ldap/schema/syntaxes.rb +2 -2
  144. data/lib/active_ldap/validations.rb +37 -26
  145. data/lib/active_ldap/xml.rb +2 -0
  146. data/po/active-ldap.pot +38 -58
  147. data/test-unit/COPYING +56 -0
  148. data/test-unit/GPL +340 -0
  149. data/test-unit/History.txt +65 -3
  150. data/test-unit/Manifest.txt +5 -0
  151. data/test-unit/PSFL +271 -0
  152. data/test-unit/README.txt +6 -1
  153. data/test-unit/lib/test/unit.rb +6 -1
  154. data/test-unit/lib/test/unit/assertions.rb +129 -13
  155. data/test-unit/lib/test/unit/autorunner.rb +21 -16
  156. data/test-unit/lib/test/unit/collector.rb +1 -8
  157. data/test-unit/lib/test/unit/collector/dir.rb +1 -1
  158. data/test-unit/lib/test/unit/collector/load.rb +15 -7
  159. data/test-unit/lib/test/unit/color-scheme.rb +6 -2
  160. data/test-unit/lib/test/unit/diff.rb +17 -1
  161. data/test-unit/lib/test/unit/error.rb +4 -0
  162. data/test-unit/lib/test/unit/failure.rb +4 -0
  163. data/test-unit/lib/test/unit/notification.rb +8 -4
  164. data/test-unit/lib/test/unit/omission.rb +4 -0
  165. data/test-unit/lib/test/unit/pending.rb +4 -0
  166. data/test-unit/lib/test/unit/priority.rb +2 -3
  167. data/test-unit/lib/test/unit/testcase.rb +18 -7
  168. data/test-unit/lib/test/unit/ui/console/testrunner.rb +5 -3
  169. data/test-unit/lib/test/unit/util/backtracefilter.rb +1 -0
  170. data/test-unit/lib/test/unit/util/output.rb +31 -0
  171. data/test-unit/lib/test/unit/version.rb +1 -1
  172. data/test-unit/test/collector/test-descendant.rb +2 -4
  173. data/test-unit/test/collector/test-load.rb +121 -8
  174. data/test-unit/test/collector/test_objectspace.rb +7 -5
  175. data/test-unit/test/test-color-scheme.rb +4 -2
  176. data/test-unit/test/test-testcase.rb +48 -38
  177. data/test-unit/test/test_assertions.rb +87 -5
  178. data/test-unit/test/util/test-output.rb +11 -0
  179. data/test/al-test-utils.rb +6 -1
  180. data/test/fixtures/lower_case_object_class_schema.rb +802 -0
  181. data/test/test_associations.rb +20 -1
  182. data/test/test_base.rb +50 -3
  183. data/test/test_ldif.rb +10 -1
  184. data/test/test_syntax.rb +12 -0
  185. data/test/test_validation.rb +0 -2
  186. metadata +225 -56
@@ -4,6 +4,26 @@ class TestAssociations < Test::Unit::TestCase
4
4
  include AlTestUtils
5
5
 
6
6
  priority :must
7
+ def test_belongs_to_replace_with_string
8
+ make_temporary_user do |user,|
9
+ make_temporary_group do |group1|
10
+ make_temporary_group do |group2|
11
+ user.groups = [group1, group2]
12
+ user.save!
13
+
14
+ user.groups = [group2.cn]
15
+
16
+ group1.reload
17
+ group2.reload
18
+ assert_equal([group2], user.groups.to_a)
19
+ assert_equal([], group1.member_uid(true))
20
+ assert_equal([user.id], group2.member_uid(true))
21
+ end
22
+ end
23
+ end
24
+ end
25
+
26
+ priority :normal
7
27
  def test_has_many_of_self
8
28
  @user_class.has_many(:references,
9
29
  :class_name => "User",
@@ -28,7 +48,6 @@ class TestAssociations < Test::Unit::TestCase
28
48
  end
29
49
  end
30
50
 
31
- priority :normal
32
51
  def test_belongs_to_add_with_string
33
52
  make_temporary_user do |user,|
34
53
  make_temporary_group do |group1|
@@ -6,6 +6,37 @@ class TestBase < Test::Unit::TestCase
6
6
  include AlTestUtils
7
7
 
8
8
  priority :must
9
+ def test_lower_case_object_class
10
+ fixture_file = fixture("lower_case_object_class_schema.rb")
11
+ schema_entries = eval(File.read(fixture_file))
12
+ schema = ActiveLdap::Schema.new(schema_entries)
13
+ target_class = Class.new(ActiveLdap::Base) do
14
+ ldap_mapping :dn_attribute => "umpn",
15
+ :prefix => "cn=site",
16
+ :classes => ['top', 'umphone', 'umphonenumber']
17
+ end
18
+ target_class.connection.instance_variable_set("@schema", schema)
19
+ target_class.connection.instance_variable_set("@entry_attributes", {})
20
+ target = target_class.send(:instantiate,
21
+ [
22
+ "umpn=1.555.5551234,#{target_class.base}",
23
+ {
24
+ "umpn" => "1.555.5551234",
25
+ "objectclass" => ["top",
26
+ "umphone",
27
+ "umphonenumber"],
28
+ }
29
+ ])
30
+ assert_equal("1.555.5551234", target.umpn)
31
+ end
32
+
33
+ priority :normal
34
+ def test_set_and_get_false
35
+ user = @user_class.new
36
+ user.sn = false
37
+ assert_equal(false, user.sn)
38
+ end
39
+
9
40
  def test_modify_entry_with_attribute_with_nested_options
10
41
  make_temporary_user(:simple => true) do |user,|
11
42
  user.sn = ["Yamada",
@@ -17,7 +48,6 @@ class TestBase < Test::Unit::TestCase
17
48
  end
18
49
  end
19
50
 
20
- priority :normal
21
51
  def test_add_entry_with_attribute_with_nested_options
22
52
  ensure_delete_user("temp-user") do |uid,|
23
53
  user = @user_class.new
@@ -555,8 +585,8 @@ class TestBase < Test::Unit::TestCase
555
585
  def test_loose_dn
556
586
  make_temporary_user do |user,|
557
587
  assert(user.class.exists?(user.dn.to_s))
558
- assert(user.class.exists?(user.dn.to_s.gsub(/,/, " , ")))
559
- assert(user.class.exists?(user.dn.to_s.gsub(/=/, " = ")))
588
+ assert(user.class.exists?(user.dn.to_s.gsub(/\b,/, " , ")))
589
+ assert(user.class.exists?(user.dn.to_s.gsub(/\b=/, " = ")))
560
590
  end
561
591
  end
562
592
 
@@ -987,6 +1017,23 @@ EOX
987
1017
  end
988
1018
  end
989
1019
 
1020
+ def test_to_xml_nil
1021
+ ou = ou_class.new("Sample")
1022
+ ou.description = [nil]
1023
+ assert_equal(<<-EOX, ou.to_xml(:root => "sample"))
1024
+ <sample>
1025
+ <dn>#{ou.dn}</dn>
1026
+ <objectClasses type="array">
1027
+ <objectClass>organizationalUnit</objectClass>
1028
+ <objectClass>top</objectClass>
1029
+ </objectClasses>
1030
+ <ous type="array">
1031
+ <ou>Sample</ou>
1032
+ </ous>
1033
+ </sample>
1034
+ EOX
1035
+ end
1036
+
990
1037
  def test_save
991
1038
  make_temporary_user do |user, password|
992
1039
  user.sn = nil
@@ -9,6 +9,16 @@ class TestLDIF < Test::Unit::TestCase
9
9
  include AlTestUtils::ExampleFile
10
10
 
11
11
  priority :must
12
+ def test_integer_attribute_value_to_s
13
+ dn = ActiveLdap::DN.parse("uid=user,ou=People,dc=example,dc=com")
14
+ record = ActiveLdap::Ldif::Record.new(dn, {"uidNumber" => [100]})
15
+ assert_equal(<<-EOL, record.to_s)
16
+ dn: uid=user,ou=People,dc=example,dc=com
17
+ uidNumber: 100
18
+ EOL
19
+ end
20
+
21
+ priority :normal
12
22
  def test_accept_empty_lines_after_content
13
23
  ldif_source = <<-EOL
14
24
  version: 1
@@ -65,7 +75,6 @@ objectClass: top
65
75
  EOL
66
76
  end
67
77
 
68
- priority :normal
69
78
  def test_comments_and_empty_lines_before_content
70
79
  ldif_source = <<-EOL
71
80
  version: 1
@@ -79,6 +79,13 @@ class TestSyntax < Test::Unit::TestCase
79
79
  assert_type_cast(false, "FALSE", "Boolean")
80
80
  end
81
81
 
82
+ def test_boolean_normalize_value
83
+ assert_normalize_value("TRUE", true, 'Boolean')
84
+ assert_normalize_value("TRUE", "1", 'Boolean')
85
+ assert_normalize_value("FALSE", false, 'Boolean')
86
+ assert_normalize_value("FALSE", "0", 'Boolean')
87
+ end
88
+
82
89
  def test_dn_type_cast
83
90
  assert_type_cast_without_validation(nil, nil, 'Distinguished Name')
84
91
  assert_dn_type_cast("cn=test", 'Distinguished Name')
@@ -368,4 +375,9 @@ class TestSyntax < Test::Unit::TestCase
368
375
  assert_type_cast(ActiveLdap::DN.parse(original_value), original_value,
369
376
  syntax_name)
370
377
  end
378
+
379
+ def assert_normalize_value(normalized_value, original_value, syntax_name)
380
+ syntax = @syntaxes[syntax_name]
381
+ assert_equal(normalized_value, syntax.normalize_value(original_value))
382
+ end
371
383
  end
@@ -108,8 +108,6 @@ class TestValidation < Test::Unit::TestCase
108
108
 
109
109
  def test_validate_excluded_classes
110
110
  make_temporary_user do |user,|
111
- user.save
112
- user.classes -= ['person']
113
111
  assert(user.save)
114
112
  user.class.excluded_classes = ['person']
115
113
  assert(!user.save)
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 2
8
+ - 2
9
+ version: 1.2.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Will Drewry
@@ -10,59 +15,93 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2009-12-16 00:00:00 +09:00
18
+ date: 2010-07-04 00:00:00 +09:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: activerecord
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
21
25
  requirements:
22
26
  - - "="
23
27
  - !ruby/object:Gem::Version
24
- version: 2.3.5
25
- version:
28
+ segments:
29
+ - 2
30
+ - 3
31
+ - 8
32
+ version: 2.3.8
33
+ type: :runtime
34
+ version_requirements: *id001
26
35
  - !ruby/object:Gem::Dependency
27
36
  name: locale
28
- type: :runtime
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
31
39
  requirements:
32
40
  - - "="
33
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 2
44
+ - 0
45
+ - 5
34
46
  version: 2.0.5
35
- version:
47
+ type: :runtime
48
+ version_requirements: *id002
36
49
  - !ruby/object:Gem::Dependency
37
50
  name: gettext
38
- type: :runtime
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
41
53
  requirements:
42
54
  - - "="
43
55
  - !ruby/object:Gem::Version
56
+ segments:
57
+ - 2
58
+ - 1
59
+ - 0
44
60
  version: 2.1.0
45
- version:
61
+ type: :runtime
62
+ version_requirements: *id003
46
63
  - !ruby/object:Gem::Dependency
47
64
  name: gettext_activerecord
48
- type: :runtime
49
- version_requirement:
50
- version_requirements: !ruby/object:Gem::Requirement
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
51
67
  requirements:
52
68
  - - "="
53
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 2
72
+ - 1
73
+ - 0
54
74
  version: 2.1.0
55
- version:
75
+ type: :runtime
76
+ version_requirements: *id004
56
77
  - !ruby/object:Gem::Dependency
57
- name: hoe
78
+ name: rubyforge
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ segments:
85
+ - 2
86
+ - 0
87
+ - 4
88
+ version: 2.0.4
58
89
  type: :development
59
- version_requirement:
60
- version_requirements: !ruby/object:Gem::Requirement
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: hoe
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
61
95
  requirements:
62
96
  - - ">="
63
97
  - !ruby/object:Gem::Version
64
- version: 2.4.0
65
- version:
98
+ segments:
99
+ - 2
100
+ - 6
101
+ - 1
102
+ version: 2.6.1
103
+ type: :development
104
+ version_requirements: *id006
66
105
  description: " 'ActiveLdap' is a ruby extension library which provides a clean\n objected oriented interface to the Ruby/LDAP library. It was inspired\n by ActiveRecord. This is not nearly as clean or as flexible as\n ActiveRecord, but it is still trivial to define new objects and manipulate\n them with minimal difficulty.\n"
67
106
  email:
68
107
  - redpig@dataspill.org
@@ -152,6 +191,7 @@ files:
152
191
  - examples/al-admin/config/environments/production.rb
153
192
  - examples/al-admin/config/environments/test.rb
154
193
  - examples/al-admin/config/initializers/exception_notifier.rb
194
+ - examples/al-admin/config/initializers/gettext.rb
155
195
  - examples/al-admin/config/initializers/inflections.rb
156
196
  - examples/al-admin/config/initializers/mime_types.rb
157
197
  - examples/al-admin/config/initializers/session_store.rb
@@ -168,6 +208,7 @@ files:
168
208
  - examples/al-admin/locale/en/LC_MESSAGES/al-admin.mo
169
209
  - examples/al-admin/locale/ja/LC_MESSAGES/al-admin.mo
170
210
  - examples/al-admin/locale/nl/LC_MESSAGES/al-admin.mo
211
+ - examples/al-admin/po/al-admin.pot
171
212
  - examples/al-admin/po/en/al-admin.po
172
213
  - examples/al-admin/po/ja/al-admin.po
173
214
  - examples/al-admin/po/nl/al-admin.po
@@ -178,6 +219,7 @@ files:
178
219
  - examples/al-admin/public/dispatch.fcgi
179
220
  - examples/al-admin/public/dispatch.rb
180
221
  - examples/al-admin/public/favicon.ico
222
+ - examples/al-admin/public/images/active-ldap.png
181
223
  - examples/al-admin/public/images/active-ldap.svg
182
224
  - examples/al-admin/public/images/al-admin.png
183
225
  - examples/al-admin/public/images/al-admin.svg
@@ -390,6 +432,125 @@ files:
390
432
  - examples/al-admin/test/run-test.sh
391
433
  - examples/al-admin/test/test_helper.rb
392
434
  - examples/al-admin/test/unit/user_test.rb
435
+ - examples/al-admin/vendor/locale_rails/.gitignore
436
+ - examples/al-admin/vendor/locale_rails/COPYING
437
+ - examples/al-admin/vendor/locale_rails/ChangeLog
438
+ - examples/al-admin/vendor/locale_rails/README.rdoc
439
+ - examples/al-admin/vendor/locale_rails/Rakefile
440
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails.rb
441
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller.rb
442
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/base.rb
443
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/caching.rb
444
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/action_controller/test_process.rb
445
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/action_view.rb
446
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/i18n.rb
447
+ - examples/al-admin/vendor/locale_rails/lib/locale_rails/version.rb
448
+ - examples/al-admin/vendor/locale_rails/sample/README
449
+ - examples/al-admin/vendor/locale_rails/sample/Rakefile
450
+ - examples/al-admin/vendor/locale_rails/sample/app/controllers/application.rb
451
+ - examples/al-admin/vendor/locale_rails/sample/app/controllers/samples_controller.rb
452
+ - examples/al-admin/vendor/locale_rails/sample/app/helpers/application_helper.rb
453
+ - examples/al-admin/vendor/locale_rails/sample/app/views/layouts/samples.html.erb
454
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/_part.html.erb
455
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/_part_nl.html.erb
456
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/cached_action.html.erb
457
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/index.html.erb
458
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/index.pt.html.erb
459
+ - examples/al-admin/vendor/locale_rails/sample/app/views/samples/index_uz_UZ.html.erb
460
+ - examples/al-admin/vendor/locale_rails/sample/config/boot.rb
461
+ - examples/al-admin/vendor/locale_rails/sample/config/environment.rb
462
+ - examples/al-admin/vendor/locale_rails/sample/config/environments/development.rb
463
+ - examples/al-admin/vendor/locale_rails/sample/config/environments/production.rb
464
+ - examples/al-admin/vendor/locale_rails/sample/config/environments/test.rb
465
+ - examples/al-admin/vendor/locale_rails/sample/config/initializers/inflections.rb
466
+ - examples/al-admin/vendor/locale_rails/sample/config/initializers/mime_types.rb
467
+ - examples/al-admin/vendor/locale_rails/sample/config/initializers/new_rails_defaults.rb
468
+ - examples/al-admin/vendor/locale_rails/sample/config/locales/en.yml
469
+ - examples/al-admin/vendor/locale_rails/sample/config/locales/ja.yml
470
+ - examples/al-admin/vendor/locale_rails/sample/config/routes.rb
471
+ - examples/al-admin/vendor/locale_rails/sample/db/schema.rb
472
+ - examples/al-admin/vendor/locale_rails/sample/public/404.html
473
+ - examples/al-admin/vendor/locale_rails/sample/public/422.html
474
+ - examples/al-admin/vendor/locale_rails/sample/public/500.html
475
+ - examples/al-admin/vendor/locale_rails/sample/public/dispatch.cgi
476
+ - examples/al-admin/vendor/locale_rails/sample/public/dispatch.fcgi
477
+ - examples/al-admin/vendor/locale_rails/sample/public/dispatch.rb
478
+ - examples/al-admin/vendor/locale_rails/sample/public/favicon.ico
479
+ - examples/al-admin/vendor/locale_rails/sample/public/images/rails.png
480
+ - examples/al-admin/vendor/locale_rails/sample/public/javascripts/application.js
481
+ - examples/al-admin/vendor/locale_rails/sample/public/javascripts/controls.js
482
+ - examples/al-admin/vendor/locale_rails/sample/public/javascripts/dragdrop.js
483
+ - examples/al-admin/vendor/locale_rails/sample/public/javascripts/effects.js
484
+ - examples/al-admin/vendor/locale_rails/sample/public/javascripts/prototype.js
485
+ - examples/al-admin/vendor/locale_rails/sample/public/robots.txt
486
+ - examples/al-admin/vendor/locale_rails/sample/public/stylesheets/locale.css
487
+ - examples/al-admin/vendor/locale_rails/sample/public/stylesheets/scaffold.css
488
+ - examples/al-admin/vendor/locale_rails/sample/script/about
489
+ - examples/al-admin/vendor/locale_rails/sample/script/console
490
+ - examples/al-admin/vendor/locale_rails/sample/script/dbconsole
491
+ - examples/al-admin/vendor/locale_rails/sample/script/destroy
492
+ - examples/al-admin/vendor/locale_rails/sample/script/generate
493
+ - examples/al-admin/vendor/locale_rails/sample/script/performance/benchmarker
494
+ - examples/al-admin/vendor/locale_rails/sample/script/performance/profiler
495
+ - examples/al-admin/vendor/locale_rails/sample/script/performance/request
496
+ - examples/al-admin/vendor/locale_rails/sample/script/plugin
497
+ - examples/al-admin/vendor/locale_rails/sample/script/process/inspector
498
+ - examples/al-admin/vendor/locale_rails/sample/script/process/reaper
499
+ - examples/al-admin/vendor/locale_rails/sample/script/process/spawner
500
+ - examples/al-admin/vendor/locale_rails/sample/script/runner
501
+ - examples/al-admin/vendor/locale_rails/sample/script/server
502
+ - examples/al-admin/vendor/locale_rails/sample/test/performance/browsing_test.rb
503
+ - examples/al-admin/vendor/locale_rails/sample/test/test_helper.rb
504
+ - examples/al-admin/vendor/locale_rails/test/README
505
+ - examples/al-admin/vendor/locale_rails/test/Rakefile
506
+ - examples/al-admin/vendor/locale_rails/test/app/controllers/application_controller.rb
507
+ - examples/al-admin/vendor/locale_rails/test/app/controllers/articles_controller.rb
508
+ - examples/al-admin/vendor/locale_rails/test/app/helpers/application_helper.rb
509
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/index.html.erb
510
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/index_de.html.erb
511
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/index_fr_FR.html.erb
512
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/index_ja.html.erb
513
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/list.html.erb
514
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/show.html.erb
515
+ - examples/al-admin/vendor/locale_rails/test/app/views/articles/show.js.rjs
516
+ - examples/al-admin/vendor/locale_rails/test/config/boot.rb
517
+ - examples/al-admin/vendor/locale_rails/test/config/environment.rb
518
+ - examples/al-admin/vendor/locale_rails/test/config/environments/development.rb
519
+ - examples/al-admin/vendor/locale_rails/test/config/environments/production.rb
520
+ - examples/al-admin/vendor/locale_rails/test/config/environments/test.rb
521
+ - examples/al-admin/vendor/locale_rails/test/config/initializers/backtrace_silencers.rb
522
+ - examples/al-admin/vendor/locale_rails/test/config/initializers/inflections.rb
523
+ - examples/al-admin/vendor/locale_rails/test/config/initializers/mime_types.rb
524
+ - examples/al-admin/vendor/locale_rails/test/config/initializers/new_rails_defaults.rb
525
+ - examples/al-admin/vendor/locale_rails/test/config/initializers/session_store.rb
526
+ - examples/al-admin/vendor/locale_rails/test/config/locales/en.yml
527
+ - examples/al-admin/vendor/locale_rails/test/config/routes.rb
528
+ - examples/al-admin/vendor/locale_rails/test/db/schema.rb
529
+ - examples/al-admin/vendor/locale_rails/test/public/404.html
530
+ - examples/al-admin/vendor/locale_rails/test/public/422.html
531
+ - examples/al-admin/vendor/locale_rails/test/public/500.html
532
+ - examples/al-admin/vendor/locale_rails/test/public/favicon.ico
533
+ - examples/al-admin/vendor/locale_rails/test/public/images/rails.png
534
+ - examples/al-admin/vendor/locale_rails/test/public/index.html
535
+ - examples/al-admin/vendor/locale_rails/test/public/javascripts/application.js
536
+ - examples/al-admin/vendor/locale_rails/test/public/javascripts/controls.js
537
+ - examples/al-admin/vendor/locale_rails/test/public/javascripts/dragdrop.js
538
+ - examples/al-admin/vendor/locale_rails/test/public/javascripts/effects.js
539
+ - examples/al-admin/vendor/locale_rails/test/public/javascripts/prototype.js
540
+ - examples/al-admin/vendor/locale_rails/test/public/robots.txt
541
+ - examples/al-admin/vendor/locale_rails/test/script/about
542
+ - examples/al-admin/vendor/locale_rails/test/script/console
543
+ - examples/al-admin/vendor/locale_rails/test/script/dbconsole
544
+ - examples/al-admin/vendor/locale_rails/test/script/destroy
545
+ - examples/al-admin/vendor/locale_rails/test/script/generate
546
+ - examples/al-admin/vendor/locale_rails/test/script/performance/benchmarker
547
+ - examples/al-admin/vendor/locale_rails/test/script/performance/profiler
548
+ - examples/al-admin/vendor/locale_rails/test/script/plugin
549
+ - examples/al-admin/vendor/locale_rails/test/script/runner
550
+ - examples/al-admin/vendor/locale_rails/test/script/server
551
+ - examples/al-admin/vendor/locale_rails/test/test/functional/articles_controller_test.rb
552
+ - examples/al-admin/vendor/locale_rails/test/test/performance/browsing_test.rb
553
+ - examples/al-admin/vendor/locale_rails/test/test/test_helper.rb
393
554
  - examples/al-admin/vendor/plugins/exception_notification/README
394
555
  - examples/al-admin/vendor/plugins/exception_notification/init.rb
395
556
  - examples/al-admin/vendor/plugins/exception_notification/lib/exception_notifiable.rb
@@ -483,8 +644,11 @@ files:
483
644
  - rails_generators/model_active_ldap/templates/unit_test.rb
484
645
  - rails_generators/scaffold_active_ldap/scaffold_active_ldap_generator.rb
485
646
  - rails_generators/scaffold_active_ldap/templates/ldap.yml
647
+ - test-unit/COPYING
648
+ - test-unit/GPL
486
649
  - test-unit/History.txt
487
650
  - test-unit/Manifest.txt
651
+ - test-unit/PSFL
488
652
  - test-unit/README.txt
489
653
  - test-unit/Rakefile
490
654
  - test-unit/TODO
@@ -527,6 +691,7 @@ files:
527
691
  - test-unit/lib/test/unit/util/backtracefilter.rb
528
692
  - test-unit/lib/test/unit/util/method-owner-finder.rb
529
693
  - test-unit/lib/test/unit/util/observable.rb
694
+ - test-unit/lib/test/unit/util/output.rb
530
695
  - test-unit/lib/test/unit/util/procwrapper.rb
531
696
  - test-unit/lib/test/unit/version.rb
532
697
  - test-unit/sample/adder.rb
@@ -558,12 +723,14 @@ files:
558
723
  - test-unit/test/testunit-test-util.rb
559
724
  - test-unit/test/ui/test_testrunmediator.rb
560
725
  - test-unit/test/util/test-method-owner-finder.rb
726
+ - test-unit/test/util/test-output.rb
561
727
  - test-unit/test/util/test_backtracefilter.rb
562
728
  - test-unit/test/util/test_observable.rb
563
729
  - test-unit/test/util/test_procwrapper.rb
564
730
  - test/al-test-utils.rb
565
731
  - test/command.rb
566
732
  - test/config.yaml.sample
733
+ - test/fixtures/lower_case_object_class_schema.rb
567
734
  - test/run-test.rb
568
735
  - test/test_acts_as_tree.rb
569
736
  - test/test_adapter.rb
@@ -616,56 +783,58 @@ required_ruby_version: !ruby/object:Gem::Requirement
616
783
  requirements:
617
784
  - - ">="
618
785
  - !ruby/object:Gem::Version
786
+ segments:
787
+ - 0
619
788
  version: "0"
620
- version:
621
789
  required_rubygems_version: !ruby/object:Gem::Requirement
622
790
  requirements:
623
791
  - - ">="
624
792
  - !ruby/object:Gem::Version
793
+ segments:
794
+ - 0
625
795
  version: "0"
626
- version:
627
796
  requirements: []
628
797
 
629
798
  rubyforge_project: ruby-activeldap
630
- rubygems_version: 1.3.5
799
+ rubygems_version: 1.3.6
631
800
  signing_key:
632
801
  specification_version: 3
633
802
  summary: ActiveLdap is a object-oriented API to LDAP
634
803
  test_files:
635
- - test/test_find.rb
636
- - test/test_usermod.rb
637
- - test/test_ldif.rb
638
- - test/test_dn.rb
639
- - test/test_useradd-binary.rb
640
- - test/test_acts_as_tree.rb
804
+ - test/test_lpasswd.rb
805
+ - test/test_groupadd.rb
641
806
  - test/test_groupdel.rb
642
- - test/test_attributes.rb
643
- - test/test_validation.rb
644
- - test/test_connection_per_class.rb
645
- - test/test_user.rb
646
- - test/test_usermod-binary-add-time.rb
647
- - test/test_load.rb
648
- - test/test_connection.rb
649
807
  - test/test_base_per_instance.rb
650
- - test/test_configuration.rb
651
- - test/test_base.rb
652
- - test/test_adapter.rb
653
- - test/test_useradd.rb
654
- - test/test_bind.rb
655
- - test/test_userls.rb
656
- - test/test_userdel.rb
657
- - test/test_groupmod.rb
808
+ - test/test_groupls.rb
809
+ - test/test_connection_per_dn.rb
810
+ - test/test_connection.rb
811
+ - test/test_usermod-lang-add.rb
658
812
  - test/test_associations.rb
659
813
  - test/test_schema.rb
660
- - test/test_groupadd.rb
814
+ - test/test_dn.rb
815
+ - test/test_attributes.rb
661
816
  - test/test_object_class.rb
662
- - test/test_usermod-lang-add.rb
663
- - test/test_syntax.rb
664
- - test/test_usermod-binary-del.rb
817
+ - test/test_acts_as_tree.rb
665
818
  - test/test_usermod-binary-add.rb
819
+ - test/test_find.rb
820
+ - test/test_bind.rb
821
+ - test/test_useradd-binary.rb
822
+ - test/test_callback.rb
823
+ - test/test_useradd.rb
824
+ - test/test_usermod.rb
825
+ - test/test_syntax.rb
826
+ - test/test_usermod-binary-add-time.rb
827
+ - test/test_user.rb
666
828
  - test/test_user_password.rb
667
- - test/test_connection_per_dn.rb
829
+ - test/test_base.rb
830
+ - test/test_adapter.rb
831
+ - test/test_groupmod.rb
668
832
  - test/test_reflection.rb
669
- - test/test_lpasswd.rb
670
- - test/test_callback.rb
671
- - test/test_groupls.rb
833
+ - test/test_load.rb
834
+ - test/test_configuration.rb
835
+ - test/test_userls.rb
836
+ - test/test_userdel.rb
837
+ - test/test_validation.rb
838
+ - test/test_ldif.rb
839
+ - test/test_connection_per_class.rb
840
+ - test/test_usermod-binary-del.rb