hydroponics 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (424) hide show
  1. data/.gitignore +1 -0
  2. data/README.rdoc +28 -9
  3. data/Rakefile +5 -1
  4. data/VERSION +1 -1
  5. data/app/actions/dupe.rb +22 -0
  6. data/app/views/dupe/index.erb +62 -0
  7. data/bin/hydro +29 -11
  8. data/config/hydro_app.rb +31 -0
  9. data/hydroponics.gemspec +431 -409
  10. data/lib/hydroponics.rb +2 -19
  11. data/lib/hydroponics/setup.rb +47 -0
  12. data/spec/config/database.yml +6 -0
  13. data/spec/hydro_app_spec.rb +51 -0
  14. data/spec/hydroponics_spec.rb +77 -3
  15. data/spec/spec_helper.rb +31 -5
  16. data/static/dupe.js +5 -0
  17. data/static/test/dupe_test.js +6 -0
  18. data/static/test/index.html +18 -0
  19. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  20. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  21. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  22. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  23. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  24. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  25. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  26. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  27. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
  28. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  29. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  30. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  31. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  32. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/css/smoothness/jquery-ui-1.8.5.custom.css +0 -0
  33. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/AUTHORS.txt +0 -0
  34. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/GPL-LICENSE.txt +0 -0
  35. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/MIT-LICENSE.txt +0 -0
  36. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/collapsible.html +0 -0
  37. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/custom-icons.html +0 -0
  38. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/default.html +0 -0
  39. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/fillspace.html +0 -0
  40. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/hoverintent.html +0 -0
  41. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/index.html +0 -0
  42. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/mouseover.html +0 -0
  43. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/no-auto-height.html +0 -0
  44. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/accordion/sortable.html +0 -0
  45. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/addClass/default.html +0 -0
  46. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/addClass/index.html +0 -0
  47. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/animate/default.html +0 -0
  48. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/animate/index.html +0 -0
  49. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/categories.html +0 -0
  50. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/combobox.html +0 -0
  51. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/custom-data.html +0 -0
  52. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/default.html +0 -0
  53. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/folding.html +0 -0
  54. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
  55. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
  56. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
  57. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
  58. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
  59. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/index.html +0 -0
  60. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/london.xml +0 -0
  61. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/maxheight.html +0 -0
  62. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/multiple-remote.html +0 -0
  63. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/multiple.html +0 -0
  64. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/remote-jsonp.html +0 -0
  65. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/remote-with-cache.html +0 -0
  66. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/remote.html +0 -0
  67. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/search.php +0 -0
  68. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/autocomplete/xml.html +0 -0
  69. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/checkbox.html +0 -0
  70. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/default.html +0 -0
  71. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/icons.html +0 -0
  72. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/index.html +0 -0
  73. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/radio.html +0 -0
  74. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/splitbutton.html +0 -0
  75. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/button/toolbar.html +0 -0
  76. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/alt-field.html +0 -0
  77. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/animation.html +0 -0
  78. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/buttonbar.html +0 -0
  79. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/date-formats.html +0 -0
  80. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/default.html +0 -0
  81. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/dropdown-month-year.html +0 -0
  82. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/event-search.html +0 -0
  83. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/icon-trigger.html +0 -0
  84. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  85. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/index.html +0 -0
  86. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/inline.html +0 -0
  87. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/localization.html +0 -0
  88. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/min-max.html +0 -0
  89. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/multiple-calendars.html +0 -0
  90. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/other-months.html +0 -0
  91. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/datepicker/show-week.html +0 -0
  92. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/demos.css +0 -0
  93. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/animated.html +0 -0
  94. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/default.html +0 -0
  95. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/index.html +0 -0
  96. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/modal-confirmation.html +0 -0
  97. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/modal-form.html +0 -0
  98. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/modal-message.html +0 -0
  99. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/dialog/modal.html +0 -0
  100. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/constrain-movement.html +0 -0
  101. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/cursor-style.html +0 -0
  102. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/default.html +0 -0
  103. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/delay-start.html +0 -0
  104. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/events.html +0 -0
  105. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/handle.html +0 -0
  106. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/index.html +0 -0
  107. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/revert.html +0 -0
  108. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/scroll.html +0 -0
  109. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/snap-to.html +0 -0
  110. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/sortable.html +0 -0
  111. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/draggable/visual-feedback.html +0 -0
  112. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/accepted-elements.html +0 -0
  113. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/default.html +0 -0
  114. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  115. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  116. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  117. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  118. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  119. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  120. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  121. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  122. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/index.html +0 -0
  123. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/photo-manager.html +0 -0
  124. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/propagation.html +0 -0
  125. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/revert.html +0 -0
  126. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/shopping-cart.html +0 -0
  127. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/droppable/visual-feedback.html +0 -0
  128. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/effect/default.html +0 -0
  129. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/effect/easing.html +0 -0
  130. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/effect/index.html +0 -0
  131. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/hide/default.html +0 -0
  132. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/hide/index.html +0 -0
  133. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/calendar.gif +0 -0
  134. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  135. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/demo-config-on.gif +0 -0
  136. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  137. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  138. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/icon-docs-info.gif +0 -0
  139. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/images/pbar-ani.gif +0 -0
  140. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/index.html +0 -0
  141. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/cycler.html +0 -0
  142. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/default.html +0 -0
  143. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/images/earth.jpg +0 -0
  144. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/images/flight.jpg +0 -0
  145. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/images/rocket.jpg +0 -0
  146. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/position/index.html +0 -0
  147. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/progressbar/animated.html +0 -0
  148. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/progressbar/default.html +0 -0
  149. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
  150. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/progressbar/index.html +0 -0
  151. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/progressbar/resize.html +0 -0
  152. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/removeClass/default.html +0 -0
  153. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/removeClass/index.html +0 -0
  154. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/animate.html +0 -0
  155. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/aspect-ratio.html +0 -0
  156. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/constrain-area.html +0 -0
  157. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/default.html +0 -0
  158. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/delay-start.html +0 -0
  159. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/helper.html +0 -0
  160. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/index.html +0 -0
  161. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/max-min.html +0 -0
  162. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/snap-to-grid.html +0 -0
  163. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/synchronous-resize.html +0 -0
  164. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/textarea.html +0 -0
  165. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/resizable/visual-feedback.html +0 -0
  166. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/selectable/default.html +0 -0
  167. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/selectable/display-grid.html +0 -0
  168. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/selectable/index.html +0 -0
  169. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/selectable/serialize.html +0 -0
  170. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/show/default.html +0 -0
  171. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/show/index.html +0 -0
  172. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/colorpicker.html +0 -0
  173. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/default.html +0 -0
  174. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/hotelrooms.html +0 -0
  175. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/index.html +0 -0
  176. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/multiple-vertical.html +0 -0
  177. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/range-vertical.html +0 -0
  178. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/range.html +0 -0
  179. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/rangemax.html +0 -0
  180. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/rangemin.html +0 -0
  181. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/side-scroll.html +0 -0
  182. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/slider-vertical.html +0 -0
  183. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/steps.html +0 -0
  184. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/slider/tabs.html +0 -0
  185. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/connect-lists-through-tabs.html +0 -0
  186. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/connect-lists.html +0 -0
  187. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/default.html +0 -0
  188. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/delay-start.html +0 -0
  189. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/display-grid.html +0 -0
  190. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/empty-lists.html +0 -0
  191. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/index.html +0 -0
  192. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/items.html +0 -0
  193. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/placeholder.html +0 -0
  194. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/sortable/portlets.html +0 -0
  195. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/switchClass/default.html +0 -0
  196. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/switchClass/index.html +0 -0
  197. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/ajax.html +0 -0
  198. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/ajax/content1.html +0 -0
  199. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/ajax/content2.html +0 -0
  200. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/ajax/content3-slow.php +0 -0
  201. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/ajax/content4-broken.php +0 -0
  202. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/bottom.html +0 -0
  203. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/collapsible.html +0 -0
  204. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/cookie.html +0 -0
  205. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/default.html +0 -0
  206. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/index.html +0 -0
  207. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/manipulation.html +0 -0
  208. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/mouseover.html +0 -0
  209. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/sortable.html +0 -0
  210. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/tabs/vertical.html +0 -0
  211. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/toggle/default.html +0 -0
  212. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/toggle/index.html +0 -0
  213. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/toggleClass/default.html +0 -0
  214. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/demos/toggleClass/index.html +0 -0
  215. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/accordion.html +0 -0
  216. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/addClass.html +0 -0
  217. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/animate.html +0 -0
  218. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/autocomplete.html +0 -0
  219. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/button.html +0 -0
  220. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/datepicker.html +0 -0
  221. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/dialog.html +0 -0
  222. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/draggable.html +0 -0
  223. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/droppable.html +0 -0
  224. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/effect.html +0 -0
  225. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/hide.html +0 -0
  226. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/position.html +0 -0
  227. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/progressbar.html +0 -0
  228. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/removeClass.html +0 -0
  229. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/resizable.html +0 -0
  230. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/selectable.html +0 -0
  231. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/show.html +0 -0
  232. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/slider.html +0 -0
  233. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/sortable.html +0 -0
  234. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/switchClass.html +0 -0
  235. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/tabs.html +0 -0
  236. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/toggle.html +0 -0
  237. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/docs/toggleClass.html +0 -0
  238. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/external/jquery.bgiframe-2.1.1.js +0 -0
  239. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/external/jquery.cookie.js +0 -0
  240. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/external/jquery.metadata.js +0 -0
  241. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/external/qunit.css +0 -0
  242. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/external/qunit.js +0 -0
  243. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/jquery-1.4.2.js +0 -0
  244. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  245. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  246. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  247. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  248. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  249. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  250. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  251. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  252. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  253. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  254. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  255. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  256. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  257. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.accordion.css +0 -0
  258. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.all.css +0 -0
  259. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.autocomplete.css +0 -0
  260. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.base.css +0 -0
  261. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.button.css +0 -0
  262. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.core.css +0 -0
  263. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.datepicker.css +0 -0
  264. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.dialog.css +0 -0
  265. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.progressbar.css +0 -0
  266. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.resizable.css +0 -0
  267. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.selectable.css +0 -0
  268. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.slider.css +0 -0
  269. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.tabs.css +0 -0
  270. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/base/jquery.ui.theme.css +0 -0
  271. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  272. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  273. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  274. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  275. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  276. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  277. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  278. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  279. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  280. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  281. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  282. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  283. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  284. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery-ui-1.8.5.custom.css +0 -0
  285. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.accordion.css +0 -0
  286. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.all.css +0 -0
  287. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.autocomplete.css +0 -0
  288. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.base.css +0 -0
  289. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.button.css +0 -0
  290. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.core.css +0 -0
  291. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.datepicker.css +0 -0
  292. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.dialog.css +0 -0
  293. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.progressbar.css +0 -0
  294. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.resizable.css +0 -0
  295. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.selectable.css +0 -0
  296. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.slider.css +0 -0
  297. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.tabs.css +0 -0
  298. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/themes/smoothness/jquery.ui.theme.css +0 -0
  299. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery-ui-i18n.js +0 -0
  300. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +0 -0
  301. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +0 -0
  302. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +0 -0
  303. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +0 -0
  304. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +0 -0
  305. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +0 -0
  306. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +0 -0
  307. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +0 -0
  308. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +0 -0
  309. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +0 -0
  310. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +0 -0
  311. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +0 -0
  312. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +0 -0
  313. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +0 -0
  314. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +0 -0
  315. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +0 -0
  316. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +0 -0
  317. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +0 -0
  318. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +0 -0
  319. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +0 -0
  320. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +0 -0
  321. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +0 -0
  322. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +0 -0
  323. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +0 -0
  324. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +0 -0
  325. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +0 -0
  326. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +0 -0
  327. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +0 -0
  328. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +0 -0
  329. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +0 -0
  330. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +0 -0
  331. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +0 -0
  332. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +0 -0
  333. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +0 -0
  334. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +0 -0
  335. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +0 -0
  336. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +0 -0
  337. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +0 -0
  338. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +0 -0
  339. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +0 -0
  340. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +0 -0
  341. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +0 -0
  342. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +0 -0
  343. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +0 -0
  344. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +0 -0
  345. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +0 -0
  346. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +0 -0
  347. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +0 -0
  348. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +0 -0
  349. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +0 -0
  350. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +0 -0
  351. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +0 -0
  352. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +0 -0
  353. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery-ui-1.8.5.custom.js +0 -0
  354. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.blind.js +0 -0
  355. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.bounce.js +0 -0
  356. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.clip.js +0 -0
  357. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.core.js +0 -0
  358. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.drop.js +0 -0
  359. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.explode.js +0 -0
  360. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.fade.js +0 -0
  361. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.fold.js +0 -0
  362. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.highlight.js +0 -0
  363. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.pulsate.js +0 -0
  364. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.scale.js +0 -0
  365. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.shake.js +0 -0
  366. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.slide.js +0 -0
  367. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.effects.transfer.js +0 -0
  368. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.accordion.js +0 -0
  369. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.autocomplete.js +0 -0
  370. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.button.js +0 -0
  371. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.core.js +0 -0
  372. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.datepicker.js +0 -0
  373. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.dialog.js +0 -0
  374. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.draggable.js +0 -0
  375. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.droppable.js +0 -0
  376. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.mouse.js +0 -0
  377. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.position.js +0 -0
  378. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.progressbar.js +0 -0
  379. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.resizable.js +0 -0
  380. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.selectable.js +0 -0
  381. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.slider.js +0 -0
  382. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.sortable.js +0 -0
  383. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.tabs.js +0 -0
  384. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/jquery.ui.widget.js +0 -0
  385. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.blind.min.js +0 -0
  386. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.bounce.min.js +0 -0
  387. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.clip.min.js +0 -0
  388. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.core.min.js +0 -0
  389. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.drop.min.js +0 -0
  390. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.explode.min.js +0 -0
  391. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.fade.min.js +0 -0
  392. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.fold.min.js +0 -0
  393. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.highlight.min.js +0 -0
  394. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.pulsate.min.js +0 -0
  395. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.scale.min.js +0 -0
  396. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.shake.min.js +0 -0
  397. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.slide.min.js +0 -0
  398. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.effects.transfer.min.js +0 -0
  399. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.accordion.min.js +0 -0
  400. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +0 -0
  401. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.button.min.js +0 -0
  402. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.core.min.js +0 -0
  403. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.datepicker.min.js +0 -0
  404. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.dialog.min.js +0 -0
  405. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.draggable.min.js +0 -0
  406. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.droppable.min.js +0 -0
  407. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.mouse.min.js +0 -0
  408. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.position.min.js +0 -0
  409. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.progressbar.min.js +0 -0
  410. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.resizable.min.js +0 -0
  411. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.selectable.min.js +0 -0
  412. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.slider.min.js +0 -0
  413. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.sortable.min.js +0 -0
  414. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.tabs.min.js +0 -0
  415. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/ui/minified/jquery.ui.widget.min.js +0 -0
  416. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/development-bundle/version.txt +0 -0
  417. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/index.html +0 -0
  418. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/js/jquery-1.4.2.min.js +0 -0
  419. data/static/{jquery-ui-1.8.5.custom → vendor/jquery-ui-1.8.5.custom}/js/jquery-ui-1.8.5.custom.min.js +0 -0
  420. data/static/vendor/qunit.css +155 -0
  421. data/static/vendor/qunit.js +1261 -0
  422. metadata +474 -408
  423. data/lib/db_remote.rb +0 -23
  424. data/lib/views/index.erb +0 -26
