old_sql 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (459) hide show
  1. data/Gemfile +8 -0
  2. data/Gemfile.lock +92 -0
  3. data/Rakefile +8 -6
  4. data/TODO.mkd +8 -3
  5. data/VERSION +1 -1
  6. data/app/controllers/old_sql/report_controller.rb +37 -44
  7. data/app/views/layouts/old_sql/report.html.erb +14 -0
  8. data/app/views/old_sql/report/datagrid.html.erb +24 -15
  9. data/app/views/old_sql/report/index.html.erb +26 -30
  10. data/config/locales/old_sql.en.yml +5 -0
  11. data/config/routes.rb +8 -6
  12. data/lib/old_sql/engine.rb +4 -0
  13. data/lib/old_sql/report_processor/base.rb +92 -0
  14. data/old_sql.gemspec +149 -322
  15. data/pkg/old_sql-0.1.0.gem +0 -0
  16. data/pkg/old_sql-0.2.0.gem +0 -0
  17. data/pkg/old_sql-0.3.0.gem +0 -0
  18. data/pkg/old_sql-0.4.0.gem +0 -0
  19. data/pkg/old_sql-0.5.0.gem +0 -0
  20. data/pkg/old_sql-0.6.0.gem +0 -0
  21. data/public/javascripts/old_sql/date_format.js +126 -0
  22. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-bg.js +1 -0
  23. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-bg1251.js +1 -0
  24. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-cat.js +1 -0
  25. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-cn.js +1 -0
  26. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-cs.js +1 -0
  27. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-da.js +1 -0
  28. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-de.js +1 -0
  29. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-el.js +1 -0
  30. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-en.js +1 -0
  31. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-es.js +1 -0
  32. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-fa.js +1 -0
  33. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-fi.js +1 -0
  34. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-fr.js +1 -0
  35. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-gl.js +1 -0
  36. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-he.js +1 -0
  37. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-hu.js +1 -0
  38. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-is.js +1 -0
  39. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-it.js +1 -0
  40. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-ja.js +1 -0
  41. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-nl.js +1 -0
  42. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-no.js +1 -0
  43. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-pl.js +1 -0
  44. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-pt-br.js +1 -0
  45. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-pt.js +1 -0
  46. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-ro.js +1 -0
  47. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-ru.js +1 -0
  48. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-sk.js +1 -0
  49. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-sv.js +1 -0
  50. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-tr.js +1 -0
  51. data/public/javascripts/old_sql/jqgrid/i18n/grid.locale-ua.js +1 -0
  52. data/public/javascripts/old_sql/jqgrid/jquery-ui-1.8.custom.min.js +778 -0
  53. data/public/javascripts/old_sql/jqgrid/jquery.jqGrid.min.js +457 -0
  54. data/public/javascripts/old_sql/jqgrid/ui.multiselect.js +314 -0
  55. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom.min.js +252 -0
  56. data/public/javascripts/old_sql/jquery-ui-timepicker-addon.js +985 -0
  57. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  58. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  59. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  60. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_glass_50_3baae3_1x400.png +0 -0
  61. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  62. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  63. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  64. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  65. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  66. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-icons_2694e8_256x240.png +0 -0
  67. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base → stylesheets/old_sql/jqgrid/themes/default}/images/ui-icons_2e83ff_256x240.png +0 -0
  68. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-icons_3d80b3_256x240.png +0 -0
  69. data/public/stylesheets/old_sql/jqgrid/themes/default/images/ui-icons_72a7cf_256x240.png +0 -0
  70. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css/ui-lightness → stylesheets/old_sql/jqgrid/themes/default}/images/ui-icons_ffffff_256x240.png +0 -0
  71. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery-ui-1.8.13.custom.css → stylesheets/old_sql/jqgrid/themes/default/jquery-ui-1.8.custom.css} +108 -54
  72. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-anim_basic_16x16.gif +0 -0
  73. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base → stylesheets/old_sql/jqgrid/themes/redroad}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  74. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  75. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  76. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  77. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base → stylesheets/old_sql/jqgrid/themes/redroad}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  78. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  79. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  80. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  81. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_217bc0_256x240.png +0 -0
  82. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_2e83ff_256x240.png +0 -0
  83. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_469bdd_256x240.png +0 -0
  84. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_6da8d5_256x240.png +0 -0
  85. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base → stylesheets/old_sql/jqgrid/themes/redroad}/images/ui-icons_cd0a0a_256x240.png +0 -0
  86. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_d8e7f3_256x240.png +0 -0
  87. data/public/stylesheets/old_sql/jqgrid/themes/redroad/images/ui-icons_f9bd01_256x240.png +0 -0
  88. data/public/stylesheets/old_sql/jqgrid/themes/redroad/jquery-ui-1.8.custom.css +489 -0
  89. data/public/stylesheets/old_sql/jqgrid/ui.jqgrid.css +138 -0
  90. data/public/stylesheets/old_sql/jqgrid/ui.multiselect.css +30 -0
  91. data/public/stylesheets/old_sql/old_sql.css +85 -0
  92. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  93. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  94. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  95. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  96. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  97. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  98. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  99. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  100. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  101. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  102. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  103. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  104. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  105. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes → stylesheets/old_sql}/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  106. data/public/{javascripts/old_sql/jquery-ui-1.8.13.custom (3)/css → stylesheets/old_sql}/ui-lightness/jquery-ui-1.8.13.custom.css +0 -0
  107. data/test/dummy/config/application.rb +8 -5
  108. data/test/dummy/config/boot.rb +7 -3
  109. data/test/dummy/config/initializers/secret_token.rb +1 -1
  110. data/test/dummy/config/report_sql/users.erb +2 -4
  111. data/test/dummy/config/reports.yml +3 -4
  112. data/test/dummy/db/development.sqlite3 +0 -0
  113. data/test/dummy/db/test.sqlite3 +0 -0
  114. data/test/dummy/lib/old_sql/report_processor/users.rb +19 -0
  115. data/test/dummy/log/development.log +4742 -0
  116. data/test/dummy/{lib/tasks/.gitkeep → log/production.log} +0 -0
  117. data/test/dummy/{vendor/plugins/.gitkeep → log/server.log} +0 -0
  118. data/test/dummy/log/test.log +27 -0
  119. data/test/dummy/tmp/pids/server.pid +1 -0
  120. data/test/fixtures/users.yml +3 -0
  121. data/test/integration/navigation_test.rb +7 -0
  122. data/test/old_sql_test.rb +7 -0
  123. data/test/support/integration_case.rb +5 -0
  124. data/test/test_helper.rb +22 -0
  125. data/vendor/cache/abstract-1.0.0.gem +0 -0
  126. data/vendor/cache/actionmailer-3.0.6.gem +0 -0
  127. data/vendor/cache/actionpack-3.0.6.gem +0 -0
  128. data/vendor/cache/activemodel-3.0.6.gem +0 -0
  129. data/vendor/cache/activerecord-3.0.6.gem +0 -0
  130. data/vendor/cache/activeresource-3.0.6.gem +0 -0
  131. data/vendor/cache/activesupport-3.0.6.gem +0 -0
  132. data/vendor/cache/arel-2.0.10.gem +0 -0
  133. data/vendor/cache/builder-2.1.2.gem +0 -0
  134. data/vendor/cache/capybara-0.4.1.2.gem +0 -0
  135. data/vendor/cache/celerity-0.8.9.gem +0 -0
  136. data/vendor/cache/childprocess-0.1.9.gem +0 -0
  137. data/vendor/cache/culerity-0.2.15.gem +0 -0
  138. data/vendor/cache/erubis-2.6.6.gem +0 -0
  139. data/vendor/cache/ffi-1.0.9.gem +0 -0
  140. data/vendor/cache/git-1.2.5.gem +0 -0
  141. data/vendor/cache/i18n-0.5.0.gem +0 -0
  142. data/vendor/cache/jeweler-1.6.2.gem +0 -0
  143. data/vendor/cache/json_pure-1.5.1.gem +0 -0
  144. data/vendor/cache/mail-2.2.19.gem +0 -0
  145. data/vendor/cache/mime-types-1.16.gem +0 -0
  146. data/vendor/cache/nokogiri-1.4.4.gem +0 -0
  147. data/vendor/cache/polyglot-0.3.1.gem +0 -0
  148. data/vendor/cache/rack-1.2.3.gem +0 -0
  149. data/vendor/cache/rack-mount-0.6.14.gem +0 -0
  150. data/vendor/cache/rack-test-0.5.7.gem +0 -0
  151. data/vendor/cache/rails-3.0.6.gem +0 -0
  152. data/vendor/cache/railties-3.0.6.gem +0 -0
  153. data/vendor/cache/rake-0.9.1.gem +0 -0
  154. data/vendor/cache/rubyzip-0.9.4.gem +0 -0
  155. data/vendor/cache/sanitize-2.0.2.gem +0 -0
  156. data/vendor/cache/selenium-webdriver-0.2.1.gem +0 -0
  157. data/vendor/cache/sqlite3-1.3.3.gem +0 -0
  158. data/vendor/cache/thor-0.14.6.gem +0 -0
  159. data/vendor/cache/treetop-1.4.9.gem +0 -0
  160. data/vendor/cache/tzinfo-0.3.27.gem +0 -0
  161. data/vendor/cache/xpath-0.1.4.gem +0 -0
  162. metadata +160 -325
  163. data/lib/report_processor/base.rb +0 -86
  164. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/AUTHORS.txt +0 -30
  165. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/GPL-LICENSE.txt +0 -278
  166. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/MIT-LICENSE.txt +0 -25
  167. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/categories.html +0 -71
  168. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/combobox.html +0 -174
  169. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/custom-data.html +0 -95
  170. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/default.html +0 -64
  171. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/folding.html +0 -62
  172. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/images/jquery_32x32.png +0 -0
  173. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/images/jqueryui_32x32.png +0 -0
  174. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
  175. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/images/transparent_1x1.png +0 -0
  176. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
  177. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/index.html +0 -27
  178. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/london.xml +0 -114
  179. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/maxheight.html +0 -79
  180. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/multiple-remote.html +0 -84
  181. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/multiple.html +0 -99
  182. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/remote-jsonp.html +0 -86
  183. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/remote-with-cache.html +0 -59
  184. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/remote.html +0 -59
  185. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/search.php +0 -640
  186. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/autocomplete/xml.html +0 -72
  187. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/checkbox.html +0 -44
  188. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/default.html +0 -38
  189. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/icons.html +0 -56
  190. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/index.html +0 -23
  191. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/radio.html +0 -39
  192. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/splitbutton.html +0 -55
  193. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/button/toolbar.html +0 -120
  194. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/alt-field.html +0 -36
  195. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/animation.html +0 -58
  196. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/buttonbar.html +0 -35
  197. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/date-formats.html +0 -47
  198. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/date-range.html +0 -49
  199. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/default.html +0 -33
  200. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/dropdown-month-year.html +0 -36
  201. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/icon-trigger.html +0 -37
  202. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  203. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/index.html +0 -31
  204. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/inline.html +0 -33
  205. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/localization.html +0 -162
  206. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/min-max.html +0 -33
  207. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/multiple-calendars.html +0 -36
  208. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/other-months.html +0 -37
  209. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/datepicker/show-week.html +0 -39
  210. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/demos.css +0 -334
  211. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/animated.html +0 -56
  212. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/default.html +0 -54
  213. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/index.html +0 -23
  214. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/modal-confirmation.html +0 -69
  215. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/modal-form.html +0 -167
  216. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/modal-message.html +0 -71
  217. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/dialog/modal.html +0 -60
  218. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/constrain-movement.html +0 -69
  219. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/cursor-style.html +0 -49
  220. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/default.html +0 -39
  221. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/delay-start.html +0 -45
  222. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/events.html +0 -77
  223. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/handle.html +0 -50
  224. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/index.html +0 -28
  225. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/revert.html +0 -44
  226. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/scroll.html +0 -51
  227. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/snap-to.html +0 -68
  228. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/sortable.html +0 -57
  229. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/draggable/visual-feedback.html +0 -77
  230. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/accepted-elements.html +0 -60
  231. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/default.html +0 -53
  232. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  233. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  234. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  235. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  236. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  237. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  238. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  239. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  240. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/index.html +0 -24
  241. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/photo-manager.html +0 -184
  242. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/propagation.html +0 -80
  243. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/revert.html +0 -61
  244. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/shopping-cart.html +0 -101
  245. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/droppable/visual-feedback.html +0 -78
  246. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/calendar.gif +0 -0
  247. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  248. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/demo-config-on.gif +0 -0
  249. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  250. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  251. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/icon-docs-info.gif +0 -0
  252. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/images/pbar-ani.gif +0 -0
  253. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/index.html +0 -321
  254. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/cycler.html +0 -122
  255. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/default.html +0 -153
  256. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/images/earth.jpg +0 -0
  257. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/images/flight.jpg +0 -0
  258. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/images/rocket.jpg +0 -0
  259. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/position/index.html +0 -19
  260. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/progressbar/animated.html +0 -44
  261. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/progressbar/default.html +0 -35
  262. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/progressbar/images/pbar-ani.gif +0 -0
  263. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/progressbar/index.html +0 -20
  264. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/progressbar/resize.html +0 -40
  265. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/animate.html +0 -43
  266. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/aspect-ratio.html +0 -42
  267. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/constrain-area.html +0 -47
  268. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/default.html +0 -40
  269. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/delay-start.html +0 -52
  270. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/helper.html +0 -43
  271. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/index.html +0 -28
  272. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/max-min.html +0 -45
  273. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/snap-to-grid.html +0 -42
  274. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/synchronous-resize.html +0 -49
  275. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/textarea.html +0 -41
  276. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/resizable/visual-feedback.html +0 -43
  277. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/selectable/default.html +0 -50
  278. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/selectable/display-grid.html +0 -55
  279. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/selectable/index.html +0 -20
  280. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/selectable/serialize.html +0 -61
  281. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/connect-lists-through-tabs.html +0 -78
  282. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/connect-lists.html +0 -58
  283. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/default.html +0 -51
  284. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/delay-start.html +0 -67
  285. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/display-grid.html +0 -54
  286. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/empty-lists.html +0 -69
  287. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/index.html +0 -26
  288. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/items.html +0 -70
  289. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/placeholder.html +0 -56
  290. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/demos/sortable/portlets.html +0 -96
  291. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/autocomplete.html +0 -875
  292. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/button.html +0 -500
  293. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/datepicker.html +0 -2570
  294. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/dialog.html +0 -1698
  295. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/draggable.html +0 -1577
  296. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/droppable.html +0 -829
  297. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/position.html +0 -227
  298. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/progressbar.html +0 -460
  299. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/resizable.html +0 -1201
  300. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/selectable.html +0 -848
  301. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/docs/sortable.html +0 -1953
  302. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/external/jquery.bgiframe-2.1.2.js +0 -39
  303. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/external/jquery.cookie.js +0 -89
  304. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/external/jquery.metadata.js +0 -122
  305. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/external/qunit.css +0 -153
  306. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/external/qunit.js +0 -1261
  307. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/jquery-1.5.1.js +0 -8316
  308. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  309. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  310. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  311. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  312. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  313. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  314. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  315. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  316. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  317. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.all.css +0 -11
  318. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.autocomplete.css +0 -53
  319. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.base.css +0 -8
  320. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.button.css +0 -38
  321. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.core.css +0 -41
  322. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.datepicker.css +0 -68
  323. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.dialog.css +0 -21
  324. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.progressbar.css +0 -11
  325. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.resizable.css +0 -25
  326. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.selectable.css +0 -10
  327. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/base/jquery.ui.theme.css +0 -252
  328. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  329. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  330. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  331. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  332. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  333. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  334. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  335. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  336. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  337. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  338. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  339. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  340. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  341. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.all.css +0 -11
  342. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.autocomplete.css +0 -53
  343. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.base.css +0 -8
  344. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.button.css +0 -38
  345. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.core.css +0 -41
  346. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.datepicker.css +0 -68
  347. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.dialog.css +0 -21
  348. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.progressbar.css +0 -11
  349. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.resizable.css +0 -25
  350. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.selectable.css +0 -10
  351. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/themes/ui-lightness/jquery.ui.theme.css +0 -254
  352. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery-ui-i18n.js +0 -1379
  353. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +0 -23
  354. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js +0 -23
  355. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +0 -23
  356. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +0 -23
  357. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +0 -24
  358. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +0 -23
  359. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +0 -23
  360. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +0 -23
  361. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +0 -23
  362. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +0 -23
  363. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +0 -23
  364. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js +0 -23
  365. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +0 -23
  366. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js +0 -23
  367. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +0 -23
  368. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +0 -23
  369. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +0 -23
  370. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +0 -23
  371. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +0 -23
  372. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +0 -23
  373. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +0 -23
  374. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +0 -23
  375. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +0 -25
  376. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js +0 -23
  377. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +0 -23
  378. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +0 -23
  379. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +0 -23
  380. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +0 -23
  381. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +0 -23
  382. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +0 -23
  383. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +0 -23
  384. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +0 -23
  385. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +0 -23
  386. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-kz.js +0 -23
  387. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +0 -23
  388. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +0 -23
  389. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js +0 -23
  390. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +0 -23
  391. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +0 -23
  392. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +0 -23
  393. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +0 -23
  394. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +0 -23
  395. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js +0 -22
  396. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js +0 -21
  397. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +0 -26
  398. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +0 -23
  399. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +0 -23
  400. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +0 -24
  401. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +0 -23
  402. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +0 -23
  403. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +0 -23
  404. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +0 -23
  405. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +0 -23
  406. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +0 -23
  407. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js +0 -23
  408. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +0 -23
  409. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +0 -23
  410. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +0 -23
  411. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +0 -23
  412. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +0 -23
  413. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +0 -23
  414. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery-ui-1.8.13.custom.js +0 -8021
  415. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.autocomplete.js +0 -612
  416. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.button.js +0 -388
  417. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.core.js +0 -312
  418. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.datepicker.js +0 -1791
  419. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.dialog.js +0 -878
  420. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.draggable.js +0 -815
  421. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.droppable.js +0 -285
  422. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.mouse.js +0 -160
  423. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.position.js +0 -252
  424. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.progressbar.js +0 -109
  425. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.resizable.js +0 -814
  426. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.selectable.js +0 -266
  427. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.sortable.js +0 -1077
  428. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/jquery.ui.widget.js +0 -262
  429. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.autocomplete.min.js +0 -32
  430. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.button.min.js +0 -25
  431. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.core.min.js +0 -17
  432. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.datepicker.min.js +0 -82
  433. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.dialog.min.js +0 -40
  434. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.draggable.min.js +0 -50
  435. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.droppable.min.js +0 -26
  436. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.mouse.min.js +0 -17
  437. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.position.min.js +0 -16
  438. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.progressbar.min.js +0 -16
  439. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.resizable.min.js +0 -48
  440. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.selectable.min.js +0 -22
  441. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.sortable.min.js +0 -60
  442. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/ui/minified/jquery.ui.widget.min.js +0 -15
  443. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/development-bundle/version.txt +0 -1
  444. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/index.html +0 -321
  445. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/js/jquery-1.5.1.min.js +0 -16
  446. data/public/javascripts/old_sql/jquery-ui-1.8.13.custom (3)/js/jquery-ui-1.8.13.custom.min.js +0 -467
  447. data/test/dummy/.gitignore +0 -4
  448. data/test/dummy/Gemfile +0 -14
  449. data/test/dummy/Gemfile.lock +0 -78
  450. data/test/dummy/README +0 -256
  451. data/test/dummy/db/schema.rb +0 -15
  452. data/test/dummy/db/seeds.rb +0 -7
  453. data/test/dummy/doc/README_FOR_APP +0 -2
  454. data/test/dummy/public/images/rails.png +0 -0
  455. data/test/dummy/public/index.html +0 -239
  456. data/test/dummy/public/robots.txt +0 -5
  457. data/test/dummy/test/performance/browsing_test.rb +0 -9
  458. data/test/dummy/test/test_helper.rb +0 -14
  459. data/test/dummy/test/unit/hello_world_test.rb +0 -9
