gallifrey 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (733) hide show
  1. data/History.rdoc +3 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +20 -0
  4. data/Rakefile +5 -0
  5. data/lib/gallifrey/aggregate.rb +62 -0
  6. data/lib/gallifrey/aggregate_not_found.rb +6 -0
  7. data/lib/gallifrey/cipher/base64.rb +26 -0
  8. data/lib/gallifrey/cipher/null.rb +19 -0
  9. data/lib/gallifrey/cipher/sha256.rb +36 -0
  10. data/lib/gallifrey/conflict.rb +6 -0
  11. data/lib/gallifrey/entity.rb +22 -0
  12. data/lib/gallifrey/entity_not_found.rb +6 -0
  13. data/lib/gallifrey/event.rb +42 -0
  14. data/lib/gallifrey/event_application.rb +22 -0
  15. data/lib/gallifrey/event_processing.rb +36 -0
  16. data/lib/gallifrey/event_store/auditing.rb +26 -0
  17. data/lib/gallifrey/event_store/null.rb +20 -0
  18. data/lib/gallifrey/event_store/publishing.rb +25 -0
  19. data/lib/gallifrey/event_store/sequel.rb +94 -0
  20. data/lib/gallifrey/guid.rb +25 -0
  21. data/lib/gallifrey/repository/default.rb +12 -0
  22. data/lib/gallifrey/repository.rb +50 -0
  23. data/lib/gallifrey/version.rb +5 -0
  24. data/lib/gallifrey/view/composite.rb +23 -0
  25. data/lib/gallifrey/view/null.rb +17 -0
  26. data/spec/gallifrey/aggregate/apply_event_spec.rb +35 -0
  27. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/app.js +66 -0
  28. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  29. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  30. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  31. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  32. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  33. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  34. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  35. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  36. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  37. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  38. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  39. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  40. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  41. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  42. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  43. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  44. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  45. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  46. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  47. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  48. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  49. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  50. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/favicon.png +0 -0
  51. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  52. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  53. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  54. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/jquery.url.js +174 -0
  55. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/loading.gif +0 -0
  56. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/magnify.png +0 -0
  57. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  58. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  59. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  60. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  61. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  62. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  63. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  64. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  65. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  66. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  67. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  68. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  69. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  70. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  71. data/spec/gallifrey/aggregate/coverage/assets/0.4.4/stylesheet.css +341 -0
  72. data/spec/gallifrey/aggregate/coverage/covered_percent +1 -0
  73. data/spec/gallifrey/aggregate/coverage/index.html +71 -0
  74. data/spec/gallifrey/aggregate/coverage/resultset.yml +201 -0
  75. data/spec/gallifrey/aggregate/event_application_spec.rb +9 -0
  76. data/spec/gallifrey/aggregate/new_spec.rb +31 -0
  77. data/spec/gallifrey/aggregate/record_event_spec.rb +32 -0
  78. data/spec/gallifrey/aggregate/type_spec.rb +12 -0
  79. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/app.js +66 -0
  80. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  81. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  82. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  83. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  84. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  85. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  86. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  87. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  88. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  89. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  90. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  91. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  92. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  93. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  94. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  95. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  96. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  97. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  98. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  99. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  100. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  101. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  102. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/favicon.png +0 -0
  103. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  104. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  105. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  106. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/jquery.url.js +174 -0
  107. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/loading.gif +0 -0
  108. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/magnify.png +0 -0
  109. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  110. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  111. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  112. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  113. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  114. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  115. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  116. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  117. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  118. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  119. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  120. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  121. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  122. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  123. data/spec/gallifrey/cipher/base64/coverage/assets/0.4.4/stylesheet.css +341 -0
  124. data/spec/gallifrey/cipher/base64/coverage/covered_percent +1 -0
  125. data/spec/gallifrey/cipher/base64/coverage/index.html +71 -0
  126. data/spec/gallifrey/cipher/base64/coverage/resultset.yml +17 -0
  127. data/spec/gallifrey/cipher/base64/decrypt_spec.rb +14 -0
  128. data/spec/gallifrey/cipher/base64/encrypt_spec.rb +14 -0
  129. data/spec/gallifrey/cipher/null/decrypt_spec.rb +14 -0
  130. data/spec/gallifrey/cipher/null/encrypt_spec.rb +14 -0
  131. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/app.js +66 -0
  132. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  133. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  134. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  135. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  136. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  137. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  138. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  139. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  140. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  141. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  142. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  143. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  144. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  145. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  146. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  147. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  148. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  149. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  150. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  151. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  152. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  153. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  154. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/favicon.png +0 -0
  155. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  156. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  157. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  158. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/jquery.url.js +174 -0
  159. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/loading.gif +0 -0
  160. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/magnify.png +0 -0
  161. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  162. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  163. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  164. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  165. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  166. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  167. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  168. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  169. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  170. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  171. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  172. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  173. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  174. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  175. data/spec/gallifrey/cipher/sha256/coverage/assets/0.4.4/stylesheet.css +341 -0
  176. data/spec/gallifrey/cipher/sha256/coverage/covered_percent +1 -0
  177. data/spec/gallifrey/cipher/sha256/coverage/index.html +71 -0
  178. data/spec/gallifrey/cipher/sha256/coverage/resultset.yml +21 -0
  179. data/spec/gallifrey/cipher/sha256/decrypt_spec.rb +16 -0
  180. data/spec/gallifrey/cipher/sha256/encrypt_spec.rb +16 -0
  181. data/spec/gallifrey/entity/coverage/assets/0.4.4/app.js +66 -0
  182. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  183. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  184. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  185. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  186. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  187. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  188. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  189. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  190. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  191. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  192. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  193. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  194. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  195. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  196. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  197. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  198. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  199. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  200. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  201. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  202. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  203. data/spec/gallifrey/entity/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  204. data/spec/gallifrey/entity/coverage/assets/0.4.4/favicon.png +0 -0
  205. data/spec/gallifrey/entity/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  206. data/spec/gallifrey/entity/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  207. data/spec/gallifrey/entity/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  208. data/spec/gallifrey/entity/coverage/assets/0.4.4/jquery.url.js +174 -0
  209. data/spec/gallifrey/entity/coverage/assets/0.4.4/loading.gif +0 -0
  210. data/spec/gallifrey/entity/coverage/assets/0.4.4/magnify.png +0 -0
  211. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  212. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  213. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  214. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  215. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  216. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  217. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  218. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  219. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  220. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  221. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  222. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  223. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  224. data/spec/gallifrey/entity/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  225. data/spec/gallifrey/entity/coverage/assets/0.4.4/stylesheet.css +341 -0
  226. data/spec/gallifrey/entity/coverage/covered_percent +1 -0
  227. data/spec/gallifrey/entity/coverage/index.html +71 -0
  228. data/spec/gallifrey/entity/coverage/resultset.yml +41 -0
  229. data/spec/gallifrey/entity/event_application_spec.rb +11 -0
  230. data/spec/gallifrey/entity/record_event_spec.rb +17 -0
  231. data/spec/gallifrey/event/[]_spec.rb +28 -0
  232. data/spec/gallifrey/event/coverage/assets/0.4.4/app.js +66 -0
  233. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  234. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  235. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  236. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  237. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  238. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  239. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  240. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  241. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  242. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  243. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  244. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  245. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  246. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  247. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  248. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  249. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  250. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  251. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  252. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  253. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  254. data/spec/gallifrey/event/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  255. data/spec/gallifrey/event/coverage/assets/0.4.4/favicon.png +0 -0
  256. data/spec/gallifrey/event/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  257. data/spec/gallifrey/event/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  258. data/spec/gallifrey/event/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  259. data/spec/gallifrey/event/coverage/assets/0.4.4/jquery.url.js +174 -0
  260. data/spec/gallifrey/event/coverage/assets/0.4.4/loading.gif +0 -0
  261. data/spec/gallifrey/event/coverage/assets/0.4.4/magnify.png +0 -0
  262. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  263. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  264. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  265. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  266. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  267. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  268. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  269. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  270. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  271. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  272. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  273. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  274. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  275. data/spec/gallifrey/event/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  276. data/spec/gallifrey/event/coverage/assets/0.4.4/stylesheet.css +341 -0
  277. data/spec/gallifrey/event/coverage/covered_percent +1 -0
  278. data/spec/gallifrey/event/coverage/index.html +71 -0
  279. data/spec/gallifrey/event/coverage/resultset.yml +17 -0
  280. data/spec/gallifrey/event/new_spec.rb +20 -0
  281. data/spec/gallifrey/event_application/apply_event_spec.rb +37 -0
  282. data/spec/gallifrey/event_application/coverage/assets/0.4.4/app.js +66 -0
  283. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  284. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  285. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  286. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  287. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  288. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  289. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  290. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  291. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  292. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  293. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  294. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  295. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  296. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  297. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  298. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  299. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  300. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  301. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  302. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  303. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  304. data/spec/gallifrey/event_application/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  305. data/spec/gallifrey/event_application/coverage/assets/0.4.4/favicon.png +0 -0
  306. data/spec/gallifrey/event_application/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  307. data/spec/gallifrey/event_application/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  308. data/spec/gallifrey/event_application/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  309. data/spec/gallifrey/event_application/coverage/assets/0.4.4/jquery.url.js +174 -0
  310. data/spec/gallifrey/event_application/coverage/assets/0.4.4/loading.gif +0 -0
  311. data/spec/gallifrey/event_application/coverage/assets/0.4.4/magnify.png +0 -0
  312. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  313. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  314. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  315. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  316. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  317. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  318. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  319. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  320. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  321. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  322. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  323. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  324. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  325. data/spec/gallifrey/event_application/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  326. data/spec/gallifrey/event_application/coverage/assets/0.4.4/stylesheet.css +341 -0
  327. data/spec/gallifrey/event_application/coverage/covered_percent +1 -0
  328. data/spec/gallifrey/event_application/coverage/index.html +71 -0
  329. data/spec/gallifrey/event_application/coverage/resultset.yml +17 -0
  330. data/spec/gallifrey/event_application/unapplied_event_spec.rb +19 -0
  331. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/app.js +66 -0
  332. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  333. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  334. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  335. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  336. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  337. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  338. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  339. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  340. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  341. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  342. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  343. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  344. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  345. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  346. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  347. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  348. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  349. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  350. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  351. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  352. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  353. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  354. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/favicon.png +0 -0
  355. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  356. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  357. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  358. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/jquery.url.js +174 -0
  359. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/loading.gif +0 -0
  360. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/magnify.png +0 -0
  361. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  362. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  363. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  364. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  365. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  366. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  367. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  368. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  369. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  370. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  371. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  372. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  373. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  374. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  375. data/spec/gallifrey/event_processing/coverage/assets/0.4.4/stylesheet.css +341 -0
  376. data/spec/gallifrey/event_processing/coverage/covered_percent +1 -0
  377. data/spec/gallifrey/event_processing/coverage/index.html +71 -0
  378. data/spec/gallifrey/event_processing/coverage/resultset.yml +69 -0
  379. data/spec/gallifrey/event_processing/process_event_spec.rb +29 -0
  380. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/app.js +66 -0
  381. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  382. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  383. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  384. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  385. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  386. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  387. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  388. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  389. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  390. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  391. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  392. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  393. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  394. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  395. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  396. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  397. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  398. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  399. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  400. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  401. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  402. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  403. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/favicon.png +0 -0
  404. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  405. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  406. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  407. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/jquery.url.js +174 -0
  408. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/loading.gif +0 -0
  409. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/magnify.png +0 -0
  410. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  411. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  412. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  413. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  414. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  415. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  416. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  417. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  418. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  419. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  420. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  421. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  422. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  423. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  424. data/spec/gallifrey/event_store/auditing/coverage/assets/0.4.4/stylesheet.css +341 -0
  425. data/spec/gallifrey/event_store/auditing/coverage/covered_percent +1 -0
  426. data/spec/gallifrey/event_store/auditing/coverage/index.html +71 -0
  427. data/spec/gallifrey/event_store/auditing/coverage/resultset.yml +33 -0
  428. data/spec/gallifrey/event_store/auditing/load_events_spec.rb +23 -0
  429. data/spec/gallifrey/event_store/auditing/save_events_spec.rb +30 -0
  430. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/app.js +66 -0
  431. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  432. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  433. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  434. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  435. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  436. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  437. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  438. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  439. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  440. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  441. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  442. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  443. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  444. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  445. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  446. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  447. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  448. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  449. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  450. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  451. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  452. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  453. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/favicon.png +0 -0
  454. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  455. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  456. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  457. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/jquery.url.js +174 -0
  458. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/loading.gif +0 -0
  459. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/magnify.png +0 -0
  460. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  461. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  462. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  463. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  464. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  465. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  466. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  467. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  468. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  469. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  470. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  471. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  472. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  473. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  474. data/spec/gallifrey/event_store/null/coverage/assets/0.4.4/stylesheet.css +341 -0
  475. data/spec/gallifrey/event_store/null/coverage/covered_percent +1 -0
  476. data/spec/gallifrey/event_store/null/coverage/index.html +71 -0
  477. data/spec/gallifrey/event_store/null/coverage/resultset.yml +33 -0
  478. data/spec/gallifrey/event_store/null/load_events_spec.rb +16 -0
  479. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/app.js +66 -0
  480. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  481. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  482. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  483. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  484. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  485. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  486. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  487. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  488. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  489. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  490. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  491. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  492. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  493. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  494. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  495. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  496. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  497. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  498. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  499. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  500. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  501. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  502. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/favicon.png +0 -0
  503. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  504. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  505. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  506. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/jquery.url.js +174 -0
  507. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/loading.gif +0 -0
  508. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/magnify.png +0 -0
  509. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  510. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  511. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  512. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  513. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  514. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  515. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  516. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  517. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  518. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  519. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  520. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  521. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  522. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  523. data/spec/gallifrey/event_store/publishing/coverage/assets/0.4.4/stylesheet.css +341 -0
  524. data/spec/gallifrey/event_store/publishing/coverage/covered_percent +1 -0
  525. data/spec/gallifrey/event_store/publishing/coverage/index.html +71 -0
  526. data/spec/gallifrey/event_store/publishing/coverage/resultset.yml +69 -0
  527. data/spec/gallifrey/event_store/publishing/load_events_spec.rb +23 -0
  528. data/spec/gallifrey/event_store/publishing/save_events_spec.rb +29 -0
  529. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/app.js +66 -0
  530. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  531. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  532. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  533. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  534. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  535. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  536. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  537. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  538. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  539. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  540. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  541. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  542. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  543. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  544. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  545. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  546. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  547. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  548. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  549. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  550. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  551. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  552. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/favicon.png +0 -0
  553. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  554. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  555. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  556. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/jquery.url.js +174 -0
  557. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/loading.gif +0 -0
  558. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/magnify.png +0 -0
  559. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  560. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  561. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  562. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  563. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  564. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  565. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  566. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  567. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  568. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  569. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  570. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  571. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  572. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  573. data/spec/gallifrey/event_store/sequel/coverage/assets/0.4.4/stylesheet.css +341 -0
  574. data/spec/gallifrey/event_store/sequel/coverage/covered_percent +1 -0
  575. data/spec/gallifrey/event_store/sequel/coverage/index.html +71 -0
  576. data/spec/gallifrey/event_store/sequel/coverage/resultset.yml +137 -0
  577. data/spec/gallifrey/event_store/sequel/load_events_spec.rb +101 -0
  578. data/spec/gallifrey/event_store/sequel/save_events_spec.rb +133 -0
  579. data/spec/gallifrey/guid/coverage/assets/0.4.4/app.js +66 -0
  580. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  581. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  582. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  583. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  584. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  585. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  586. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  587. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  588. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  589. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  590. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  591. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  592. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  593. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  594. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  595. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  596. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  597. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  598. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  599. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  600. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  601. data/spec/gallifrey/guid/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  602. data/spec/gallifrey/guid/coverage/assets/0.4.4/favicon.png +0 -0
  603. data/spec/gallifrey/guid/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  604. data/spec/gallifrey/guid/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  605. data/spec/gallifrey/guid/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  606. data/spec/gallifrey/guid/coverage/assets/0.4.4/jquery.url.js +174 -0
  607. data/spec/gallifrey/guid/coverage/assets/0.4.4/loading.gif +0 -0
  608. data/spec/gallifrey/guid/coverage/assets/0.4.4/magnify.png +0 -0
  609. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  610. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  611. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  612. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  613. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  614. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  615. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  616. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  617. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  618. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  619. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  620. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  621. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  622. data/spec/gallifrey/guid/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  623. data/spec/gallifrey/guid/coverage/assets/0.4.4/stylesheet.css +341 -0
  624. data/spec/gallifrey/guid/coverage/covered_percent +1 -0
  625. data/spec/gallifrey/guid/coverage/index.html +71 -0
  626. data/spec/gallifrey/guid/coverage/resultset.yml +33 -0
  627. data/spec/gallifrey/guid/create_spec.rb +19 -0
  628. data/spec/gallifrey/guid/parse_spec.rb +18 -0
  629. data/spec/gallifrey/guid/valid?_spec.rb +18 -0
  630. data/spec/gallifrey/repository/add_spec.rb +18 -0
  631. data/spec/gallifrey/repository/commit_spec.rb +47 -0
  632. data/spec/gallifrey/repository/coverage/assets/0.4.4/app.js +66 -0
  633. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  634. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  635. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  636. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  637. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  638. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  639. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  640. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  641. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  642. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  643. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  644. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  645. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  646. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  647. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  648. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  649. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  650. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  651. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  652. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  653. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  654. data/spec/gallifrey/repository/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  655. data/spec/gallifrey/repository/coverage/assets/0.4.4/favicon.png +0 -0
  656. data/spec/gallifrey/repository/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  657. data/spec/gallifrey/repository/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  658. data/spec/gallifrey/repository/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  659. data/spec/gallifrey/repository/coverage/assets/0.4.4/jquery.url.js +174 -0
  660. data/spec/gallifrey/repository/coverage/assets/0.4.4/loading.gif +0 -0
  661. data/spec/gallifrey/repository/coverage/assets/0.4.4/magnify.png +0 -0
  662. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  663. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  664. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  665. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  666. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  667. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  668. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  669. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  670. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  671. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  672. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  673. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  674. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  675. data/spec/gallifrey/repository/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  676. data/spec/gallifrey/repository/coverage/assets/0.4.4/stylesheet.css +341 -0
  677. data/spec/gallifrey/repository/coverage/covered_percent +1 -0
  678. data/spec/gallifrey/repository/coverage/index.html +71 -0
  679. data/spec/gallifrey/repository/coverage/resultset.yml +149 -0
  680. data/spec/gallifrey/repository/get_spec.rb +52 -0
  681. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/app.js +66 -0
  682. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/blank.gif +0 -0
  683. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_close.png +0 -0
  684. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_loading.png +0 -0
  685. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_nav_left.png +0 -0
  686. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_nav_right.png +0 -0
  687. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_e.png +0 -0
  688. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_n.png +0 -0
  689. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_ne.png +0 -0
  690. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_nw.png +0 -0
  691. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_s.png +0 -0
  692. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_se.png +0 -0
  693. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_sw.png +0 -0
  694. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_shadow_w.png +0 -0
  695. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_title_left.png +0 -0
  696. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_title_main.png +0 -0
  697. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_title_over.png +0 -0
  698. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancy_title_right.png +0 -0
  699. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancybox-x.png +0 -0
  700. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancybox-y.png +0 -0
  701. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/fancybox.png +0 -0
  702. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.css +363 -0
  703. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/fancybox/jquery.fancybox-1.3.1.pack.js +44 -0
  704. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/favicon.png +0 -0
  705. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/jquery-1.4.2.min.js +155 -0
  706. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/jquery.dataTables.min.js +152 -0
  707. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/jquery.timeago.js +141 -0
  708. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/jquery.url.js +174 -0
  709. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/loading.gif +0 -0
  710. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/magnify.png +0 -0
  711. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  712. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  713. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  714. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  715. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  716. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  717. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  718. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  719. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-icons_222222_256x240.png +0 -0
  720. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  721. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-icons_454545_256x240.png +0 -0
  722. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-icons_888888_256x240.png +0 -0
  723. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  724. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/smoothness/jquery-ui-1.8.4.custom.css +295 -0
  725. data/spec/gallifrey/view/composite/coverage/assets/0.4.4/stylesheet.css +341 -0
  726. data/spec/gallifrey/view/composite/coverage/covered_percent +1 -0
  727. data/spec/gallifrey/view/composite/coverage/index.html +71 -0
  728. data/spec/gallifrey/view/composite/coverage/resultset.yml +21 -0
  729. data/spec/gallifrey/view/composite/delete_spec.rb +19 -0
  730. data/spec/gallifrey/view/composite/process_event_spec.rb +20 -0
  731. data/spec/spec_helper.rb +20 -0
  732. data/tasks/spec.rb +4 -0
  733. metadata +863 -0