data/lib/hydroponics.rb CHANGED
@@ -1,19 +1,2 @@
1
- require 'erb'
2
- require 'fileutils'
3
- require File.join(FileUtils.pwd, "lib/db_remote.rb")
4
-
5
- class HydroApp < Sinatra::Base
6
- include DbRemote
7
-
8
- set :root, File.join(FileUtils.pwd, "lib")
9
- set :public, File.join(FileUtils.pwd, "static")
10
- set :version, "0.2.1"
11
-
12
- get '/' do
13
- erb :index
14
- end
15
-
16
- get '/round1' do
17
- erb :index
18
- end
19
- end
1
+ require './lib/hydroponics/setup.rb'
2
+ Dir['./app/actions/*.rb'].each { |f| require f; }
@@ -0,0 +1,47 @@
1
+ require 'yaml'
2
+ require 'erb'
3
+ require 'sequel'
4
+
5
+ # faking out the branch-name detection in Protopipe's database.yml. we may want to integrate with Rails later.
6
+ raise "Rails integration is not complete" if defined?(Rails)
7
+ module Rails
8
+ def self.root; @@root end
9
+ def self.root=(x); @@root=x end
10
+ def self.env; "development" end #hardcoding development environment
11
+ YML_PATH = "config/database.yml" # hard-coding the location of the yml file
12
+ end
13
+
14
+ module Hydroponics
15
+ def self.db; @@db; end
16
+ def self.db=(x); @@db = x; end
17
+
18
+ module Setup
19
+ def convert_rails_yml_to_sequel_config(yml)
20
+ {
21
+ :adapter => yml[Rails.env]['adapter'],
22
+ :host => yml[Rails.env]['host'],
23
+ :database => yml[Rails.env]['database'],
24
+ :user => yml[Rails.env]['username'],
25
+ :password => yml[Rails.env]['password']
26
+ }
27
+ end
28
+
29
+ def get_db_from_local_rails_project(proj_root)
30
+ yml_path = File.join(proj_root, Rails::YML_PATH)
31
+ raise "Aborting: no database.yml file found" unless File.exists?(yml_path)
32
+
33
+ Rails.root = proj_root # protopipe has its YML file as an ERB which references Rails.root
34
+ yml = YAML::load(ERB.new(File.open(yml_path).read).result(binding))
35
+ dbconfig = convert_rails_yml_to_sequel_config(yml)
36
+
37
+ Hydroponics.db = Sequel.connect(dbconfig)
38
+
39
+ dbconfig.merge(:password => "---") # output
40
+ end
41
+
42
+ def raise_max_packet_size
43
+ Hydroponics.db.execute("set global max_allowed_packet=1048576000;")
44
+ end
45
+ end
46
+ end
47
+
@@ -0,0 +1,6 @@
1
+ development:
2
+ adapter: sqlite
3
+ user: root
4
+ password:
5
+ database: hydroponics_test.sqlite
6
+ host: localhost
@@ -0,0 +1,51 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require File.join(File.dirname(__FILE__), '..', 'config/hydro_app')
3
+
4
+ describe "HydroApp" do
5
+ describe "with bad arguments" do
6
+ it "should raise an error" do
7
+ lambda { HydroApp.new }.should raise_error
8
+ end
9
+ end
10
+
11
+ describe "with users table" do
12
+ include Rack::Test::Methods
13
+
14
+ before(:all) do
15
+ @db = prepare_test_db
16
+ end
17
+
18
+ before(:each) do
19
+ populate_test_db
20
+ end
21
+
22
+ def app
23
+ @app || HydroApp.new
24
+ end
25
+
26
+ describe "/dupe/*" do
27
+ it "should open dupe/index.erb" do
28
+ get '/dupe/users'
29
+ last_response.should be_ok
30
+ end
31
+
32
+ it "should show the table's count" do
33
+ get '/dupe/users'
34
+ last_response.body.include?("Count: " + @db[:users].count.to_s).should be_true
35
+ end
36
+ end
37
+
38
+ describe "/dupe/*" do
39
+ it "should copy the first row n times" do
40
+ post '/dupe/users', {:count => 10}.to_json
41
+ last_response.should be_ok
42
+ @db[:users].count.should == 10
43
+ end
44
+
45
+ it "should return the time elapsed on success" do
46
+ post '/dupe/users', {:count => 10}.to_json
47
+ last_response.body.match(/s$/).should be_true
48
+ end
49
+ end
50
+ end
51
+ end
@@ -1,7 +1,81 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'lib/hydroponics')
1
2
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
3
 
