dm-is-reflective 0.8.0 → 0.9.0

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 (71) hide show
  1. data/CHANGES +5 -1
  2. data/NOTICE +1 -11
  3. data/README +24 -24
  4. data/README.rdoc +122 -0
  5. data/Rakefile +26 -30
  6. data/TODO +4 -0
  7. data/dm-is-reflective.gemspec +29 -20
  8. data/lib/dm-is-reflective.rb +6 -4
  9. data/lib/dm-is-reflective/is/adapters/{abstract_adapter.rb → data_objects_adapter.rb} +15 -15
  10. data/lib/dm-is-reflective/is/adapters/mysql_adapter.rb +7 -8
  11. data/lib/dm-is-reflective/is/adapters/postgres_adapter.rb +7 -9
  12. data/lib/dm-is-reflective/is/adapters/{sqlite3_adapter.rb → sqlite_adapter.rb} +8 -11
  13. data/lib/dm-is-reflective/is/version.rb +1 -1
  14. data/lib/dm-is-reflective/version.rb +1 -1
  15. data/test/abstract.rb +13 -13
  16. data/test/setup_db.sh +12 -0
  17. data/test/{test_dm-is-reflexible.rb → test_dm-is-reflective.rb} +9 -9
  18. metadata +125 -123
  19. data/.gita/COMMIT_EDITMSG +0 -9
  20. data/.gita/HEAD +0 -1
  21. data/.gita/ORIG_HEAD +0 -1
  22. data/.gita/RENAMED-REF +0 -1
  23. data/.gita/config +0 -9
  24. data/.gita/description +0 -1
  25. data/.gita/gitk.cache +0 -6
  26. data/.gita/hooks/applypatch-msg +0 -15
  27. data/.gita/hooks/commit-msg +0 -24
  28. data/.gita/hooks/post-commit +0 -8
  29. data/.gita/hooks/post-receive +0 -16
  30. data/.gita/hooks/post-update +0 -8
  31. data/.gita/hooks/pre-applypatch +0 -14
  32. data/.gita/hooks/pre-commit +0 -70
  33. data/.gita/hooks/pre-rebase +0 -150
  34. data/.gita/hooks/prepare-commit-msg +0 -36
  35. data/.gita/hooks/update +0 -107
  36. data/.gita/index +0 -0
  37. data/.gita/info/exclude +0 -6
  38. data/.gita/info/refs +0 -26
  39. data/.gita/logs/HEAD +0 -40
  40. data/.gita/logs/refs/heads/dm-mapping +0 -1
  41. data/.gita/logs/refs/heads/master +0 -40
  42. data/.gita/logs/refs/heads/return-symbol +0 -0
  43. data/.gita/logs/refs/remotes/origin/dm-mapping +0 -1
  44. data/.gita/logs/refs/remotes/origin/master +0 -6
  45. data/.gita/logs/refs/remotes/origin/return-symbol +0 -0
  46. data/.gita/objects/5c/91380a1616b7c2d23e14eeb49d9edde58e1f47 +0 -2
  47. data/.gita/objects/63/71947bcb9c0dd1d3b3d6f449b2d4b4c6c81e63 +0 -0
  48. data/.gita/objects/73/23ae22118cc54fb0bbb0d6f51cc99191019b96 +0 -0
  49. data/.gita/objects/81/a0ab6e4dbd148faa0644307b313799027d3344 +0 -2
  50. data/.gita/objects/b2/9571a21e3bccb60079dfca630dac981f623489 +0 -5
  51. data/.gita/objects/cb/138acf9efc0f5b3ff91c644cae4dec868442e4 +0 -5
  52. data/.gita/objects/d5/66699fc7ba5237311cc44648d0cd2abbaa895e +0 -0
  53. data/.gita/objects/info/packs +0 -2
  54. data/.gita/objects/pack/pack-c9156ef3406b98f5f12875b13643df7a5f41e42c.idx +0 -0
  55. data/.gita/objects/pack/pack-c9156ef3406b98f5f12875b13643df7a5f41e42c.pack +0 -0
  56. data/.gita/packed-refs +0 -27
  57. data/.gita/refs/heads/master +0 -1
  58. data/.gita/refs/tags/dm-is-reflective-0.8.0 +0 -1
  59. data/tasks/ann.rake +0 -80
  60. data/tasks/bones.rake +0 -20
  61. data/tasks/gem.rake +0 -201
  62. data/tasks/git.rake +0 -40
  63. data/tasks/notes.rake +0 -27
  64. data/tasks/post_load.rake +0 -34
  65. data/tasks/rdoc.rake +0 -51
  66. data/tasks/rubyforge.rake +0 -55
  67. data/tasks/setup.rb +0 -294
  68. data/tasks/spec.rake +0 -54
  69. data/tasks/svn.rake +0 -47
  70. data/tasks/test.rake +0 -40
  71. data/tasks/zentest.rake +0 -36