data/Gemfile CHANGED
@@ -3,6 +3,8 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
+ gem "sanitize"
7
+
6
8
  # Add dependencies to develop your gem here.
7
9
  # Include everything needed to run rake, tests, features, etc.
8
10
  group :development do
@@ -11,3 +13,9 @@ group :development do
11
13
  gem "jeweler"
12
14
  #gem "rcov", ">= 0"
13
15
  end
16
+
17
+ group :test do
18
+ gem "rails", "3.0.6"
19
+ gem "capybara", ">= 0.4.0"
20
+ gem "sqlite3"
21
+ end
data/Gemfile.lock CHANGED
@@ -1,15 +1,107 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.6)
6
+ actionpack (= 3.0.6)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.6)
9
+ activemodel (= 3.0.6)
10
+ activesupport (= 3.0.6)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.5.0)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
+ tzinfo (~> 0.3.23)
18
+ activemodel (3.0.6)
19
+ activesupport (= 3.0.6)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.6)
23
+ activemodel (= 3.0.6)
24
+ activesupport (= 3.0.6)
25
+ arel (~> 2.0.2)
26
+ tzinfo (~> 0.3.23)
27
+ activeresource (3.0.6)
28
+ activemodel (= 3.0.6)
29
+ activesupport (= 3.0.6)
30
+ activesupport (3.0.6)
31
+ arel (2.0.10)
32
+ builder (2.1.2)
33
+ capybara (0.4.1.2)
34
+ celerity (>= 0.7.9)
35
+ culerity (>= 0.2.4)
36
+ mime-types (>= 1.16)
37
+ nokogiri (>= 1.3.3)
38
+ rack (>= 1.0.0)
39
+ rack-test (>= 0.5.4)
40
+ selenium-webdriver (>= 0.0.27)
41
+ xpath (~> 0.1.3)
42
+ celerity (0.8.9)
43
+ childprocess (0.1.9)
44
+ ffi (~> 1.0.6)
45
+ culerity (0.2.15)
46
+ erubis (2.6.6)
47
+ abstract (>= 1.0.0)
48
+ ffi (1.0.9)
4
49
  git (1.2.5)