3
- describe "Hydroponics" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
4
+ describe "Hydroponics::Setup" do
5
+ include Hydroponics::Setup
6
+
7
+ describe "#get_db_from_local_rails_project" do
8
+ it "should raise an error if it can't find a rails-style database yml" do
9
+ lambda { get_db_from_local_rails_project() }.should raise_error
10
+ lambda { get_db_from_local_rails_project("nope") }.should raise_error
11
+ end
12
+
13
+ it "should set db to a Sequel::Database object" do
14
+ get_db_from_local_rails_project(File.dirname(__FILE__))
15
+ Hydroponics.db.should be_a(Sequel::Database)
16
+ end
17
+
18
+ it "should output the config" do
19
+ get_db_from_local_rails_project(File.dirname(__FILE__)).should be_a(Hash)
20
+ end
21
+ end
22
+
23
+ describe "#convert_rails_yml_to_sequel_config" do
24
+ it "should fail if not given a properly formatted hash" do
25
+ lambda { convert_rails_yml_to_sequel_config }.should raise_error
26
+ lambda { convert_rails_yml_to_sequel_config("string") }.should raise_error
27
+ lambda { convert_rails_yml_to_sequel_config({"username" => "blah"}) }.should raise_error
28
+ end
29
+
30
+ it "should convert 'username' to 'user'" do
31
+ hash = {"development" => {"username" => "blah", "user" => "blah2"}}
32
+ convert_rails_yml_to_sequel_config(hash)[:user].should == "blah"
33
+ end
34
+
35
+ it "should use the development environment" do
36
+ hash = {"development" => {"username" => "dev"}, "test" => {"username" => "blah"}}
37
+ convert_rails_yml_to_sequel_config(hash)[:user].should == "dev"
38
+ end
39
+ end
40
+
41
+ describe "#raise_max_packet_size" do
42
+ it "should run the right query" do
43
+ db = mock("db")
44
+ db.should_receive(:execute).with("set global max_allowed_packet=1048576000;")
45
+ Hydroponics.stub!(:db).and_return(db)
46
+ raise_max_packet_size
47
+ end
48
+ end
49
+ end
50
+
51
+ describe "Hydroponics::Actions" do
52
+ include Hydroponics::Actions
53
+
54
+ before(:all) do
55
+ @db = prepare_test_db
56
+ end
57
+
58
+ before(:each) do
59
+ populate_test_db
60
+ end
61
+
62
+ describe "#dupe" do
63
+ it "should duplicate the first user until the desired count is reached" do
64
+ dupe(:users, 10)
65
+ @db[:users].count.should == 10
66
+ end
67
+
68
+ it "should delete users from the end until the desired count is reached" do
69
+ @db[:users].multi_insert([{:name => "ABC", :email => "123@example.com"}] * 10)
70
+ @db[:users].count.should == 11
71
+ dupe(:users, 2)
72
+ @db[:users].count.should == 2
73
+ end
74
+
75
+ it "should require the table name and count" do
76
+ lambda { dupe }.should raise_error
77
+ lambda { dupe(:users) }.should raise_error
78
+ lambda { dupe(16) }.should raise_error
79
+ end
6
80
  end
