rubysync 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/.DS_Store +0 -0
  2. data/.project +17 -0
  3. data/COPYING +339 -0
  4. data/HISTORY.txt +8 -0
  5. data/Manifest.txt +218 -0
  6. data/README.txt +67 -0
  7. data/Rakefile +31 -0
  8. data/bin/.DS_Store +0 -0
  9. data/bin/rubysync +19 -12
  10. data/examples/.DS_Store +0 -0
  11. data/examples/ar_client_webapp/log/development.log +753 -0
  12. data/examples/ar_client_webapp/log/production.log +0 -0
  13. data/examples/ar_client_webapp/log/server.log +0 -0
  14. data/examples/ar_client_webapp/log/test.log +0 -0
  15. data/examples/ar_client_webapp/public/.htaccess +40 -0
  16. data/examples/ar_client_webapp/tmp/sessions/ruby_sess.e2e3c63a67baef6d +0 -0
  17. data/examples/ar_webapp/.DS_Store +0 -0
  18. data/examples/ar_webapp/app/.DS_Store +0 -0
  19. data/examples/ar_webapp/app/views/.DS_Store +0 -0
  20. data/examples/ar_webapp/app/views/people/.DS_Store +0 -0
  21. data/examples/ar_webapp/log/development.log +5518 -0
  22. data/examples/ar_webapp/log/production.log +0 -0
  23. data/examples/ar_webapp/log/server.log +0 -0
  24. data/examples/ar_webapp/log/test.log +2178 -0
  25. data/examples/ar_webapp/public/.htaccess +40 -0
  26. data/examples/ar_webapp/tmp/sessions/ruby_sess.2295696b0af5f6dd +0 -0
  27. data/examples/ar_webapp/tmp/sessions/ruby_sess.26687aeb19c87669 +0 -0
  28. data/examples/ar_webapp/tmp/sessions/ruby_sess.2855a3b0c8ea840b +0 -0
  29. data/examples/ar_webapp/tmp/sessions/ruby_sess.45d2d48a8330ff28 +0 -0
  30. data/examples/ar_webapp/tmp/sessions/ruby_sess.7366b840f4ce9f12 +0 -0
  31. data/examples/ar_webapp/tmp/sessions/ruby_sess.b2fc3f2e6d8ae555 +0 -0
  32. data/examples/ar_webapp/tmp/sessions/ruby_sess.b6bf8470a62c02b0 +0 -0
  33. data/examples/my_ims/.DS_Store +0 -0
  34. data/gemspec +48 -0
  35. data/lib/.DS_Store +0 -0
  36. data/lib/net/.DS_Store +0 -0
  37. data/lib/ruby_sync/connectors/active_record_association_handler.rb +66 -0
  38. data/lib/ruby_sync/connectors/active_record_connector.rb +14 -62
  39. data/lib/ruby_sync/connectors/active_record_event_handler.rb +47 -0
  40. data/lib/ruby_sync/connectors/base_connector.rb +139 -36
  41. data/lib/ruby_sync/connectors/connector_event_processing.rb +18 -0
  42. data/lib/ruby_sync/connectors/csv_file_connector.rb +3 -0
  43. data/lib/ruby_sync/connectors/file_connector.rb +1 -0
  44. data/lib/ruby_sync/connectors/memory_connector.rb +2 -104
  45. data/lib/ruby_sync/connectors/xml_connector.rb +98 -0
  46. data/lib/ruby_sync/event.rb +7 -1
  47. data/lib/ruby_sync/util/utilities.rb +27 -16
  48. data/lib/ruby_sync.rb +10 -1
  49. data/lib/rubysync.rb +19 -0
  50. data/nbproject/private/private.properties +3 -0
  51. data/nbproject/project.properties +8 -0
  52. data/nbproject/project.xml +16 -0
  53. data/rubysync.tmproj +348 -0
  54. data/test/.DS_Store +0 -0
  55. data/test/ruby_sync_test.rb +8 -1
  56. data/test/tc_xml_connectors.rb +47 -0
  57. data/test/test_active_record_vault.rb +17 -14
  58. data/test/test_base_connector.rb +38 -0
  59. data/test/test_ldap_changelog.rb +97 -0
  60. data/test/test_ldap_connector.rb +2 -48
  61. data/test/test_memory_connectors.rb +8 -3
  62. data/test/test_rubysync.rb +28 -0
  63. data/test/ts_rubysync.rb +5 -3
  64. metadata +129 -169