50
+ i18n (0.5.0)
5
51
  jeweler (1.6.2)
6
52
  bundler (~> 1.0)
7
53
  git (>= 1.2.5)
8
54
  rake
55
+ json_pure (1.5.1)
56
+ mail (2.2.19)
57
+ activesupport (>= 2.3.6)
58
+ i18n (>= 0.4.0)
59
+ mime-types (~> 1.16)
60
+ treetop (~> 1.4.8)
61
+ mime-types (1.16)
62
+ nokogiri (1.4.4)
63
+ polyglot (0.3.1)
64
+ rack (1.2.3)
65
+ rack-mount (0.6.14)
66
+ rack (>= 1.0.0)
67
+ rack-test (0.5.7)
68
+ rack (>= 1.0)
69
+ rails (3.0.6)
70
+ actionmailer (= 3.0.6)
71
+ actionpack (= 3.0.6)
72
+ activerecord (= 3.0.6)
73
+ activeresource (= 3.0.6)
74
+ activesupport (= 3.0.6)
75
+ bundler (~> 1.0)
76
+ railties (= 3.0.6)
77
+ railties (3.0.6)
78
+ actionpack (= 3.0.6)
79
+ activesupport (= 3.0.6)
80
+ rake (>= 0.8.7)
81
+ thor (~> 0.14.4)
9
82
  rake (0.9.1)