data/.gita/index DELETED
Binary file
data/.gita/info/exclude DELETED
@@ -1,6 +0,0 @@
1
- # git-ls-files --others --exclude-from=.git/info/exclude
2
- # Lines that start with '#' are comments.
3
- # For a project mostly in C, the following would be a good set of
4
- # exclude patterns (uncomment them if you want to use them):
5
- # *.[oa]
6
- # *~
data/.gita/info/refs DELETED
@@ -1,26 +0,0 @@
1
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 refs/heads/dm-mapping
2
- 9403c8d2a0050f25a50b94a6514086c256dea074 refs/heads/master
3
- b2f24de5d89d74df621e11819f19ab8ba83c6478 refs/heads/return-symbol
4
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 refs/remotes/origin/dm-mapping
5
- 9403c8d2a0050f25a50b94a6514086c256dea074 refs/remotes/origin/master
6
- b2f24de5d89d74df621e11819f19ab8ba83c6478 refs/remotes/origin/return-symbol
7
- 3cefb8e4f04b668c083312726625bc032987e998 refs/tags/dm-mapping-0.2.0
8
- 44c19de49ff25aa2a78dfe7e631a1cfc472c95d9 refs/tags/dm-mapping-0.2.0^{}
9
- ee4ff6e640a41d0825935173380bc7579d19a1f7 refs/tags/dm-mapping-0.2.1
10
- f51cd1ce442e5f77d6a36abfdd27b63bdac7bc2a refs/tags/dm-mapping-0.2.1^{}
11
- 4d421dc119b93722252e1cc275746da9d1b7c219 refs/tags/dm-mapping-0.3.0
12
- c87eb23ab102203f336244381554ba01e25c2bf6 refs/tags/dm-mapping-0.3.0^{}
13
- 1a44b98f3ee856158b79833ba75794bd27ab2154 refs/tags/dm-mapping-0.4.0
14
- 3db298d98c55c2a73d355dae47f446c0c9da37ba refs/tags/dm-mapping-0.4.0^{}
15
- 85d4af8ac14e16c48dfa5193e348b0231d20888f refs/tags/dm-mapping-0.4.1
16
- c61ac215503302c51555c3fba87941d84b4da01b refs/tags/dm-mapping-0.4.1^{}
17
- aa0f320dc9fe46cb8a56429c01bfea2272df1fe2 refs/tags/dm-mapping-0.5.0
18
- 77bda6472cd95d1d3ca2c242cde290614aac2089 refs/tags/dm-mapping-0.5.0^{}
19
- 6f345cbc6b64d03c4f99074b0388a1ad8a0ea148 refs/tags/dm-mapping-0.6.0
20
- 7c0c7f1cb3f26791d5fea369d4ef4dff87945a21 refs/tags/dm-mapping-0.6.0^{}
21
- bb626b7e0e84544a8309a24fa4f99ba520001f2b refs/tags/dm-mapping-0.6.1
22
- a1156b3678d8018c73e9e5132842cdf486102596 refs/tags/dm-mapping-0.6.1^{}
23
- ee8d11361831fec5acf62c9f7db78e9d3262974d refs/tags/dm-mapping-0.6.2
24
- 00c25ab33d925777b982b2e467feefbd8fcc6799 refs/tags/dm-mapping-0.6.2^{}
25
- fb4d3bc4aed297846605bb2fae1df713cd7a417f refs/tags/dm-mapping-0.7.0
26
- bb8b0732858c8910258956c5c302971fcb90f14a refs/tags/dm-mapping-0.7.0^{}
data/.gita/logs/HEAD DELETED
@@ -1,40 +0,0 @@
1
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 8e094d1a949e22a5dcf5421d147088013b61e5a3 Lin Jen-Shin <godfat@godfat.org> 1245509846 +0800 checkout: moving from master to dm-is-reflexible
2
- 8e094d1a949e22a5dcf5421d147088013b61e5a3 2077f4eb2d345ca51d2406ed923d02b4da9745d1 Lin Jen-Shin <godfat@godfat.org> 1245509921 +0800 commit: fix Rakefile constant and remove diagram in rdoc
3
- 2077f4eb2d345ca51d2406ed923d02b4da9745d1 9dbc29572cc3bc5c1b49255015fe42093ac9d511 Lin Jen-Shin <godfat@godfat.org> 1245510742 +0800 commit: :size is deprecated, use :length on String.
4
- 9dbc29572cc3bc5c1b49255015fe42093ac9d511 7a1669e27923a8f2a5e3c01ecfc9b246943b582c Lin Jen-Shin <godfat@godfat.org> 1245510776 +0800 commit: print notice message if no adapter is installed
5
- 7a1669e27923a8f2a5e3c01ecfc9b246943b582c 383fc204032b232171408a9fc55a48e7a5bc33e4 Lin Jen-Shin <godfat@godfat.org> 1245511233 +0800 merge master: Merge made by recursive.
6
- 383fc204032b232171408a9fc55a48e7a5bc33e4 6432983652a43ee54f261c9d96f4e79a0958b868 Lin Jen-Shin <godfat@godfat.org> 1245512027 +0800 commit: no more DM::Text now, use DataMapper::Types::Text
7
- 6432983652a43ee54f261c9d96f4e79a0958b868 c40d6850c12563bcfd7cc375a4344db682be7c22 Lin Jen-Shin <godfat@godfat.org> 1245512125 +0800 commit: TypeMap is plain Hash now.
8
- c40d6850c12563bcfd7cc375a4344db682be7c22 304f97828d0e1063eff543c9ca3c032248690ef2 Lin Jen-Shin <godfat@godfat.org> 1245512286 +0800 commit: too many warnings in addressable, dm-core, extlib...
9
- 304f97828d0e1063eff543c9ca3c032248690ef2 95f673d1c313d447a077b42ce928667c115b8214 Lin Jen-Shin <godfat@godfat.org> 1245513438 +0800 commit: more :size to :length
10
- 95f673d1c313d447a077b42ce928667c115b8214 3a35b3111bae32316faaad0383b58a99d37ddad0 Lin Jen-Shin <godfat@godfat.org> 1245513476 +0800 commit: explicitly tell belongs_to need nullable
11
- 3a35b3111bae32316faaad0383b58a99d37ddad0 0949f4d53f6c45546de300c9d364dc432d6c3076 Lin Jen-Shin <godfat@godfat.org> 1245513528 +0800 commit: no real DateTime now?
12
- 0949f4d53f6c45546de300c9d364dc432d6c3076 2bee95c5acb7c379a7ae98b71be2225dc132e023 Lin Jen-Shin <godfat@godfat.org> 1245513539 +0800 commit: no strange UL in sqlite3 now
13
- 2bee95c5acb7c379a7ae98b71be2225dc132e023 36d64aea8f6b25c56810f56e8c65fdebd883bac6 Lin Jen-Shin <godfat@godfat.org> 1245514277 +0800 commit: eliminate warning with Serial and Boolean
14
- 36d64aea8f6b25c56810f56e8c65fdebd883bac6 2a498826d2dd1fc2133798cddd0e33c65298e8f8 Lin Jen-Shin <godfat@godfat.org> 1245514350 +0800 commit: it's DateTime after all??? why it's Time in last unit test?
15
- 2a498826d2dd1fc2133798cddd0e33c65298e8f8 b9864779690ae8ff83ef9a477058936cfb30c7c2 Lin Jen-Shin <godfat@godfat.org> 1245515851 +0800 commit: type_map is not needed anymore
16
- b9864779690ae8ff83ef9a477058936cfb30c7c2 5860b0b01837db9aff8fa9c91bb7efae77da408b Lin Jen-Shin <godfat@godfat.org> 1245515893 +0800 commit: unify Serial and Boolean, reject Types::Object and Time...
17
- 5860b0b01837db9aff8fa9c91bb7efae77da408b e33cfddd5ce171eb040199a01cbfa76ec6269580 Lin Jen-Shin <godfat@godfat.org> 1245516164 +0800 commit: Serial is not Integer anymore. foreign key is still Integer currently..
18
- e33cfddd5ce171eb040199a01cbfa76ec6269580 2894a66ef8652f2267a7a3450c0b63960558ac70 Lin Jen-Shin <godfat@godfat.org> 1245516373 +0800 commit: require dm-core 0.10.0 and later now
19
- 2894a66ef8652f2267a7a3450c0b63960558ac70 dee9cc4961ee065410cb8030800d80fb491bc3d3 Lin Jen-Shin <godfat@godfat.org> 1245517855 +0800 commit: bump to 0.8.0 with new name `dm-is-reflexible'
20
- dee9cc4961ee065410cb8030800d80fb491bc3d3 1c34dfbdd6fe946cd81481a96b3aa7974a0be9f9 Lin Jen-Shin <godfat@godfat.org> 1245517913 +0800 commit: no DATETIME in default lookup now
21
- 1c34dfbdd6fe946cd81481a96b3aa7974a0be9f9 ab6fa2c3175841744a0f07b6ef92310d9b6832bc Lin Jen-Shin <godfat@godfat.org> 1245517935 +0800 commit: yet another size => length
22
- ab6fa2c3175841744a0f07b6ef92310d9b6832bc 1429dc439f1b4d4e2948558689c2a7dbf206ccdc Lin Jen-Shin <godfat@godfat.org> 1245517954 +0800 commit: use length for Text as well, now belongs_to has key as well
23
- 1429dc439f1b4d4e2948558689c2a7dbf206ccdc 10792a9919a656092a5abdc1134ea1c0209d2480 Lin Jen-Shin <godfat@godfat.org> 1245517989 +0800 commit: but sqlite3 didn't support FK, so...
24
- 10792a9919a656092a5abdc1134ea1c0209d2480 241d006070e267aac1675df504e121df5947db10 Lin Jen-Shin <godfat@godfat.org> 1245518006 +0800 commit: only mysql couldn't tell it's Boolean or Integer
25
- 241d006070e267aac1675df504e121df5947db10 63fa4fb7af2cae0741a266fd470b319d706a6bf8 Lin Jen-Shin <godfat@godfat.org> 1245519309 +0800 commit: actually, i don't know what is a MUL in mysql, so just ignore it...
26
- 63fa4fb7af2cae0741a266fd470b319d706a6bf8 c52a6bc70b6ab664d4e8f569bc139d27fbfe80e5 Lin Jen-Shin <godfat@godfat.org> 1245519358 +0800 commit: yet another size to length
27
- c52a6bc70b6ab664d4e8f569bc139d27fbfe80e5 644347b12b0058329341b8b3e2e50172c7b9bda3 Lin Jen-Shin <godfat@godfat.org> 1245519371 +0800 commit: fix postgres sequence name
28
- 644347b12b0058329341b8b3e2e50172c7b9bda3 21b697177cf0a6a5864e46ff02b5b89511f6107f Lin Jen-Shin <godfat@godfat.org> 1245519387 +0800 commit: more types for postgres
29
- 21b697177cf0a6a5864e46ff02b5b89511f6107f a70749d79b68cb73c97dec0721542a8dc78bb030 Lin Jen-Shin <godfat@godfat.org> 1245521204 +0800 commit: talk more like a dm plugin, and update some document
30
- a70749d79b68cb73c97dec0721542a8dc78bb030 d0e22ce41a0ee3d2fd4d07d3ddd9d36b4cf8b418 Lin Jen-Shin <godfat@godfat.org> 1245521378 +0800 commit: new gemspec
31
- d0e22ce41a0ee3d2fd4d07d3ddd9d36b4cf8b418 dd097f7762a9919e474ccca014c92621e37158ec Lin Jen-Shin <godfat@godfat.org> 1245521839 +0800 commit: update gemspec and more name issue
32
- ce5bef6bfc675042e852ca3a0b8008841abe3f3e 98f83544a720cc88a3cd88618520affaee2fb5b0 Lin Jen-Shin <godfat@godfat.org> 1245568280 +0800 commit: be consistent with dm-core
33
- 98f83544a720cc88a3cd88618520affaee2fb5b0 225dc844c34320d836a5f7fe1df6408c6a6b66fe Lin Jen-Shin <godfat@godfat.org> 1245569199 +0800 commit: sorry but, dm-is-reflexible makes more sense?
34
- 225dc844c34320d836a5f7fe1df6408c6a6b66fe e17d93b9d2210f1e4d8f52f2a712a17bc0eba943 Lin Jen-Shin <godfat@godfat.org> 1245571013 +0800 commit: remove comments
35
- e17d93b9d2210f1e4d8f52f2a712a17bc0eba943 2f02042049b42419e09cbad69e0e1f113802319d Lin Jen-Shin <godfat@godfat.org> 1245593847 +0800 commit: no more Extlib::Hook, use abstract adapter to load curr adapter. more:
36
- 82364c60113da13168b96e79db1a298b0f8bec6d ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 Lin Jen-Shin <godfat@godfat.org> 1245595431 +0800 commit: renamed all mapping to reflect
37
- ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 3f756c209343909918f9a48c1e2298d9f49b4fd8 Lin Jen-Shin <godfat@godfat.org> 1245600781 +0800 commit: rearrange source code layout. try to update github HEAD
38
- 3f756c209343909918f9a48c1e2298d9f49b4fd8 534b609e76ad0a3e36c9c38b632ae921e12f1b78 Lin Jen-Shin <godfat@godfat.org> 1248016707 +0800 commit: [sqlite3_adapter.rb] added type mapping for sqlite3
39
- 534b609e76ad0a3e36c9c38b632ae921e12f1b78 9403c8d2a0050f25a50b94a6514086c256dea074 Lin Jen-Shin <godfat@godfat.org> 1252463489 +0800 commit: use Text.length instead of Text.size which is nil.. fixed for 0.10RC2
40
- 9403c8d2a0050f25a50b94a6514086c256dea074 5c91380a1616b7c2d23e14eeb49d9edde58e1f47 Lin Jen-Shin <godfat@godfat.org> 1253105423 +0800 commit: [CHANGES] adapted to dm-core 0.10.0. first rubyforge gem release.
@@ -1 +0,0 @@
1
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 b263e1adc9f508780ee8f0e69154266e04ae5ee5 Lin Jen-Shin <godfat@godfat.org> 1245567071 +0800 Branch: renamed refs/heads/master to refs/heads/dm-mapping
@@ -1,40 +0,0 @@
1
- 8e094d1a949e22a5dcf5421d147088013b61e5a3 2077f4eb2d345ca51d2406ed923d02b4da9745d1 Lin Jen-Shin <godfat@godfat.org> 1245509921 +0800 commit: fix Rakefile constant and remove diagram in rdoc
2
- 2077f4eb2d345ca51d2406ed923d02b4da9745d1 9dbc29572cc3bc5c1b49255015fe42093ac9d511 Lin Jen-Shin <godfat@godfat.org> 1245510742 +0800 commit: :size is deprecated, use :length on String.
3
- 9dbc29572cc3bc5c1b49255015fe42093ac9d511 7a1669e27923a8f2a5e3c01ecfc9b246943b582c Lin Jen-Shin <godfat@godfat.org> 1245510776 +0800 commit: print notice message if no adapter is installed
4
- 7a1669e27923a8f2a5e3c01ecfc9b246943b582c 383fc204032b232171408a9fc55a48e7a5bc33e4 Lin Jen-Shin <godfat@godfat.org> 1245511233 +0800 merge master: Merge made by recursive.
5
- 383fc204032b232171408a9fc55a48e7a5bc33e4 6432983652a43ee54f261c9d96f4e79a0958b868 Lin Jen-Shin <godfat@godfat.org> 1245512027 +0800 commit: no more DM::Text now, use DataMapper::Types::Text
6
- 6432983652a43ee54f261c9d96f4e79a0958b868 c40d6850c12563bcfd7cc375a4344db682be7c22 Lin Jen-Shin <godfat@godfat.org> 1245512125 +0800 commit: TypeMap is plain Hash now.
7
- c40d6850c12563bcfd7cc375a4344db682be7c22 304f97828d0e1063eff543c9ca3c032248690ef2 Lin Jen-Shin <godfat@godfat.org> 1245512286 +0800 commit: too many warnings in addressable, dm-core, extlib...
8
- 304f97828d0e1063eff543c9ca3c032248690ef2 95f673d1c313d447a077b42ce928667c115b8214 Lin Jen-Shin <godfat@godfat.org> 1245513438 +0800 commit: more :size to :length
9
- 95f673d1c313d447a077b42ce928667c115b8214 3a35b3111bae32316faaad0383b58a99d37ddad0 Lin Jen-Shin <godfat@godfat.org> 1245513476 +0800 commit: explicitly tell belongs_to need nullable
10
- 3a35b3111bae32316faaad0383b58a99d37ddad0 0949f4d53f6c45546de300c9d364dc432d6c3076 Lin Jen-Shin <godfat@godfat.org> 1245513528 +0800 commit: no real DateTime now?
11
- 0949f4d53f6c45546de300c9d364dc432d6c3076 2bee95c5acb7c379a7ae98b71be2225dc132e023 Lin Jen-Shin <godfat@godfat.org> 1245513539 +0800 commit: no strange UL in sqlite3 now
12
- 2bee95c5acb7c379a7ae98b71be2225dc132e023 36d64aea8f6b25c56810f56e8c65fdebd883bac6 Lin Jen-Shin <godfat@godfat.org> 1245514277 +0800 commit: eliminate warning with Serial and Boolean
13
- 36d64aea8f6b25c56810f56e8c65fdebd883bac6 2a498826d2dd1fc2133798cddd0e33c65298e8f8 Lin Jen-Shin <godfat@godfat.org> 1245514350 +0800 commit: it's DateTime after all??? why it's Time in last unit test?
14
- 2a498826d2dd1fc2133798cddd0e33c65298e8f8 b9864779690ae8ff83ef9a477058936cfb30c7c2 Lin Jen-Shin <godfat@godfat.org> 1245515851 +0800 commit: type_map is not needed anymore
15
- b9864779690ae8ff83ef9a477058936cfb30c7c2 5860b0b01837db9aff8fa9c91bb7efae77da408b Lin Jen-Shin <godfat@godfat.org> 1245515893 +0800 commit: unify Serial and Boolean, reject Types::Object and Time...
16
- 5860b0b01837db9aff8fa9c91bb7efae77da408b e33cfddd5ce171eb040199a01cbfa76ec6269580 Lin Jen-Shin <godfat@godfat.org> 1245516164 +0800 commit: Serial is not Integer anymore. foreign key is still Integer currently..
17
- e33cfddd5ce171eb040199a01cbfa76ec6269580 2894a66ef8652f2267a7a3450c0b63960558ac70 Lin Jen-Shin <godfat@godfat.org> 1245516373 +0800 commit: require dm-core 0.10.0 and later now
18
- 2894a66ef8652f2267a7a3450c0b63960558ac70 dee9cc4961ee065410cb8030800d80fb491bc3d3 Lin Jen-Shin <godfat@godfat.org> 1245517855 +0800 commit: bump to 0.8.0 with new name `dm-is-reflexible'
19
- dee9cc4961ee065410cb8030800d80fb491bc3d3 1c34dfbdd6fe946cd81481a96b3aa7974a0be9f9 Lin Jen-Shin <godfat@godfat.org> 1245517913 +0800 commit: no DATETIME in default lookup now
20
- 1c34dfbdd6fe946cd81481a96b3aa7974a0be9f9 ab6fa2c3175841744a0f07b6ef92310d9b6832bc Lin Jen-Shin <godfat@godfat.org> 1245517935 +0800 commit: yet another size => length
21
- ab6fa2c3175841744a0f07b6ef92310d9b6832bc 1429dc439f1b4d4e2948558689c2a7dbf206ccdc Lin Jen-Shin <godfat@godfat.org> 1245517954 +0800 commit: use length for Text as well, now belongs_to has key as well
22
- 1429dc439f1b4d4e2948558689c2a7dbf206ccdc 10792a9919a656092a5abdc1134ea1c0209d2480 Lin Jen-Shin <godfat@godfat.org> 1245517989 +0800 commit: but sqlite3 didn't support FK, so...
23
- 10792a9919a656092a5abdc1134ea1c0209d2480 241d006070e267aac1675df504e121df5947db10 Lin Jen-Shin <godfat@godfat.org> 1245518006 +0800 commit: only mysql couldn't tell it's Boolean or Integer
24
- 241d006070e267aac1675df504e121df5947db10 63fa4fb7af2cae0741a266fd470b319d706a6bf8 Lin Jen-Shin <godfat@godfat.org> 1245519309 +0800 commit: actually, i don't know what is a MUL in mysql, so just ignore it...
25
- 63fa4fb7af2cae0741a266fd470b319d706a6bf8 c52a6bc70b6ab664d4e8f569bc139d27fbfe80e5 Lin Jen-Shin <godfat@godfat.org> 1245519358 +0800 commit: yet another size to length
26
- c52a6bc70b6ab664d4e8f569bc139d27fbfe80e5 644347b12b0058329341b8b3e2e50172c7b9bda3 Lin Jen-Shin <godfat@godfat.org> 1245519371 +0800 commit: fix postgres sequence name
27
- 644347b12b0058329341b8b3e2e50172c7b9bda3 21b697177cf0a6a5864e46ff02b5b89511f6107f Lin Jen-Shin <godfat@godfat.org> 1245519387 +0800 commit: more types for postgres
28
- 21b697177cf0a6a5864e46ff02b5b89511f6107f a70749d79b68cb73c97dec0721542a8dc78bb030 Lin Jen-Shin <godfat@godfat.org> 1245521204 +0800 commit: talk more like a dm plugin, and update some document
29
- a70749d79b68cb73c97dec0721542a8dc78bb030 d0e22ce41a0ee3d2fd4d07d3ddd9d36b4cf8b418 Lin Jen-Shin <godfat@godfat.org> 1245521378 +0800 commit: new gemspec
30
- d0e22ce41a0ee3d2fd4d07d3ddd9d36b4cf8b418 dd097f7762a9919e474ccca014c92621e37158ec Lin Jen-Shin <godfat@godfat.org> 1245521839 +0800 commit: update gemspec and more name issue
31
- ce5bef6bfc675042e852ca3a0b8008841abe3f3e ce5bef6bfc675042e852ca3a0b8008841abe3f3e Lin Jen-Shin <godfat@godfat.org> 1245567083 +0800 Branch: renamed refs/heads/dm-is-reflexible to refs/heads/master
32
- ce5bef6bfc675042e852ca3a0b8008841abe3f3e 98f83544a720cc88a3cd88618520affaee2fb5b0 Lin Jen-Shin <godfat@godfat.org> 1245568280 +0800 commit: be consistent with dm-core
33
- 98f83544a720cc88a3cd88618520affaee2fb5b0 225dc844c34320d836a5f7fe1df6408c6a6b66fe Lin Jen-Shin <godfat@godfat.org> 1245569199 +0800 commit: sorry but, dm-is-reflexible makes more sense?
34
- 225dc844c34320d836a5f7fe1df6408c6a6b66fe e17d93b9d2210f1e4d8f52f2a712a17bc0eba943 Lin Jen-Shin <godfat@godfat.org> 1245571013 +0800 commit: remove comments
35
- e17d93b9d2210f1e4d8f52f2a712a17bc0eba943 2f02042049b42419e09cbad69e0e1f113802319d Lin Jen-Shin <godfat@godfat.org> 1245593847 +0800 commit: no more Extlib::Hook, use abstract adapter to load curr adapter. more:
36
- 82364c60113da13168b96e79db1a298b0f8bec6d ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 Lin Jen-Shin <godfat@godfat.org> 1245595431 +0800 commit: renamed all mapping to reflect
37
- ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 3f756c209343909918f9a48c1e2298d9f49b4fd8 Lin Jen-Shin <godfat@godfat.org> 1245600781 +0800 commit: rearrange source code layout. try to update github HEAD
38
- 3f756c209343909918f9a48c1e2298d9f49b4fd8 534b609e76ad0a3e36c9c38b632ae921e12f1b78 Lin Jen-Shin <godfat@godfat.org> 1248016707 +0800 commit: [sqlite3_adapter.rb] added type mapping for sqlite3
39
- 534b609e76ad0a3e36c9c38b632ae921e12f1b78 9403c8d2a0050f25a50b94a6514086c256dea074 Lin Jen-Shin <godfat@godfat.org> 1252463489 +0800 commit: use Text.length instead of Text.size which is nil.. fixed for 0.10RC2
40
- 9403c8d2a0050f25a50b94a6514086c256dea074 5c91380a1616b7c2d23e14eeb49d9edde58e1f47 Lin Jen-Shin <godfat@godfat.org> 1253105423 +0800 commit: [CHANGES] adapted to dm-core 0.10.0. first rubyforge gem release.
File without changes
@@ -1 +0,0 @@
1
- 0000000000000000000000000000000000000000 b263e1adc9f508780ee8f0e69154266e04ae5ee5 godfat <godfat@220-135-28-18.HINET-IP.hinet.net> 1245566936 +0800 update by push
@@ -1,6 +0,0 @@
1
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 ce5bef6bfc675042e852ca3a0b8008841abe3f3e godfat <godfat@220-135-28-18.HINET-IP.hinet.net> 1245566971 +0800 update by push
2
- ce5bef6bfc675042e852ca3a0b8008841abe3f3e 225dc844c34320d836a5f7fe1df6408c6a6b66fe Lin Jen-Shin <godfat@godfat.org> 1245569275 +0800 update by push
3
- 225dc844c34320d836a5f7fe1df6408c6a6b66fe ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 Lin Jen-Shin <godfat@godfat.org> 1245599237 +0800 update by push
4
- ab10cdb7f3b3f16e877efe1f312ef62c1359b0d1 3f756c209343909918f9a48c1e2298d9f49b4fd8 Lin Jen-Shin <godfat@godfat.org> 1245600802 +0800 update by push
5
- 3f756c209343909918f9a48c1e2298d9f49b4fd8 534b609e76ad0a3e36c9c38b632ae921e12f1b78 Lin Jen-Shin <godfat@godfat.org> 1248016733 +0800 update by push
6
- 534b609e76ad0a3e36c9c38b632ae921e12f1b78 9403c8d2a0050f25a50b94a6514086c256dea074 Lin Jen-Shin <godfat@godfat.org> 1252463560 +0800 update by push
File without changes
@@ -1,2 +0,0 @@
1
- x���J1F]�)�t����("���.��Mr3�LJ�.|{}W��'�e�;����� �:�B(i�d���)�Ϙ���|�,.�x� ��7�h�(Kc0�4�]R�e&��[?���
2
- o�m�� ��? �M� ���Qv�E�-�����|z}�xy>~e�t��+�e�jc�A���];�[�.[�� 4>3]y?NV�
@@ -1,2 +0,0 @@
1
- xe��
2
- �0]�+�^R�l܉;� Mnc�&���oK������jp#yx�����g���:'���⠌7�=���:R���)VRW��h�i��jₔ5}ö+`�{Lp�D�N!����>M.� \hə#�#�Z�֘l�1��,X��m�>�
@@ -1,5 +0,0 @@
1
- xe��
2
- �0E]�+f/)������N��i3��H
3
- ��-]��.�S��ꐆ��Q���ۡ����&jm5YKMO�ꎕ�`L�
4
- +��N<�<�{���U_����"�(��s��O֙r٧Jٟe�P4Z"E/c�L���a����
5
- �P�C���~mN>�
@@ -1,5 +0,0 @@
1
- xe�A
2
- � ��_ c�PJ���]O`�k-�#�޾ Yv��T�kq�� mi5���~l�Z��C;�4:�R!��@���`�4�J��p�3-�߫&.HY��] �c�&�x�p
3
- �yS/�4��3�V
4
- �d��b��kASc
5
- ��}.X��1'�K?m�>�
@@ -1,2 +0,0 @@
1
- P pack-c9156ef3406b98f5f12875b13643df7a5f41e42c.pack
2
-
data/.gita/packed-refs DELETED
@@ -1,27 +0,0 @@
1
- # pack-refs with: peeled
2
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 refs/heads/dm-mapping
3
- 9403c8d2a0050f25a50b94a6514086c256dea074 refs/heads/master
4
- b2f24de5d89d74df621e11819f19ab8ba83c6478 refs/heads/return-symbol
5
- b263e1adc9f508780ee8f0e69154266e04ae5ee5 refs/remotes/origin/dm-mapping
6
- 9403c8d2a0050f25a50b94a6514086c256dea074 refs/remotes/origin/master
7
- b2f24de5d89d74df621e11819f19ab8ba83c6478 refs/remotes/origin/return-symbol
8
- 3cefb8e4f04b668c083312726625bc032987e998 refs/tags/dm-mapping-0.2.0
9
- ^44c19de49ff25aa2a78dfe7e631a1cfc472c95d9
10
- ee4ff6e640a41d0825935173380bc7579d19a1f7 refs/tags/dm-mapping-0.2.1
11
- ^f51cd1ce442e5f77d6a36abfdd27b63bdac7bc2a
12
- 4d421dc119b93722252e1cc275746da9d1b7c219 refs/tags/dm-mapping-0.3.0
13
- ^c87eb23ab102203f336244381554ba01e25c2bf6
14
- 1a44b98f3ee856158b79833ba75794bd27ab2154 refs/tags/dm-mapping-0.4.0
15
- ^3db298d98c55c2a73d355dae47f446c0c9da37ba
16
- 85d4af8ac14e16c48dfa5193e348b0231d20888f refs/tags/dm-mapping-0.4.1
17
- ^c61ac215503302c51555c3fba87941d84b4da01b
18
- aa0f320dc9fe46cb8a56429c01bfea2272df1fe2 refs/tags/dm-mapping-0.5.0
19
- ^77bda6472cd95d1d3ca2c242cde290614aac2089
20
- 6f345cbc6b64d03c4f99074b0388a1ad8a0ea148 refs/tags/dm-mapping-0.6.0
21
- ^7c0c7f1cb3f26791d5fea369d4ef4dff87945a21
22
- bb626b7e0e84544a8309a24fa4f99ba520001f2b refs/tags/dm-mapping-0.6.1
23
- ^a1156b3678d8018c73e9e5132842cdf486102596
24
- ee8d11361831fec5acf62c9f7db78e9d3262974d refs/tags/dm-mapping-0.6.2
25
- ^00c25ab33d925777b982b2e467feefbd8fcc6799
26
- fb4d3bc4aed297846605bb2fae1df713cd7a417f refs/tags/dm-mapping-0.7.0
27
- ^bb8b0732858c8910258956c5c302971fcb90f14a
@@ -1 +0,0 @@
1
- 5c91380a1616b7c2d23e14eeb49d9edde58e1f47
@@ -1 +0,0 @@
1
- b29571a21e3bccb60079dfca630dac981f623489
data/tasks/ann.rake DELETED
@@ -1,80 +0,0 @@
1
-
2
- begin
3
- require 'bones/smtp_tls'
4
- rescue LoadError
5
- require 'net/smtp'
6
- end
7
- require 'time'
8
-
9
- namespace :ann do
10
-
11
- # A prerequisites task that all other tasks depend upon
12
- task :prereqs
13
-
14
- file PROJ.ann.file do
15
- ann = PROJ.ann
16
- puts "Generating #{ann.file}"
17
- File.open(ann.file,'w') do |fd|
18
- fd.puts("#{PROJ.name} version #{PROJ.version}")
19
- fd.puts(" by #{Array(PROJ.authors).first}") if PROJ.authors
20
- fd.puts(" #{PROJ.url}") if PROJ.url.valid?
21
- fd.puts(" (the \"#{PROJ.release_name}\" release)") if PROJ.release_name
22
- fd.puts
23
- fd.puts("== DESCRIPTION")
24
- fd.puts
25
- fd.puts(PROJ.description)
26
- fd.puts
27
- fd.puts(PROJ.changes.sub(%r/^.*$/, '== CHANGES'))
28
- fd.puts
29
- ann.paragraphs.each do |p|
30
- fd.puts "== #{p.upcase}"
31
- fd.puts
32
- fd.puts paragraphs_of(PROJ.readme_file, p).join("\n\n")
33
- fd.puts
34
- end
35
- fd.puts ann.text if ann.text
36
- end
37
- end
38
-
39
- desc "Create an announcement file"
40
- task :announcement => ['ann:prereqs', PROJ.ann.file]
41
-
42
- desc "Send an email announcement"
43
- task :email => ['ann:prereqs', PROJ.ann.file] do
44
- ann = PROJ.ann
45
- from = ann.email[:from] || Array(PROJ.authors).first || PROJ.email
46
- to = Array(ann.email[:to])
47
-
48
- ### build a mail header for RFC 822
49
- rfc822msg = "From: #{from}\n"
50
- rfc822msg << "To: #{to.join(',')}\n"
51
- rfc822msg << "Subject: [ANN] #{PROJ.name} #{PROJ.version}"
52
- rfc822msg << " (#{PROJ.release_name})" if PROJ.release_name
53
- rfc822msg << "\n"
54
- rfc822msg << "Date: #{Time.new.rfc822}\n"
55
- rfc822msg << "Message-Id: "
56
- rfc822msg << "<#{"%.8f" % Time.now.to_f}@#{ann.email[:domain]}>\n\n"
57
- rfc822msg << File.read(ann.file)
58
-
59
- params = [:server, :port, :domain, :acct, :passwd, :authtype].map do |key|
60
- ann.email[key]
61
- end
62
-
63
- params[3] = PROJ.email if params[3].nil?
64
-
65
- if params[4].nil?
66
- STDOUT.write "Please enter your e-mail password (#{params[3]}): "
67
- params[4] = STDIN.gets.chomp
68
- end
69
-
70
- ### send email
71
- Net::SMTP.start(*params) {|smtp| smtp.sendmail(rfc822msg, from, to)}
72
- end
73
- end # namespace :ann
74
-
75
- desc 'Alias to ann:announcement'
76
- task :ann => 'ann:announcement'
77
-
78
- CLOBBER << PROJ.ann.file
79
-
80
- # EOF
data/tasks/bones.rake DELETED
@@ -1,20 +0,0 @@
1
-
2
- if HAVE_BONES
3
-
4
- namespace :bones do
5
-
6
- desc 'Show the PROJ open struct'
7
- task :debug do |t|
8
- atr = if t.application.top_level_tasks.length == 2
9
- t.application.top_level_tasks.pop
10
- end
11
-
12
- if atr then Bones::Debug.show_attr(PROJ, atr)
13
- else Bones::Debug.show PROJ end
14
- end
15
-
16
- end # namespace :bones
17
-
18
- end # HAVE_BONES
19
-
20
- # EOF
data/tasks/gem.rake DELETED
@@ -1,201 +0,0 @@
1
-
2
- require 'find'
3
- require 'rake/packagetask'
4
- require 'rubygems/user_interaction'
5
- require 'rubygems/builder'
6
-
7
- module Bones
8
- class GemPackageTask < Rake::PackageTask
9
- # Ruby GEM spec containing the metadata for this package. The
10
- # name, version and package_files are automatically determined
11
- # from the GEM spec and don't need to be explicitly provided.
12
- #
13
- attr_accessor :gem_spec
14
-
15
- # Tasks from the Bones gem directory
16
- attr_reader :bones_files
17
-
18
- # Create a GEM Package task library. Automatically define the gem
19
- # if a block is given. If no block is supplied, then +define+
20
- # needs to be called to define the task.
21
- #
22
- def initialize(gem_spec)
23
- init(gem_spec)
24
- yield self if block_given?
25
- define if block_given?
26
- end
27
-
28
- # Initialization tasks without the "yield self" or define
29
- # operations.
30
- #
31
- def init(gem)
32
- super(gem.name, gem.version)
33
- @gem_spec = gem
34
- @package_files += gem_spec.files if gem_spec.files
35
- @bones_files = []
36
-
37
- local_setup = File.join(Dir.pwd, %w[tasks setup.rb])
38
- if !test(?e, local_setup)
39
- Dir.glob(::Bones.path(%w[lib bones tasks *])).each {|fn| bones_files << fn}
40
- end
41
- end
42
-
43
- # Create the Rake tasks and actions specified by this
44
- # GemPackageTask. (+define+ is automatically called if a block is
45
- # given to +new+).
46
- #
47
- def define
48
- super
49
- task :prereqs
50
- task :package => ['gem:prereqs', "#{package_dir_path}/#{gem_file}"]
51
- file "#{package_dir_path}/#{gem_file}" => [package_dir_path] + package_files + bones_files do
52
- when_writing("Creating GEM") {
53
- chdir(package_dir_path) do
54
- Gem::Builder.new(gem_spec).build
55
- verbose(true) {
56
- mv gem_file, "../#{gem_file}"
57
- }
58
- end
59
- }
60
- end
61
-
62
- file package_dir_path => bones_files do
63
- mkdir_p package_dir rescue nil
64
-
65
- gem_spec.files = (gem_spec.files +
66
- bones_files.map {|fn| File.join('tasks', File.basename(fn))}).sort
67
-
68
- bones_files.each do |fn|
69
- base_fn = File.join('tasks', File.basename(fn))
70
- f = File.join(package_dir_path, base_fn)
71
- fdir = File.dirname(f)
72
- mkdir_p(fdir) if !File.exist?(fdir)
73
- if File.directory?(fn)
74
- mkdir_p(f)
75
- else
76
- raise "file name conflict for '#{base_fn}' (conflicts with '#{fn}')" if test(?e, f)
77
- safe_ln(fn, f)
78
- end
79
- end
80
- end
81
- end
82
-
83
- def gem_file
84
- if @gem_spec.platform == Gem::Platform::RUBY
85
- "#{package_name}.gem"
86
- else
87
- "#{package_name}-#{@gem_spec.platform}.gem"
88
- end
89
- end
90
- end # class GemPackageTask
91
- end # module Bones
92
-
93
- namespace :gem do
94
-
95
- PROJ.gem._spec = Gem::Specification.new do |s|
96
- s.name = PROJ.name
97
- s.version = PROJ.version
98
- s.summary = PROJ.summary
99
- s.authors = Array(PROJ.authors)
100
- s.email = PROJ.email
101
- s.homepage = Array(PROJ.url).first
102
- s.rubyforge_project = PROJ.rubyforge.name
103
-
104
- s.description = PROJ.description
105
-
106
- PROJ.gem.dependencies.each do |dep|
107
- s.add_dependency(*dep)
108
- end
109
-
110
- PROJ.gem.development_dependencies.each do |dep|
111
- s.add_development_dependency(*dep)
112
- end
113
-
114
- s.files = PROJ.gem.files
115
- s.executables = PROJ.gem.executables.map {|fn| File.basename(fn)}
116
- s.extensions = PROJ.gem.files.grep %r/extconf\.rb$/
117
-
118
- s.bindir = 'bin'
119
- dirs = Dir["{#{PROJ.libs.join(',')}}"]
120
- s.require_paths = dirs unless dirs.empty?
121
-
122
- incl = Regexp.new(PROJ.rdoc.include.join('|'))
123
- excl = PROJ.rdoc.exclude.dup.concat %w[\.rb$ ^(\.\/|\/)?ext]
124
- excl = Regexp.new(excl.join('|'))
125
- rdoc_files = PROJ.gem.files.find_all do |fn|
126
- case fn
127
- when excl; false
128
- when incl; true
129
- else false end
130
- end
131
- s.rdoc_options = PROJ.rdoc.opts + ['--main', PROJ.rdoc.main]
132
- s.extra_rdoc_files = rdoc_files
133
- s.has_rdoc = true
134
-
135
- if test ?f, PROJ.test.file
136
- s.test_file = PROJ.test.file
137
- else
138
- s.test_files = PROJ.test.files.to_a
139
- end
140
-
141
- # Do any extra stuff the user wants
142
- PROJ.gem.extras.each do |msg, val|
143
- case val
144
- when Proc
145
- val.call(s.send(msg))
146
- else
147
- s.send "#{msg}=", val
148
- end
149
- end
150
- end # Gem::Specification.new
151
-
152
- Bones::GemPackageTask.new(PROJ.gem._spec) do |pkg|
153
- pkg.need_tar = PROJ.gem.need_tar
154
- pkg.need_zip = PROJ.gem.need_zip
155
- end
156
-
157
- desc 'Show information about the gem'
158
- task :debug => 'gem:prereqs' do
159
- puts PROJ.gem._spec.to_ruby
160
- end
161
-
162
- desc 'Write the gemspec '
163
- task :spec => 'gem:prereqs' do
164
- File.open("#{PROJ.name}.gemspec", 'w') do |f|
165
- f.write PROJ.gem._spec.to_ruby
166
- end
167
- end
168
-
169
- desc 'Install the gem'
170
- task :install => [:clobber, 'gem:package'] do
171
- sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
172
-
173
- # use this version of the command for rubygems > 1.0.0
174
- #sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
175
- end
176
-
177
- desc 'Uninstall the gem'
178
- task :uninstall do
179
- installed_list = Gem.source_index.find_name(PROJ.name)
180
- if installed_list and installed_list.collect { |s| s.version.to_s}.include?(PROJ.version) then
181
- sh "#{SUDO} #{GEM} uninstall --version '#{PROJ.version}' --ignore-dependencies --executables #{PROJ.name}"
182
- end
183
- end
184
-
185
- desc 'Reinstall the gem'
186
- task :reinstall => [:uninstall, :install]
187
-
188
- desc 'Cleanup the gem'
189
- task :cleanup do
190
- sh "#{SUDO} #{GEM} cleanup #{PROJ.gem._spec.name}"
191
- end
192
- end # namespace :gem
193
-
194
-
195
- desc 'Alias to gem:package'
196
- task :gem => 'gem:package'
197
-
198
- task :clobber => 'gem:clobber_package'
199
- remove_desc_for_task 'gem:clobber_package'
200
-
201
- # EOF