data/History.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ === 0.1.0 / yyyy-mm-dd
2
+
3
+ * Initial version
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Simon Harris
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,20 @@
1
+ = Gallifrey - Description
2
+
3
+ GitHub: http://github.com/harukizaemon/gallifrey
4
+ Gemcutter: http://gemcutter/gems/gallifrey
5
+ email: haruki.zaemon@gmail.com
6
+ IRC: ##haruki_zaemon on freenode
7
+
8
+ == Introduction
9
+
10
+ == Installation
11
+
12
+ Gallifrey is distributed as a gem via gemcutter (http://gemcutter.org/gems/gallifrey) or as source via GitHub (http://github.com/harukizaemon/gallifrey).
13
+
14
+ Installation via the gem is easy:
15
+
16
+ > gem install gallifrey
17
+
18
+ Once installed, all that remains is to make the classes available in your code:
19
+
20
+ require 'gallifrey'
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ Dir[File.expand_path("tasks/**/*.rb")].each do |task_file|
2
+ require task_file
3
+ end
4
+
5
+ task :default => [ :spec ]
@@ -0,0 +1,62 @@
1
+ require 'gallifrey/guid'
2
+ require 'gallifrey/event_application'
3
+
4
+ module Gallifrey
5
+
6
+ class Aggregate
7
+
8
+ include EventApplication
9
+
10
+ attr_reader :id, :version, :unsaved_events
11
+
12
+ def initialize(id = GUID.create)
13
+ @id = id
14
+ @version = 0
15
+ @unsaved_events = []
16
+ end
17
+
18
+ def type
19
+ self.class.name.gsub(/.*::/, "")
20
+ end
21
+
22
+ def load_from_history(events)
23
+ events.each { |event| apply_event(event) }
24
+ end
25
+
26
+ def record_event(type, details = {})
27
+ @unsaved_events.push(Event.new(self.type, id, @version + 1, type, details))
28
+ apply_event(@unsaved_events.last)
29
+ end
30
+
31
+ def apply_event(event)
32
+ raise(ArgumentError, "Event out of sequence") unless event.aggregate_version > @version
33
+ @version = event.aggregate_version
34
+ super
35
+ end
36
+
37
+ def modified?
38
+ !@unsaved_events.empty?
39
+ end
40
+
41
+ def mark_as_saved
42
+ @unsaved_events = []
43
+ end
44
+
45
+ # def load_from_snapshot(snapshot)
46
+ # @version = snapshot.version
47
+ # load_from_memento(snapshot.memento)
48
+ # end
49
+ #
50
+ # def snapshot
51
+ # Snapshot.new(@version, memento)
52
+ # end
53
+
54
+ protected
55
+
56
+ def next_entity_id
57
+ @version + 1
58
+ end
59
+
60
+ end
61
+
62
+ end
@@ -0,0 +1,6 @@
1
+ module Gallifrey
2
+
3
+ class AggregateNotFound < StandardError
4
+ end
5
+
6
+ end
@@ -0,0 +1,26 @@
1
+ require 'base64'
2
+ require 'gallifrey/cipher/null'
3
+
4
+ module Gallifrey
5
+
6
+ module Cipher
7
+
8
+ class Base64
9
+
10
+ def initialize(cipher = Null)
11
+ @cipher = cipher
12
+ end
13
+
14
+ def encrypt(data)
15
+ ::Base64.encode64(@cipher.encrypt(data))
16
+ end
17
+
18
+ def decrypt(data)
19
+ @cipher.decrypt(::Base64.decode64(data))
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+
26
+ end
@@ -0,0 +1,19 @@
1
+ module Gallifrey
2
+
3
+ module Cipher
4
+
5
+ module Null
6
+
7
+ def self.encrypt(data)
8
+ data
9
+ end
10
+
11
+ def self.decrypt(data)
12
+ data
13
+ end
14
+
15
+ end
16
+
17
+ end
18
+
19
+ end
@@ -0,0 +1,36 @@
1
+ require 'openssl'
2
+ require 'digest/sha2'
3
+
4
+ module Gallifrey
5
+
6
+ module Cipher
7
+
8
+ class SHA256
9
+
10
+ def initialize(key, cipher_name = "AES-256-CBC")
11
+ @key = Digest::SHA256.digest(key)
12
+ @cipher = OpenSSL::Cipher::Cipher.new(cipher_name)
13
+ end
14
+
15
+ def encrypt(data)
16
+ cipher(:encrypt, data)
17
+ end
18
+
19
+ def decrypt(data)
20
+ cipher(:decrypt, data)
21
+ end
22
+
23
+ private
24
+
25
+ def cipher(mode, data)
26
+ @cipher.reset
27
+ @cipher.send(mode)
28
+ @cipher.key = @key
29
+ @cipher.update(data) << @cipher.final
30
+ end
31
+
32
+ end
33
+
34
+ end
35
+
36
+ end
@@ -0,0 +1,6 @@
1
+ module Gallifrey
2
+
3
+ class Conflict < StandardError
4
+ end
5
+
6
+ end
@@ -0,0 +1,22 @@
1
+ require 'gallifrey/event_application'
2
+
3
+ module Gallifrey
4
+
5
+ class Entity
6
+
7
+ include EventApplication
8
+
9
+ attr_reader :id
10
+
11
+ def initialize(aggregate, id)
12
+ @aggregate = aggregate
13
+ @id = id
14
+ end
15
+
16
+ def record_event(type, data = {})
17
+ @aggregate.record_event(type, data.merge(:id => id))
18
+ end
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,6 @@
1
+ module Gallifrey
2
+
3
+ class EntityNotFound < StandardError
4
+ end
5
+
6
+ end
@@ -0,0 +1,42 @@
1
+ module Gallifrey
2
+
3
+ class Event
4
+
5
+ attr_reader :aggregate_type, :aggregate_id, :aggregate_version, :type, :details
6
+ attr_accessor :created_at, :created_by
7
+
8
+ def initialize(aggregate_type, aggregate_id, aggregate_version, type, details = {}, created_at = nil, created_by = nil)
9
+ @aggregate_type = aggregate_type
10
+ @aggregate_id = aggregate_id
11
+ @aggregate_version = aggregate_version
12
+ @type = type
13
+ @details = details
14
+ @created_at = created_at
15
+ @created_by = created_by
16
+ end
17
+
18
+ def [](key)
19
+ raise(ArgumentError, "No such key #{key.inspect}") unless @details.has_key?(key)
20
+ @details[key]
21
+ end
22
+
23
+ def audit(created_at, created_by)
24
+ @created_at = created_at
25
+ @created_by = created_by
26
+ end
27
+
28
+ def eql?(other)
29
+ self.class.equal?(other.class) &&
30
+ aggregate_type == other.aggregate_type &&
31
+ aggregate_id == other.aggregate_id &&
32
+ aggregate_version == other.aggregate_version &&
33
+ type == other.type &&
34
+ details == other.details &&
35
+ created_at == other.created_at &&
36
+ created_by == other.created_by
37
+ end
38
+ alias_method :==, :eql?
39
+
40
+ end
41
+
42
+ end
@@ -0,0 +1,22 @@
1
+ module Gallifrey
2
+
3
+ module EventApplication
4
+
5
+ def apply_event(event)
6
+ method_name = "apply_#{event.type}"
7
+ if respond_to?(method_name)
8
+ send(method_name, event)
9
+ else
10
+ unapplied_event(event)
11
+ end
12
+ end
13
+
14
+ protected
15
+
16
+ def unapplied_event(event)
17
+ raise(ArgumentError, "Unapplied event: #{event.type}")
18
+ end
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,36 @@
1
+ require 'set'
2
+
3
+ module Gallifrey
4
+
5
+ module EventProcessing
6
+
7
+ def process_event(event)
8
+ event_type = :"#{underscore(event.aggregate_type).downcase}_#{event.type}"
9
+ event_processors[event_type].each do |block|
10
+ block.call(event)
11
+ end
12
+ end
13
+
14
+ protected
15
+
16
+ def process(*event_types, &block)
17
+ event_types.each do |event_type|
18
+ event_processors[event_type].add(block)
19
+ end
20
+ end
21
+
22
+ private
23
+
24
+ def event_processors
25
+ @event_processors ||= Hash.new { |event_processors, event_type| event_processors[event_type] = Set.new }
26
+ end
27
+
28
+ def underscore(aggregate_type)
29
+ aggregate_type
30
+ .gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
31
+ .gsub!(/([a-z\d])([A-Z])/,'\1_\2')
32
+ end
33
+
34
+ end
35
+
36
+ end
@@ -0,0 +1,26 @@
1
+ module Gallifrey
2
+
3
+ module EventStore
4
+
5
+ class Auditing
6
+
7
+ def initialize(event_store, created_by)
8
+ @event_store = event_store
9
+ @created_by = created_by
10
+ end
11
+
12
+ def load_events(aggregate_type, aggregate_id, since_version = 0)
13
+ @event_store.load_events(aggregate_type, aggregate_id, since_version)
14
+ end
15
+
16
+ def save_events(aggregate_type, aggregate_id, events)
17
+ timestamp = Time.now
18
+ events.each { |event| event.audit(timestamp, @created_by) }
19
+ @event_store.save_events(aggregate_type, aggregate_id, events)
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+
26
+ end
@@ -0,0 +1,20 @@
1
+ require 'gallifrey/aggregate_not_found'
2
+
3
+ module Gallifrey
4
+
5
+ module EventStore
6
+
7
+ module Null
8
+
9
+ def self.load_events(aggregate_type, aggregate_id, since_version = 0)
10
+ raise(AggregateNotFound)
11
+ end
12
+
13
+ def self.save_events(aggregate_type, aggregate_id, events)
14
+ end
15
+
16
+ end
17
+
18
+ end
19
+
20
+ end
@@ -0,0 +1,25 @@
1
+ module Gallifrey
2
+
3
+ module EventStore
4
+
5
+ class Publishing
6
+
7
+ def initialize(event_store, view)
8
+ @event_store = event_store
9
+ @view = view
10
+ end
11
+
12
+ def load_events(aggregate_type, aggregate_id, since_version = 0)
13
+ @event_store.load_events(aggregate_type, aggregate_id, since_version)
14
+ end
15
+
16
+ def save_events(aggregate_type, aggregate_id, events)
17
+ @event_store.save_events(aggregate_type, aggregate_id, events)
18
+ @view.process_events(events)
19
+ end
20
+
21
+ end
22
+
23
+ end
24
+
25
+ end
@@ -0,0 +1,94 @@
1
+ require 'sequel'
2
+ require 'json'
3
+ require 'gallifrey/event'
4
+ require 'gallifrey/aggregate_not_found'
5
+ require 'gallifrey/cipher/null'
6
+
7
+ module Gallifrey
8
+
9
+ module EventStore
10
+
11
+ class Sequel
12
+
13
+ def self.migrate(database)
14
+ database.create_table(:aggregates) do
15
+ uuid :id, :null => false
16
+ text :type, :null => false
17
+ integer :version, :null => false
18
+ timestamp :updated_at, :null => false
19
+ primary_key [:id]
20
+ end
21
+
22
+ database.create_table(:events) do
23
+ primary_key :sequence, :null => false
24
+ uuid :aggregate_id, :null => false
25
+ integer :aggregate_version, :null => false
26
+ text :type, :null => false
27
+ text :details, :null => false
28
+ timestamp :created_at, :null => true
29
+ uuid :created_by, :null => true
30
+ foreign_key [:aggregate_id], :aggregates, :on_delete => :cascade
31
+ index [:aggregate_id, :aggregate_version], :unique => true
32
+ end
33
+ end
34
+
35
+ def initialize(database, cipher = Cipher::Null)
36
+ @aggregates_table = database[:aggregates]
37
+ @events_table = database[:events]
38
+ @cipher = cipher
39
+ end
40
+
41
+ def load_events(aggregate_type, aggregate_id, since_version = 0)
42
+ raise(AggregateNotFound) if @aggregates_table.filter(:id => aggregate_id, :type => aggregate_type).empty?
43
+
44
+ @events_table
45
+ .select(:aggregate_version, :type, :details, :created_at, :created_by)
46
+ .filter(:aggregate_id => aggregate_id)
47
+ .filter{aggregate_version > since_version}
48
+ .order(:aggregate_version)
49
+ .map do |record|
50
+ Event.new(
51
+ aggregate_type,
52
+ aggregate_id,
53
+ record[:aggregate_version],
54
+ record[:type].to_sym,
55
+ JSON.parse(@cipher.decrypt(record[:details]), :symbolize_names => true),
56
+ record[:created_at],
57
+ record[:created_by]
58
+ )
59
+ end
60
+ end
61
+
62
+ def save_events(aggregate_type, aggregate_id, events)
63
+ values = { :version => events.last.aggregate_version, :updated_at => events.last.created_at }
64
+
65
+ update_count = @aggregates_table
66
+ .filter(:id => aggregate_id, :type => aggregate_type, :version => events.first.aggregate_version - 1)
67
+ .update(values)
68
+
69
+ if update_count == 0
70
+ if aggregate_record = @aggregates_table.first(:id => aggregate_id)
71
+ raise(TypeError) unless aggregate_record[:type] == aggregate_type
72
+ raise(Conflict)
73
+ end
74
+
75
+ @aggregates_table.insert(values.merge(:id => aggregate_id, :type => aggregate_type))
76
+ end
77
+
78
+ events.each do |event|
79
+ @events_table.insert(
80
+ :aggregate_id => event.aggregate_id,
81
+ :aggregate_version => event.aggregate_version,
82
+ :type => event.type.to_s,
83
+ :details => @cipher.encrypt(JSON.generate(event.details)),
84
+ :created_at => event.created_at,
85
+ :created_by => event.created_by
86
+ )
87
+ end
88
+ end
89
+
90
+ end
91
+
92
+ end
93
+
94
+ end
@@ -0,0 +1,25 @@
1
+ require 'uuidtools'
2
+
3
+ module Gallifrey
4
+
5
+ module GUID
6
+
7
+ class << self
8
+
9
+ def create
10
+ UUIDTools::UUID.random_create.to_s
11
+ end
12
+
13
+ def parse(guid_string)
14
+ UUIDTools::UUID.parse(guid_string).to_s
15
+ end
16
+
17
+ def valid?(guid_string)
18
+ !!parse(guid_string) rescue false
19
+ end
20
+
21
+ end
22
+
23
+ end
24
+
25
+ end
@@ -0,0 +1,12 @@
1
+ module Repository
2
+
3
+ module Default
4
+
5
+ def self.new(created_by)
6
+ event_store = EventStore::Default.new(created_by)
7
+ Gallifrey::Repository.new(event_store)
8
+ end
9
+
10
+ end
11
+
12
+ end
@@ -0,0 +1,50 @@
1
+ require 'gallifrey/aggregate_not_found'
2
+ require 'gallifrey/aggregate'
3
+ require 'gallifrey/event_store/null'
4
+
5
+ module Gallifrey
6
+
7
+ class Repository
8
+
9
+ def initialize(event_store = EventStore::Null)
10
+ @event_store = event_store
11
+ @aggregates = {}
12
+ end
13
+
14
+ def add(aggregate)
15
+ raise(TypeError) unless aggregate.is_a?(Aggregate)
16
+ @aggregates[aggregate.id] ||= aggregate
17
+ end
18
+
19
+ def get(aggregate_class, aggregate_id)
20
+ load_from_cache(aggregate_class, aggregate_id) or load_from_event_store(aggregate_class, aggregate_id)
21
+ end
22
+
23
+ def commit
24
+ @aggregates.each_value do |aggregate|
25
+ next unless aggregate.modified?
26
+ @event_store.save_events(aggregate.type, aggregate.id, aggregate.unsaved_events)
27
+ aggregate.mark_as_saved
28
+ end
29
+ @aggregates = {}
30
+ end
31
+
32
+ private
33
+
34
+ def load_from_cache(aggregate_class, aggregate_id)
35
+ if aggregate = @aggregates[aggregate_id]
36
+ raise(AggregateNotFound) unless aggregate.is_a?(aggregate_class)
37
+ end
38
+ aggregate
39
+ end
40
+
41
+ def load_from_event_store(aggregate_class, aggregate_id)
42
+ @aggregates[aggregate_id] = aggregate_class.new(aggregate_id).tap do |aggregate|
43
+ # aggregate.load_from_snapshot(@event_store.load_snapshot(aggregate.type, aggregate.id))
44
+ aggregate.load_from_history(@event_store.load_events(aggregate.type, aggregate.id, aggregate.version))
45
+ end
46
+ end
47
+
48
+ end
49
+
50
+ end
@@ -0,0 +1,5 @@
1
+ module Gallifrey
2
+
3
+ VERSION = "0.1.0.beta1".freeze
4
+
5
+ end
@@ -0,0 +1,23 @@
1
+ module Gallifrey
2
+
3
+ module View
4
+
5
+ class Composite
6
+
7
+ def initialize(*views)
8
+ @views = views
9
+ end
10
+
11
+ def process_event(event)
12
+ @views.each { |view| view.process_event(event) }
13
+ end
14
+
15
+ def delete
16
+ @views.each(&:delete)
17
+ end
18
+
19
+ end
20
+
21
+ end
22
+
23
+ end
@@ -0,0 +1,17 @@
1
+ module Gallifrey
2
+
3
+ module View
4
+
5
+ module Null
6
+
7
+ def self.process_event(event)
8
+ end
9
+
10
+ def self.delete
11
+ end
12
+
13
+ end
14
+
15
+ end
16
+
17
+ end