83
+ rubyzip (0.9.4)
84
+ sanitize (2.0.2)
85
+ nokogiri (~> 1.4.4)
86
+ selenium-webdriver (0.2.1)
87
+ childprocess (>= 0.1.7)
88
+ ffi (>= 1.0.7)
89
+ json_pure
90
+ rubyzip
91
+ sqlite3 (1.3.3)
92
+ thor (0.14.6)
93
+ treetop (1.4.9)
94
+ polyglot (>= 0.3.1)
95
+ tzinfo (0.3.27)
96
+ xpath (0.1.4)
97
+ nokogiri (~> 1.3)
10
98
 
11
99
  PLATFORMS
12
100
  ruby
13
101
 
14
102
  DEPENDENCIES
103
+ capybara (>= 0.4.0)
15
104
  jeweler
105
+ rails (= 3.0.6)
106
+ sanitize
107
+ sqlite3
data/Rakefile CHANGED
@@ -25,12 +25,14 @@ Jeweler::Tasks.new do |gem|
25
25
  end
26
26
  Jeweler::RubygemsDotOrgTasks.new
27
27
 
28
- #require 'rake/testtask'
29
- #Rake::TestTask.new(:test) do |test|
30
- # test.libs << 'lib' << 'test'
31
- # test.pattern = 'test/**/test_*.rb'
32
- # test.verbose = true
33
- #end
28
+ require 'rake/testtask'
29
+
30
+ Rake::TestTask.new(:test) do |t|
31
+ t.libs << 'lib'
32
+ t.libs << 'test'
33
+ t.pattern = 'test/**/*_test.rb'
34
+ t.verbose = false
35
+ end
34
36
 