7
81
  end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,35 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'hydroponics'
1
+ require 'rubygems'
2
+ require 'sinatra'
3
+ require 'rack/test'
4
4
  require 'spec'
5
5
  require 'spec/autorun'
6
+ require 'spec/interop/test'
7
+ require 'sequel'
6
8
 
7
- Spec::Runner.configure do |config|
8
-
9
+ # set test environment
10
+ set :environment, :test
11
+ set :run, false
12
+ set :raise_errors, true
13
+ set :logging, false
14
+
15
+ def prepare_test_db
16
+ Hydroponics.db = Sequel.connect({
17
+ :adapter=>"sqlite",
18
+ :host=>"localhost",
19
+ :database=>"hydroponics_test.sqlite",
20
+ :user=>"root",
21
+ :password=>""
22
+ })
23
+ Hydroponics.db
9
24
  end
25
+
26
+ def populate_test_db
27
+ db = Hydroponics.db
28
+ db.drop_table :users if db.table_exists?(:users)
29
+ db.create_table :users do
30
+ primary_key :id
31
+ String :name
32
+ String :email
33
+ end
34
+ db[:users].insert(:name => "Acorn Hrefski", :email => "acorn@example.com")
35
+ end
data/static/dupe.js ADDED
@@ -0,0 +1,5 @@
1
+ var Dupe = function(slider, button, monitor) {
2
+ this.slider = slider;
3
+ this.button = button;
4
+ this.monitor = monitor;
5
+ };
@@ -0,0 +1,6 @@
1
+ test("Dupe object", function() {
2
+ var dupe = new Dupe("slider", "button", "monitor");
3
+ equals(dupe.slider, "slider", "initializes with slider");
4
+ equals(dupe.button, "button", "initializes with button");
5
+ equals(dupe.monitor, "monitor", "initializes with monitor");
6
+ });
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Hydroponics Test Suite</title>
5
+ <link rel="stylesheet" href="../vendor/qunit.css" type="text/css" media="screen">
6
+ <script type="text/javascript" src="../vendor/qunit.js"></script>
7
+ <script type="text/javascript" src="dupe_test.js"></script>
8
+ <script type="text/javascript" src="../dupe.js"></script>
9
+ </head>
10
+ <body>
11
+ <h1 id="qunit-header">Hydroponics Test Suite</h1>
12
+ <h2 id="qunit-banner"></h2>
13
+ <div id="qunit-testrunner-toolbar"></div>
14
+ <h2 id="qunit-userAgent"></h2>
15
+ <ol id="qunit-tests"></ol>
16
+ <div id="qunit-fixture">test markup</div>
17
+ </body>
18
+ </html>