rubysync 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. data/bin/rubysync +3 -3
  2. data/examples/ims2/connectors/hr_db_connector.rb +3 -5
  3. data/examples/my_ims/connectors/my_csv_connector.rb +10 -0
  4. data/examples/my_ims/connectors/my_db_connector.rb +7 -0
  5. data/examples/my_ims/pipelines/{finance_pipeline.rb → my_pipeline.rb} +9 -9
  6. data/lib/net/ldif.rb +302 -0
  7. data/lib/ruby_sync/connectors/active_record_connector.rb +33 -32
  8. data/lib/ruby_sync/connectors/base_connector.rb +21 -10
  9. data/lib/ruby_sync/connectors/csv_file_connector.rb +17 -22
  10. data/lib/ruby_sync/connectors/file_connector.rb +11 -11
  11. data/lib/ruby_sync/connectors/ldap_connector.rb +206 -53
  12. data/lib/ruby_sync/connectors/memory_connector.rb +5 -8
  13. data/lib/ruby_sync/event.rb +11 -3
  14. data/lib/ruby_sync/operation.rb +1 -1
  15. data/lib/ruby_sync/pipelines/base_pipeline.rb +6 -0
  16. data/lib/ruby_sync/util/utilities.rb +22 -3
  17. data/lib/ruby_sync.rb +25 -2
  18. data/test/data/example1.ldif +20 -0
  19. data/test/data/example2.ldif +14 -0
  20. data/test/data/example3.ldif +13 -0
  21. data/test/data/example4.ldif +55 -0
  22. data/test/data/example5.ldif +12 -0
  23. data/test/data/example6.ldif +62 -0
  24. data/test/data/example7.ldif +8 -0
  25. data/test/test_active_record_vault.rb +3 -4
  26. data/test/test_base_pipeline.rb +58 -0
  27. data/test/test_csv_file_connector.rb +7 -7
  28. data/test/test_ldap_connector.rb +71 -13
  29. data/test/test_ldap_vault.rb +91 -0
  30. data/test/test_ldif.rb +122 -0
  31. data/test/test_utilities.rb +63 -0
  32. metadata +19 -7
  33. data/examples/my_ims/connectors/corp_directory_connector.rb +0 -12
  34. data/examples/my_ims/connectors/finance_connector.rb +0 -7
  35. data/examples/my_ims/connectors/hr_db_connector.rb +0 -7
  36. data/examples/my_ims/pipelines/hr_import_pipeline.rb +0 -29
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rubysync
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2007-05-30 00:00:00 +08:00
6
+ version: 0.0.2
7
+ date: 2007-06-20 00:00:00 +08:00
8
8
  summary: Event driven identity synchronization engine
9
9
  require_paths:
10
10
  - lib
@@ -30,8 +30,10 @@ authors:
30
30
  - Ritchie Young
31
31
  files:
32
32
  - bin/rubysync
33
+ - lib/net
33
34
  - lib/ruby_sync
34
35
  - lib/ruby_sync.rb
36
+ - lib/net/ldif.rb
35
37
  - lib/ruby_sync/connectors
36
38
  - lib/ruby_sync/event.rb
37
39
  - lib/ruby_sync/operation.rb
@@ -47,14 +49,26 @@ files:
47
49
  - lib/ruby_sync/pipelines/base_pipeline.rb
48
50
  - lib/ruby_sync/util/metaid.rb
49
51
  - lib/ruby_sync/util/utilities.rb
52
+ - test/data
50
53
  - test/hashlike_tests.rb
51
54
  - test/ruby_sync_test.rb
52
55
  - test/test_active_record_vault.rb
56
+ - test/test_base_pipeline.rb
53
57
  - test/test_csv_file_connector.rb
54
58
  - test/test_event.rb
55
59
  - test/test_ldap_connector.rb
60
+ - test/test_ldap_vault.rb
61
+ - test/test_ldif.rb
56
62
  - test/test_memory_connectors.rb
63
+ - test/test_utilities.rb
57
64
  - test/ts_rubysync.rb
65
+ - test/data/example1.ldif
66
+ - test/data/example2.ldif
67
+ - test/data/example3.ldif
68
+ - test/data/example4.ldif
69
+ - test/data/example5.ldif
70
+ - test/data/example6.ldif
71
+ - test/data/example7.ldif
58
72
  - examples/ar_client_webapp
59
73
  - examples/ar_webapp
60
74
  - examples/ims2
@@ -260,11 +274,9 @@ files:
260
274
  - examples/ims2/pipelines/hr_import_pipeline.rb
261
275
  - examples/my_ims/connectors
262
276
  - examples/my_ims/pipelines
263
- - examples/my_ims/connectors/corp_directory_connector.rb
264
- - examples/my_ims/connectors/finance_connector.rb
265
- - examples/my_ims/connectors/hr_db_connector.rb
266
- - examples/my_ims/pipelines/finance_pipeline.rb
267
- - examples/my_ims/pipelines/hr_import_pipeline.rb
277
+ - examples/my_ims/connectors/my_csv_connector.rb
278
+ - examples/my_ims/connectors/my_db_connector.rb
279
+ - examples/my_ims/pipelines/my_pipeline.rb
268
280
  test_files:
269
281
  - test/ts_rubysync.rb
270
282
  rdoc_options: []
@@ -1,12 +0,0 @@
1
- class CorpDirectoryConnector < RubySync::Connectors::LdapConnector
2
-
3
- options(
4
- :host=>'localhost',
5
- :port=>10389,
6
- :username=>'uid=admin,ou=system',
7
- :password=>'secret',
8
- :search_filter=>"cn=*",
9
- :search_base=>"dc=example,dc=com"
10
- )
11
-
12
- end
@@ -1,7 +0,0 @@
1
- class FinanceConnector < RubySync::Connectors::ActiveRecordConnector
2
- options(
3
- :application => "#{File.dirname(__FILE__)}/../../ar_client_webapp",
4
- :model => :user
5
- )
6
-
7
- end
@@ -1,7 +0,0 @@
1
- class HrDbConnector < RubySync::Connectors::ActiveRecordConnector
2
-
3
- options(
4
- :application => "#{File.dirname(__FILE__)}/../../ar_webapp",
5
- :model => :person
6
- )
7
- end
@@ -1,29 +0,0 @@
1
- class HrImportPipeline < RubySync::Pipelines::BasePipeline
2
-
3
- client :corp_directory
4
- vault :hr_db
5
-
6
- map_client_to_vault :givenname => :first_name,
7
- :sn => :last_name
8
-
9
-
10
-
11
- allow_out :first_name, :last_name
12
- allow_in :first_name, :last_name
13
-
14
-
15
- # in means going from client to vault
16
- #in_transform do
17
- #end
18
-
19
- # out means going from vault to client
20
- out_transform do
21
- add_default :cn, "Ritchie"
22
- end
23
-
24
- def out_place event
25
- #event.target_path = "blah"
26
- event.target_path = "cn=Ritchie,dc=example,dc=com"
27
- end
28
-
29
- end