35
37
  #require 'rcov/rcovtask'
36
38
  #Rcov::RcovTask.new do |test|
data/TODO.mkd CHANGED
@@ -1,5 +1,10 @@
1
1
  # TODO
2
2
 
3
- * Implement Rails Engine
4
- * Allow users to pass in their own variables to the sql file (complete)
5
- * Allow multiple sql files
3
+ * Allow multiple sql files
4
+ * Move javascript in index.html.erb into a separate javascript file.
5
+ * As an alternative to report_processors allow for a csv file that defines the format of the report.
6
+ Use symbols in the cells for the columns. Math operators could be used for performing calculations.
7
+ If this works we could write a complex report with zero ruby/rails code, html, or javascript.
8
+ * Try and implement jqgrid sort and search methods.
9
+ This should be done in the sql files by passing the params from jqgrid into them.
10
+ * Add Devise support
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
@@ -1,39 +1,18 @@
1
1
  require 'csv'
2
2
 
3
- #
4
- # TODO:
5
- # 1. Reduce the datagrid and print views to a single view.
6
- # The colnames can be defined in the reports.yml config file.
7
- # (Completed on 5-24-2011)
8
- # 2. Create a generic SQL parse method.
9
- # (Completed on 5-24-2011)
10
- # 3. Convert to a gem. This class will be overridden to implement
11
- # parse methods.
12
- # 4. Add export to CSV
13
- # (Completed on 5-24-2011)
14
- # 5. I think we should move the parse methods to a lib class.
15
- # The parse class name could be defined in the reports.yml file.
16
- # (Completed on 5-24-2011)
17
- # 6. Try and implement jqgrid sort and search methods.
18
- # This should be done in the sql files by passing the params
19
- # from jqgrid into them.
20
- # 7. Remove rails_admin dependencies
21
- # 8. Add Devise support
22
- # 9. Rewrite jqgrid using JQuery
23
- #
24
-
25
3
  module OldSql
26
4
  class ReportController < ApplicationController
27
5
  before_filter :_init
28
6
  before_filter :_reports
29
7
 
30
- helper_method :jqgrid_field_list
8
+ helper_method :jqgrid_col_model
9
+ helper_method :jqgrid_col_names
31
10
 
32
- ROUND_PRECISION = 2
11
+ layout "old_sql/report.html.erb"
12
+
33
13
  BASE_PROCESSOR = "base"
34
14
 
35
15
  def index
36
- #render :layout => 'rails_admin/dashboard'
37
16
  end
38
17
 
39
18
  def datagrid
@@ -43,7 +22,7 @@ module OldSql
43
22
  @report_name = params[:report]
44
23
  @report_sql = params[:report_sql]
45
24
 
46
- render :template => "rails_admin/db_report/datagrid.html.erb"
25
+ render :template => "old_sql/report/datagrid.html.erb"
47
26
  end
48
27
 
49
28
  def query
@@ -115,16 +94,15 @@ module OldSql
115
94
  processor = load_processor(@report_name)
116
95
  @report = processor.execute_query(@report_sql,@start_date,@end_date,query_vars(@report_name))
117
96
 
118
- render :layout => 'rails_admin/db_report_print', :template => "rails_admin/db_report/print.html.erb"
97
+ render :template => "old_sql/report/print.html.erb"
119
98
  end
120
99
 
121
100
 
122
101
  private
123
102
  def _init
124
- #todo add Devise support
103
+ #todo add Devise support
125
104
  #@authorization_adapter.authorize(:index) if @authorization_adapter
126
- @page_name = t("admin.report.pagename")
127
- @page_type = "report"
105
+ @page_name = t("old_sql.report.pagename")
128
106
  @host = self.request.host
129
107
  @port = self.request.port
130
108
  end
@@ -140,38 +118,53 @@ module OldSql
140
118
  #todo get processor name from @reports
141
119
 
142
120
  if !@reports[report]['processor'].nil?
143
- logger.info "Loading Processor report_processor/#{@reports[report]['processor'].downcase}"
144
- require "report_processor/#{@reports[report]['processor'].downcase}"
145
- processor=eval("ReportProcessor::#{@reports[report]['processor'].gsub("_","")}").new
121
+ logger.info "Loading Processor old_sql/report_processor/#{@reports[report]['processor'].downcase}"
122
+ require "old_sql/report_processor/#{@reports[report]['processor'].downcase}"
123
+ processor=eval("OldSql::ReportProcessor::#{@reports[report]['processor'].gsub("_","")}").new
146
124
 
147
125
  else
148
- logger.info "Loading Processor report_processor/#{BASE_PROCESSOR}"
149
- require "report_processor/#{BASE_PROCESSOR}"
150
- processor=eval("ReportProcessor::#{BASE_PROCESSOR}.capitalize").new
126
+ logger.info "Loading Processor old_sql/report_processor/#{BASE_PROCESSOR}"
127
+ require "old_sql/report_processor/#{BASE_PROCESSOR}"
128
+ processor=eval("OldSql::ReportProcessor::#{BASE_PROCESSOR.capitalize}").new
151
129
  end
152
- rescue
153
- logger.info "Loading Processor report_processor/#{BASE_PROCESSOR}"
154
- require "report_processor/#{BASE_PROCESSOR}"
155
- processor=eval("ReportProcessor::#{BASE_PROCESSOR}.capitalize").new
130
+ rescue Exception=>e
131
+ logger.error e.message
132
+ logger.info "Loading Processor old_sql/report_processor/#{BASE_PROCESSOR}"
133
+ require "old_sql/report_processor/#{BASE_PROCESSOR}"
134
+ processor=eval("OldSql::ReportProcessor::#{BASE_PROCESSOR.capitalize}").new
156
135
  end
157
136
 
158
137
  processor
159
138
  end
160
139
 
161
- def jqgrid_field_list
140
+ def jqgrid_col_model
162
141
  @fields = []
163
142
  field_num = 1
143
+
144
+ # [
145
+ # {name:'id',index:'id', width:55},
146
+ # {name:'invdate',index:'invdate', width:90, editable:true},
147
+ # {name:'name',index:'name', width:100,editable:true},
148
+ # {name:'amount',index:'amount', width:80, align:"right",editable:true},
149
+ # {name:'tax',index:'tax', width:80, align:"right",editable:true},
150
+ # {name:'total',index:'total', width:80,align:"right",editable:true},
151
+ # {name:'note',index:'note', width:150, sortable:false,editable:true}
152
+ # ]
164
153
 
165
154
  @reports[@report_name]['fields'].each do |field|
166
155
  if field_num == 1
167
- @fields << { :field => "cell_#{field_num}", :label => field }
156
+ @fields << { :name=>field }
168
157
  else
169
- @fields << { :field => "cell_#{field_num}", :label => field, :align => "center" }
158
+ @fields << { :name=>field, :align=>"center" }
170
159
  end
171
160
  field_num+=1
172
161
  end
173
162
 
174
- @fields
163
+ @fields.to_json
164
+ end
165
+
166
+ def jqgrid_col_names
167
+ @reports[@report_name]['fields'].to_json
175
168
  end
176
169
 
177
170
  def query_vars report
@@ -0,0 +1,14 @@
1
+ <html>
2
+ <head>
3
+ <%= stylesheet_link_tag "old_sql/old_sql.css" %>
4
+ <%= stylesheet_link_tag "old_sql/ui-lightness/jquery-ui-1.8.13.custom.css" %>
5
+
6
+ <%= javascript_include_tag "old_sql/jquery-1.5.1.min.js" %>
7
+ <%= javascript_include_tag "old_sql/jquery-ui-1.8.13.custom.min.js" %>
8
+ <%= javascript_include_tag "old_sql/jquery-ui-timepicker-addon.js" %>
9
+ <%= javascript_include_tag "old_sql/date_format.js" %>
10
+ </head>
11
+ <body>
12
+ <%= yield %>
13
+ </body>
14
+ </html>
@@ -1,16 +1,25 @@
1
- <%=jqgrid_javascripts%>
2
- <%=jqgrid_stylesheets%>
1
+ <!-- TODO move these to the head -->
2
+ <%= stylesheet_link_tag "old_sql/jqgrid/ui.jqgrid.css" %>
3
+ <%= javascript_include_tag "old_sql/jqgrid/jquery.jqGrid.min.js" %>
4
+ <%= javascript_include_tag "old_sql/jqgrid/ui.multiselect.js" %>
3
5
 
4
- <%=raw jqgrid(
5
- "#{@reports[@report_name]['value']} Report",
6
- "#{@report_name}",
7
- "/admin/db/report/query.json/",
8
- jqgrid_field_list(),
9
- {
10
- :autowidth=>true,
11
- :height=>430,
12
- :rows_per_page=>25,
13
- :mtype=>'GET',
14
- :post_data=>"{'report':'#{@report_name}','report_sql':'#{@report_sql}','generation':'#{@generation}','start_date':'#{@start_date}','end_date':'#{@end_date}'}"
15
- }
16
- ) %>
6
+ <script>
7
+ jQuery(document).ready(function(){
8
+ jQuery("#rowed1").jqGrid({
9
+ url:"http://<%=@host%>:<%=@port%>/sql/reports/query.json/?report=<%=@report_name%>&report_sql=<%=@report_sql%>&generation=<%=@generation%>&start_date=<%=@start_date%>&end_date=<%=@end_date%>",
10
+ datatype: "json",
11
+ pager: false,
12
+ colNames:['id','name'],
13
+ colModel:[
14
+ {name:'id',index:'id', width:55},
15
+ {name:'name',index:'name', width:100}
16
+ ],
17
+ rowNum:25,
18
+ rowList:[10,20,30],
19
+ width: 777,
20
+ caption: "<%=@reports[@report_name]['value']%> Report"
21
+ });
22
+ });
23
+ </script>
24
+
25
+ <table id="rowed1"></table>
@@ -1,9 +1,3 @@
1
- <%= stylesheet_link_tag "old_sql/db_report" %>
2
- <%= stylesheet_link_tag "old_sql/ui-lightness/jquery-ui-1.8.13.custom.css" %>
3
-
4
- <%= javascript_link_tag "old_sql/jquery-1.5.1.min.js" %>
5
- <%= javascript_link_tag "old_sql/jquery-ui-1.8.13.custom.min.js" %>
6
-
7
1
  <script>
8
2
  var host = "<%=@host%>";
9
3
  var port = "<%=@port%>";
@@ -12,24 +6,25 @@ var _report_loaded = false;
12
6
 
13
7
  function report_selected()
14
8
  {
15
- var virality = $j("#report option:selected").attr('virality');
16
- _report_sql = $j("#report option:selected").attr('report_sql');
9
+ var virality = jQuery("#report option:selected").attr('virality');
10
+ _report_sql = jQuery("#report option:selected").attr('report_sql');
17
11
 
18
12
  if (virality == 'true')
19
13
  {
20
- $j("#select-generation").removeAttr('disabled');
14
+ jQuery("#select-generation").removeAttr('disabled');
21
15
  }
22
16
  else
23
17
  {
24
- $j("#select-generation").attr('disabled', 'disabled');
25
- $j("#select-generation option:first").attr('selected','selected');
18
+ jQuery("#select-generation").attr('disabled', 'disabled');
19
+ jQuery("#select-generation option:first").attr('selected','selected');
26
20
  }
27
21
  }
28
22
 
29
23
  function load_report()
30
24
  {
31
- var src = "http://" + host+":"+port+"/admin/db/report/datagrid/?report="+$j("#report").val()+
32
- "&start_date="+$j("#datepicker-start").val()+"&end_date="+$j("#datepicker-end").val()+"&generation="+$j("#select-generation").val()+"&report_sql="+
25
+ var src = "http://"+host+":"+port+"/sql/reports/datagrid/?report="+jQuery("#report").val()+
26
+ "&start_date="+jQuery("#datepicker-start").val()+"&end_date="+jQuery("#datepicker-end").val()+"&generation="+
27
+ jQuery("#select-generation").val()+"&report_sql="+
33
28
  _report_sql;
34
29
 
35
30
  jQuery('iframe').attr('src', src);
@@ -45,10 +40,10 @@ function print_report()
45
40
  return;
46
41
  }
47
42
 
48
- var src = "http://" + host+":"+port+"/admin/db/report/print/?report="+$j("#report").val()+
49
- "&start_date="+$j("#datepicker-start").val()+"&end_date="+$j("#datepicker-end").val()+"&generation="+$j("#select-generation").val()+"&report_sql="+
50
- _report_sql+"&desc="+$j("#report option:selected").attr('desc');
51
- window.open(src,'DB Report')
43
+ var src = "http://"+host+":"+port+"/sql/reports/print/?report="+jQuery("#report").val()+
44
+ "&start_date="+jQuery("#datepicker-start").val()+"&end_date="+jQuery("#datepicker-end").val()+"&generation="+
45
+ jQuery("#select-generation").val()+"&report_sql="+_report_sql+"&desc="+jQuery("#report option:selected").attr('desc');
46
+ window.open(src,'Old SQL Report')
52
47
  }
53
48
 
54
49
  function export_report_to_excel()
@@ -59,36 +54,37 @@ function export_report_to_excel()
59
54
  return;
60
55
  }
61
56
 
62
- var src = "http://" + host+":"+port+"/admin/db/report/query.csv/?report="+$j("#report").val()+
63
- "&start_date="+$j("#datepicker-start").val()+"&end_date="+$j("#datepicker-end").val()+"&generation="+$j("#select-generation").val()+"&report_sql="+
64
- _report_sql+"&desc="+$j("#report option:selected").attr('desc');
57
+ var src = "http://"+host+":"+port+"/sql/reports/query.csv/?report="+jQuery("#report").val()+
58
+ "&start_date="+jQuery("#datepicker-start").val()+"&end_date="+jQuery("#datepicker-end").val()+
59
+ "&generation="+jQuery("#select-generation").val()+"&report_sql="+
60
+ _report_sql+"&desc="+jQuery("#report option:selected").attr('desc');
65
61
  window.open(src,'DB Report')
66
62
  }
67
63
 
68
- $j(document).ready(function($){
69
- $("#datepicker-start").datetimepicker();
70
- $("#datepicker-start").datetimepicker( "option", "dateFormat", "yy/mm/dd" );
71
- $("#datepicker-end").datetimepicker();
72
- $("#datepicker-end").datetimepicker( "option", "dateFormat", "yy/mm/dd" );
64
+ jQuery(document).ready(function($){
65
+ jQuery("#datepicker-start").datetimepicker();
66
+ jQuery("#datepicker-start").datetimepicker( "option", "dateFormat", "yy/mm/dd" );
67
+ jQuery("#datepicker-end").datetimepicker();
68
+ jQuery("#datepicker-end").datetimepicker( "option", "dateFormat", "yy/mm/dd" );
73
69
 
74
- $j("#select-generation").attr('disabled', 'disabled');
70
+ jQuery("#select-generation").attr('disabled', 'disabled');
75
71
 
76
72
  var now = new Date();
77
73
  var tomorrow = new Date();
78
74
  var two_weeks_ago = new Date();
79
75
  two_weeks_ago.setDate(now.getDate() - 14);
80
76
  tomorrow.setDate(now.getDate() + 1);
81
- $j("#datepicker-start").attr('value', two_weeks_ago.format("yyyy/mm/dd HH:MM:ss"));
82
- $j("#datepicker-end").attr('value', tomorrow.format("yyyy/mm/dd HH:MM:ss"));
77
+ jQuery("#datepicker-start").attr('value', two_weeks_ago.format("yyyy/mm/dd HH:MM:ss"));
78
+ jQuery("#datepicker-end").attr('value', tomorrow.format("yyyy/mm/dd HH:MM:ss"));
83
79
  });
84
80
  </script>
85
81
 
86
- <div class="ra-block">
82
+ <div class="os-block">
87
83
  <div class="ui-widget-header clearfix">
88
84
  <%= @page_name %>
89
85
  </div>
90
86
 
91
- <form id="report-form" name="report-form" action="/admin/db/report/query" method="POST">
87
+ <form id="report-form" name="report-form" action="/oldsql/reports/query" method="POST">
92
88
  <div class="report-form-row">
93
89
  <div class="report-form-label">SELECT A REPORT:</div>
94
90
  <div class="report-form-input">
@@ -0,0 +1,5 @@
1
+ en:
2
+ old_sql:
3
+ report:
4
+ pagename: Old SQL Reports
5
+ name: Old SQL Reports
data/config/routes.rb CHANGED
@@ -1,10 +1,12 @@
1
1
  Rails.application.routes.draw do
2
- scope "report", :module => :old_sql, :as => "old_sql" do
3
- controller "report" do
4
- match "/", :to => :index, :as => "report_list"
5
- match "/query", :to => :query, :as => "query"
6
- match "/datagrid", :to => :datagrid, :as => "datagrid"
7
- match "/print", :to => :print, :as => "print"
2
+ scope "sql", :module => :old_sql, :as => "old_sql" do
3
+ scope "reports", :as => "reports" do
4
+ controller "report" do
5
+ match "/", :to => :index, :as => "report_list"
6
+ match "/query", :to => :query, :as => "query"
7
+ match "/datagrid", :to => :datagrid, :as => "datagrid"
8
+ match "/print", :to => :print, :as => "print"
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -5,5 +5,9 @@ require "action_controller"
5
5
  module OldSql
6
6
  class Engine < Rails::Engine
7
7
  engine_name :old_sql
8
+
9
+ initializer "static assets" do |app|
10
+ app.middleware.use ::ActionDispatch::Static, "#{root}/public"
11
+ end
8
12
  end
9
13
  end
@@ -0,0 +1,92 @@
1
+ module OldSql
2
+ module ReportProcessor
3
+ class Base
4
+
5
+ ROUND_PRECISION = 2
6
+
7
+ def hello_world
8
+ puts "Hello World"
9
+ end
10
+
11
+ def execute_query(report_sql,start_date,end_date,query_vars)
12
+ vars = {:start_date => start_date, :end_date => end_date}
13
+
14
+ if !query_vars.nil?
15
+ vars = vars.merge query_vars
16
+ end
17
+
18
+ template = File.read("#{Rails.root}/config/report_sql/#{report_sql}.erb")
19
+ sql = Erubis::Eruby.new(template).result(vars)
20
+
21
+ Rails.logger.debug sql
22
+
23
+ db = nil
24
+
25
+ begin
26
+ #todo change to a reporting db
27
+ db = ActiveRecord::Base.connection();
28
+
29
+ @resultset = []
30
+ rec = db.select_all(sql)
31
+ rec.each do |row|
32
+ @resultset << row
33
+ end
34
+ rescue
35
+ #todo log error
36
+ end
37
+
38
+ parse(@resultset)
39
+
40
+ @data
41
+ end
42
+
43
+ def init(resultset)
44
+ @rec = resultset[0]
45
+ self.new_data
46
+ end
47
+
48
+ def parse(resultset)
49
+ init(resultset)
50
+
51
+ resultset.each do |r|
52
+ cell = []
53
+ r.each do |key, value|
54
+ cell << value
55
+ end
56
+ new_row(nil, cell)
57
+ end
58
+
59
+ @data
60
+ end
61
+
62
+ def new_data(page=1, total=1, records=1)
63
+ @id = 0
64
+ @data = {}
65
+ @data[:page]=page
66
+ @data[:total]=total
67
+ @data[:records]=records
68
+ @data[:rows] = []
69
+ end
70
+
71
+ def new_row(title = nil, cell_data = [], id = @id+1)
72
+ if !title.nil?
73
+ cell_data.unshift "<b>#{title}</b>"
74
+ end
75
+
76
+ @data[:rows] << {id: id, cell: cell_data}
77
+ end
78
+
79
+ def ifnull(o)
80
+ if !o.nil? && o != 0
81
+ return o
82
+ else
83
+ return 1
84
+ end
85
+ end
86
+
87
+ def isNumeric(s)
88
+ Float(s) != nil rescue false
89
+ end
90
+ end
91
+ end
92
+ end