data/.DS_Store ADDED
Binary file
data/.project ADDED
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>RubySync</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.rubypeople.rdt.core.rubybuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.rubypeople.rdt.core.rubynature</nature>
16
+ </natures>
17
+ </projectDescription>
data/COPYING ADDED
@@ -0,0 +1,339 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
data/HISTORY.txt ADDED
@@ -0,0 +1,8 @@
1
+
2
+ == 0.0.3 / 2007-08-27
3
+
4
+ * Added XML Connector to enable demonstration with no dependencies on LDAP or DB servers
5
+ * Added DBM based association tracking to enable any connector to be used as a vault
6
+ * Added DBM based change tracking to make writing a simple (albeit inefficient) connector trivial
7
+
8
+
data/Manifest.txt ADDED
@@ -0,0 +1,218 @@
1
+ .DS_Store
2
+ .project
3
+ COPYING
4
+ HISTORY.txt
5
+ Manifest.txt
6
+ README.txt
7
+ Rakefile
8
+ bin/.DS_Store
9
+ bin/rubysync
10
+ examples/.DS_Store
11
+ examples/ar_client_webapp/README
12
+ examples/ar_client_webapp/Rakefile
13
+ examples/ar_client_webapp/app/controllers/application.rb
14
+ examples/ar_client_webapp/app/controllers/user_controller.rb
15
+ examples/ar_client_webapp/app/helpers/application_helper.rb
16
+ examples/ar_client_webapp/app/helpers/user_helper.rb
17
+ examples/ar_client_webapp/app/models/user.rb
18
+ examples/ar_client_webapp/config/boot.rb
19
+ examples/ar_client_webapp/config/database.yml
20
+ examples/ar_client_webapp/config/environment.rb
21
+ examples/ar_client_webapp/config/environments/development.rb
22
+ examples/ar_client_webapp/config/environments/production.rb
23
+ examples/ar_client_webapp/config/environments/test.rb
24
+ examples/ar_client_webapp/config/routes.rb
25
+ examples/ar_client_webapp/db/migrate/001_create_users.rb
26
+ examples/ar_client_webapp/db/schema.rb
27
+ examples/ar_client_webapp/doc/README_FOR_APP
28
+ examples/ar_client_webapp/log/development.log
29
+ examples/ar_client_webapp/log/production.log
30
+ examples/ar_client_webapp/log/server.log
31
+ examples/ar_client_webapp/log/test.log
32
+ examples/ar_client_webapp/public/.htaccess
33
+ examples/ar_client_webapp/public/404.html
34
+ examples/ar_client_webapp/public/500.html
35
+ examples/ar_client_webapp/public/dispatch.cgi
36
+ examples/ar_client_webapp/public/dispatch.fcgi
37
+ examples/ar_client_webapp/public/dispatch.rb
38
+ examples/ar_client_webapp/public/favicon.ico
39
+ examples/ar_client_webapp/public/images/rails.png
40
+ examples/ar_client_webapp/public/index.html
41
+ examples/ar_client_webapp/public/javascripts/application.js
42
+ examples/ar_client_webapp/public/javascripts/controls.js
43
+ examples/ar_client_webapp/public/javascripts/dragdrop.js
44
+ examples/ar_client_webapp/public/javascripts/effects.js
45
+ examples/ar_client_webapp/public/javascripts/prototype.js
46
+ examples/ar_client_webapp/public/robots.txt
47
+ examples/ar_client_webapp/script/about
48
+ examples/ar_client_webapp/script/breakpointer
49
+ examples/ar_client_webapp/script/console
50
+ examples/ar_client_webapp/script/destroy
51
+ examples/ar_client_webapp/script/generate
52
+ examples/ar_client_webapp/script/performance/benchmarker
53
+ examples/ar_client_webapp/script/performance/profiler
54
+ examples/ar_client_webapp/script/plugin
55
+ examples/ar_client_webapp/script/process/inspector
56
+ examples/ar_client_webapp/script/process/reaper
57
+ examples/ar_client_webapp/script/process/spawner
58
+ examples/ar_client_webapp/script/runner
59
+ examples/ar_client_webapp/script/server
60
+ examples/ar_client_webapp/test/fixtures/users.yml
61
+ examples/ar_client_webapp/test/functional/user_controller_test.rb
62
+ examples/ar_client_webapp/test/test_helper.rb
63
+ examples/ar_client_webapp/test/unit/user_test.rb
64
+ examples/ar_client_webapp/tmp/sessions/ruby_sess.e2e3c63a67baef6d
65
+ examples/ar_webapp/.DS_Store
66
+ examples/ar_webapp/README
67
+ examples/ar_webapp/Rakefile
68
+ examples/ar_webapp/app/.DS_Store
69
+ examples/ar_webapp/app/controllers/application.rb
70
+ examples/ar_webapp/app/controllers/hobbies_controller.rb
71
+ examples/ar_webapp/app/controllers/interests_controller.rb
72
+ examples/ar_webapp/app/controllers/people_controller.rb
73
+ examples/ar_webapp/app/controllers/ruby_sync_associations_controller.rb
74
+ examples/ar_webapp/app/helpers/application_helper.rb
75
+ examples/ar_webapp/app/models/hobby.rb
76
+ examples/ar_webapp/app/models/interest.rb
77
+ examples/ar_webapp/app/models/person.rb
78
+ examples/ar_webapp/app/models/ruby_sync_association.rb
79
+ examples/ar_webapp/app/models/ruby_sync_event.rb
80
+ examples/ar_webapp/app/models/ruby_sync_observer.rb
81
+ examples/ar_webapp/app/models/ruby_sync_operation.rb
82
+ examples/ar_webapp/app/models/ruby_sync_state.rb
83
+ examples/ar_webapp/app/models/ruby_sync_value.rb
84
+ examples/ar_webapp/app/views/.DS_Store
85
+ examples/ar_webapp/app/views/layouts/application.rhtml
86
+ examples/ar_webapp/app/views/people/.DS_Store
87
+ examples/ar_webapp/app/views/people/show.rhtml
88
+ examples/ar_webapp/config/boot.rb
89
+ examples/ar_webapp/config/database.yml
90
+ examples/ar_webapp/config/environment.rb
91
+ examples/ar_webapp/config/environments/development.rb
92
+ examples/ar_webapp/config/environments/production.rb
93
+ examples/ar_webapp/config/environments/test.rb
94
+ examples/ar_webapp/config/routes.rb
95
+ examples/ar_webapp/db/migrate/001_create_people.rb
96
+ examples/ar_webapp/db/migrate/002_create_interests.rb
97
+ examples/ar_webapp/db/migrate/003_create_hobbies.rb
98
+ examples/ar_webapp/db/migrate/004_create_ruby_sync_associations.rb
99
+ examples/ar_webapp/db/migrate/005_create_ruby_sync_events.rb
100
+ examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
101
+ examples/ar_webapp/db/migrate/007_create_ruby_sync_values.rb
102
+ examples/ar_webapp/db/migrate/008_ruby_sync_tracking.rb
103
+ examples/ar_webapp/db/migrate/009_create_ruby_sync_states.rb
104
+ examples/ar_webapp/db/schema.rb
105
+ examples/ar_webapp/doc/README_FOR_APP
106
+ examples/ar_webapp/log/development.log
107
+ examples/ar_webapp/log/production.log
108
+ examples/ar_webapp/log/server.log
109
+ examples/ar_webapp/log/test.log
110
+ examples/ar_webapp/public/.htaccess
111
+ examples/ar_webapp/public/404.html
112
+ examples/ar_webapp/public/500.html
113
+ examples/ar_webapp/public/dispatch.cgi
114
+ examples/ar_webapp/public/dispatch.fcgi
115
+ examples/ar_webapp/public/dispatch.rb
116
+ examples/ar_webapp/public/favicon.ico
117
+ examples/ar_webapp/public/images/rails.png
118
+ examples/ar_webapp/public/index.html
119
+ examples/ar_webapp/public/javascripts/application.js
120
+ examples/ar_webapp/public/javascripts/controls.js
121
+ examples/ar_webapp/public/javascripts/dragdrop.js
122
+ examples/ar_webapp/public/javascripts/effects.js
123
+ examples/ar_webapp/public/javascripts/prototype.js
124
+ examples/ar_webapp/public/robots.txt
125
+ examples/ar_webapp/script/about
126
+ examples/ar_webapp/script/breakpointer
127
+ examples/ar_webapp/script/console
128
+ examples/ar_webapp/script/destroy
129
+ examples/ar_webapp/script/generate
130
+ examples/ar_webapp/script/performance/benchmarker
131
+ examples/ar_webapp/script/performance/profiler
132
+ examples/ar_webapp/script/plugin
133
+ examples/ar_webapp/script/process/inspector
134
+ examples/ar_webapp/script/process/reaper
135
+ examples/ar_webapp/script/process/spawner
136
+ examples/ar_webapp/script/runner
137
+ examples/ar_webapp/script/server
138
+ examples/ar_webapp/test/fixtures/association_keys.yml
139
+ examples/ar_webapp/test/fixtures/hobbies.yml
140
+ examples/ar_webapp/test/fixtures/interests.yml
141
+ examples/ar_webapp/test/fixtures/people.yml
142
+ examples/ar_webapp/test/fixtures/ruby_sync_events.yml
143
+ examples/ar_webapp/test/fixtures/ruby_sync_operations.yml
144
+ examples/ar_webapp/test/fixtures/ruby_sync_states.yml
145
+ examples/ar_webapp/test/fixtures/ruby_sync_values.yml
146
+ examples/ar_webapp/test/test_helper.rb
147
+ examples/ar_webapp/test/unit/association_key_test.rb
148
+ examples/ar_webapp/test/unit/hobby_test.rb
149
+ examples/ar_webapp/test/unit/interest_test.rb
150
+ examples/ar_webapp/test/unit/person_test.rb
151
+ examples/ar_webapp/test/unit/ruby_sync_event_test.rb
152
+ examples/ar_webapp/test/unit/ruby_sync_observer_test.rb
153
+ examples/ar_webapp/test/unit/ruby_sync_operation_test.rb
154
+ examples/ar_webapp/test/unit/ruby_sync_state_test.rb
155
+ examples/ar_webapp/test/unit/ruby_sync_value_test.rb
156
+ examples/ar_webapp/tmp/sessions/ruby_sess.2295696b0af5f6dd
157
+ examples/ar_webapp/tmp/sessions/ruby_sess.26687aeb19c87669
158
+ examples/ar_webapp/tmp/sessions/ruby_sess.2855a3b0c8ea840b
159
+ examples/ar_webapp/tmp/sessions/ruby_sess.45d2d48a8330ff28
160
+ examples/ar_webapp/tmp/sessions/ruby_sess.7366b840f4ce9f12
161
+ examples/ar_webapp/tmp/sessions/ruby_sess.b2fc3f2e6d8ae555
162
+ examples/ar_webapp/tmp/sessions/ruby_sess.b6bf8470a62c02b0
163
+ examples/ims2/connectors/hr_db_connector.rb
164
+ examples/ims2/connectors/my_csv_connector.rb
165
+ examples/ims2/pipelines/hr_import_pipeline.rb
166
+ examples/my_ims/.DS_Store
167
+ examples/my_ims/connectors/my_csv_connector.rb
168
+ examples/my_ims/connectors/my_db_connector.rb
169
+ examples/my_ims/pipelines/my_pipeline.rb
170
+ gemspec
171
+ lib/.DS_Store
172
+ lib/net/.DS_Store
173
+ lib/net/ldif.rb
174
+ lib/ruby_sync.rb
175
+ lib/ruby_sync/connectors/active_record_association_handler.rb
176
+ lib/ruby_sync/connectors/active_record_connector.rb
177
+ lib/ruby_sync/connectors/active_record_event_handler.rb
178
+ lib/ruby_sync/connectors/base_connector.rb
179
+ lib/ruby_sync/connectors/connector_event_processing.rb
180
+ lib/ruby_sync/connectors/csv_file_connector.rb
181
+ lib/ruby_sync/connectors/file_connector.rb
182
+ lib/ruby_sync/connectors/ldap_connector.rb
183
+ lib/ruby_sync/connectors/memory_connector.rb
184
+ lib/ruby_sync/connectors/xml_connector.rb
185
+ lib/ruby_sync/event.rb
186
+ lib/ruby_sync/operation.rb
187
+ lib/ruby_sync/pipelines/base_pipeline.rb
188
+ lib/ruby_sync/util/metaid.rb
189
+ lib/ruby_sync/util/utilities.rb
190
+ lib/rubysync.rb
191
+ nbproject/private/private.properties
192
+ nbproject/project.properties
193
+ nbproject/project.xml
194
+ rubysync.tmproj
195
+ test/.DS_Store
196
+ test/data/example1.ldif
197
+ test/data/example2.ldif
198
+ test/data/example3.ldif
199
+ test/data/example4.ldif
200
+ test/data/example5.ldif
201
+ test/data/example6.ldif
202
+ test/data/example7.ldif
203
+ test/hashlike_tests.rb
204
+ test/ruby_sync_test.rb
205
+ test/tc_xml_connectors.rb
206
+ test/test_active_record_vault.rb
207
+ test/test_base_connector.rb
208
+ test/test_base_pipeline.rb
209
+ test/test_csv_file_connector.rb
210
+ test/test_event.rb
211
+ test/test_ldap_changelog.rb
212
+ test/test_ldap_connector.rb
213
+ test/test_ldap_vault.rb
214
+ test/test_ldif.rb
215
+ test/test_memory_connectors.rb
216
+ test/test_rubysync.rb
217
+ test/test_utilities.rb
218
+ test/ts_rubysync.rb
data/README.txt ADDED
@@ -0,0 +1,67 @@
1
+ rubysync
2
+ by Ritchie Young
3
+ http://rubysync.org
4
+
5
+ == DESCRIPTION:
6
+
7
+ RubySync is a tool for synchronizing part or all of your directory,
8
+ database or application data with anything else. It's event driven
9
+ so it will happily sit there monitoring changes and passing them on.
10
+ Alternatively, you can run it in one-shot mode and simply sync A with B.
11
+
12
+ You can configure RubySync to perform transformations on the data as it
13
+ syncs. RubySync is designed both as a handy utility to pack into your
14
+ directory management toolkit or as a fully-fledged provisioning system
15
+ for your organisation.
16
+
17
+
18
+ == FEATURES/PROBLEMS:
19
+
20
+ * Add support for running continually
21
+ * Test suites. Individual tests work but test suites have trouble ???
22
+
23
+ == SYNOPSIS:
24
+
25
+ This sets up the skeleton of a configuration for importing comma delimeted
26
+ text files into a database. Note, if the application happens to be a Rails
27
+ app then it can also export changes.
28
+
29
+ $ rubysync create db_demo
30
+ $ cd db_demo
31
+ $ rubysync connector my_csv -t csv_file
32
+ $ rubysync connector my_db -t active_record
33
+
34
+ You would then edit the files:
35
+
36
+ connectors/my_csv_connector.rb ;where to get CSV files, field names, etc
37
+ connectors/my_db_connector.rb ;how to connect to your DB or Rails app.
38
+
39
+ And enter:
40
+ $ rubysync pipeline my -C my_csv -V my_db
41
+
42
+ You would then edit the file pipelines/my_pipeline.rb to configure the
43
+ policy for synchronizing between the two connectors.
44
+
45
+ You may then execute the pipeline in one-shot mode (daemon mode is coming):
46
+
47
+ $ rubysync once my
48
+
49
+ == REQUIREMENTS:
50
+
51
+ * An RDBMS system if you want to sync one
52
+ * An LDAP server if you want to sync one
53
+
54
+ == INSTALL:
55
+
56
+ * sudo gem install rubysync -y
57
+
58
+ == LICENSE:
59
+
60
+ RubySync is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
61
+ as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
62
+
63
+ RubySync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
64
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
65
+
66
+ You should have received a copy of the GNU General Public License along with RubySync; if not, write to the
67
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA