rails8_db 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (661) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +30 -0
  3. data/Gemfile.lock +286 -0
  4. data/MIT-LICENSE +20 -0
  5. data/Rakefile +36 -0
  6. data/app/assets/config/manifest.js +6 -0
  7. data/app/assets/images/rails_db/data_table.png +0 -0
  8. data/app/assets/images/rails_db/data_table_code.png +0 -0
  9. data/app/assets/images/rails_db/logo.png +0 -0
  10. data/app/assets/images/rails_db/logo_mini.png +0 -0
  11. data/app/assets/images/rails_db/railsdb.png +0 -0
  12. data/app/assets/images/rails_db/runsql.png +0 -0
  13. data/app/assets/javascripts/codemirror/codemirror/addons/comment/comment.js +209 -0
  14. data/app/assets/javascripts/codemirror/codemirror/addons/comment/continuecomment.js +113 -0
  15. data/app/assets/javascripts/codemirror/codemirror/addons/dialog/dialog.css +32 -0
  16. data/app/assets/javascripts/codemirror/codemirror/addons/dialog/dialog.js +161 -0
  17. data/app/assets/javascripts/codemirror/codemirror/addons/display/autorefresh.js +47 -0
  18. data/app/assets/javascripts/codemirror/codemirror/addons/display/fullscreen.css +6 -0
  19. data/app/assets/javascripts/codemirror/codemirror/addons/display/fullscreen.js +41 -0
  20. data/app/assets/javascripts/codemirror/codemirror/addons/display/panel.js +127 -0
  21. data/app/assets/javascripts/codemirror/codemirror/addons/display/placeholder.js +63 -0
  22. data/app/assets/javascripts/codemirror/codemirror/addons/display/rulers.js +51 -0
  23. data/app/assets/javascripts/codemirror/codemirror/addons/edit/closebrackets.js +191 -0
  24. data/app/assets/javascripts/codemirror/codemirror/addons/edit/closetag.js +184 -0
  25. data/app/assets/javascripts/codemirror/codemirror/addons/edit/continuelist.js +99 -0
  26. data/app/assets/javascripts/codemirror/codemirror/addons/edit/matchbrackets.js +150 -0
  27. data/app/assets/javascripts/codemirror/codemirror/addons/edit/matchtags.js +66 -0
  28. data/app/assets/javascripts/codemirror/codemirror/addons/edit/trailingspace.js +27 -0
  29. data/app/assets/javascripts/codemirror/codemirror/addons/fold/brace-fold.js +105 -0
  30. data/app/assets/javascripts/codemirror/codemirror/addons/fold/comment-fold.js +59 -0
  31. data/app/assets/javascripts/codemirror/codemirror/addons/fold/foldcode.js +152 -0
  32. data/app/assets/javascripts/codemirror/codemirror/addons/fold/foldgutter.css +20 -0
  33. data/app/assets/javascripts/codemirror/codemirror/addons/fold/foldgutter.js +163 -0
  34. data/app/assets/javascripts/codemirror/codemirror/addons/fold/indent-fold.js +48 -0
  35. data/app/assets/javascripts/codemirror/codemirror/addons/fold/markdown-fold.js +49 -0
  36. data/app/assets/javascripts/codemirror/codemirror/addons/fold/xml-fold.js +184 -0
  37. data/app/assets/javascripts/codemirror/codemirror/addons/hint/anyword-hint.js +41 -0
  38. data/app/assets/javascripts/codemirror/codemirror/addons/hint/show-hint.css +36 -0
  39. data/app/assets/javascripts/codemirror/codemirror/addons/hint/show-hint.js +460 -0
  40. data/app/assets/javascripts/codemirror/codemirror/addons/hint/sql-hint.js +304 -0
  41. data/app/assets/javascripts/codemirror/codemirror/addons/lint/coffeescript-lint.js +47 -0
  42. data/app/assets/javascripts/codemirror/codemirror/addons/lint/css-lint.js +40 -0
  43. data/app/assets/javascripts/codemirror/codemirror/addons/lint/html-lint.js +59 -0
  44. data/app/assets/javascripts/codemirror/codemirror/addons/lint/javascript-lint.js +63 -0
  45. data/app/assets/javascripts/codemirror/codemirror/addons/lint/json-lint.js +40 -0
  46. data/app/assets/javascripts/codemirror/codemirror/addons/lint/lint.css +73 -0
  47. data/app/assets/javascripts/codemirror/codemirror/addons/lint/lint.js +252 -0
  48. data/app/assets/javascripts/codemirror/codemirror/addons/lint/yaml-lint.js +41 -0
  49. data/app/assets/javascripts/codemirror/codemirror/addons/merge/merge.css +119 -0
  50. data/app/assets/javascripts/codemirror/codemirror/addons/merge/merge.js +1002 -0
  51. data/app/assets/javascripts/codemirror/codemirror/addons/mode/loadmode.js +64 -0
  52. data/app/assets/javascripts/codemirror/codemirror/addons/mode/multiplex.js +131 -0
  53. data/app/assets/javascripts/codemirror/codemirror/addons/mode/multiplex_test.js +33 -0
  54. data/app/assets/javascripts/codemirror/codemirror/addons/mode/overlay.js +90 -0
  55. data/app/assets/javascripts/codemirror/codemirror/addons/mode/simple.js +216 -0
  56. data/app/assets/javascripts/codemirror/codemirror/addons/runmode/colorize.js +40 -0
  57. data/app/assets/javascripts/codemirror/codemirror/addons/runmode/runmode-standalone.js +158 -0
  58. data/app/assets/javascripts/codemirror/codemirror/addons/runmode/runmode.js +72 -0
  59. data/app/assets/javascripts/codemirror/codemirror/addons/runmode/runmode.node.js +197 -0
  60. data/app/assets/javascripts/codemirror/codemirror/addons/scroll/annotatescrollbar.js +122 -0
  61. data/app/assets/javascripts/codemirror/codemirror/addons/scroll/scrollpastend.js +48 -0
  62. data/app/assets/javascripts/codemirror/codemirror/addons/scroll/simplescrollbars.css +66 -0
  63. data/app/assets/javascripts/codemirror/codemirror/addons/scroll/simplescrollbars.js +152 -0
  64. data/app/assets/javascripts/codemirror/codemirror/addons/search/jump-to-line.js +50 -0
  65. data/app/assets/javascripts/codemirror/codemirror/addons/search/match-highlighter.js +165 -0
  66. data/app/assets/javascripts/codemirror/codemirror/addons/search/matchesonscrollbar.css +8 -0
  67. data/app/assets/javascripts/codemirror/codemirror/addons/search/matchesonscrollbar.js +97 -0
  68. data/app/assets/javascripts/codemirror/codemirror/addons/search/search.js +260 -0
  69. data/app/assets/javascripts/codemirror/codemirror/addons/search/searchcursor.js +293 -0
  70. data/app/assets/javascripts/codemirror/codemirror/addons/selection/active-line.js +72 -0
  71. data/app/assets/javascripts/codemirror/codemirror/addons/selection/mark-selection.js +119 -0
  72. data/app/assets/javascripts/codemirror/codemirror/addons/selection/selection-pointer.js +98 -0
  73. data/app/assets/javascripts/codemirror/codemirror/addons/tern/tern.css +87 -0
  74. data/app/assets/javascripts/codemirror/codemirror/addons/tern/tern.js +718 -0
  75. data/app/assets/javascripts/codemirror/codemirror/addons/tern/worker.js +44 -0
  76. data/app/assets/javascripts/codemirror/codemirror/addons/wrap/hardwrap.js +145 -0
  77. data/app/assets/javascripts/codemirror/codemirror/keymaps/emacs.js +418 -0
  78. data/app/assets/javascripts/codemirror/codemirror/keymaps/sublime.js +691 -0
  79. data/app/assets/javascripts/codemirror/codemirror/keymaps/vim.js +5494 -0
  80. data/app/assets/javascripts/codemirror/codemirror/modes/sql.js +494 -0
  81. data/app/assets/javascripts/codemirror/codemirror.js +9783 -0
  82. data/app/assets/javascripts/rails_db/application.js +96 -0
  83. data/app/assets/javascripts/rails_db/foundation.min.js +20 -0
  84. data/app/assets/javascripts/rails_db/jquery.cookie.js +114 -0
  85. data/app/assets/javascripts/rails_db/jquery.js +26 -0
  86. data/app/assets/javascripts/rails_db/rails-ujs.js +685 -0
  87. data/app/assets/javascripts/rails_db/search.js +19 -0
  88. data/app/assets/javascripts/rails_db/show_hide_columns.js +54 -0
  89. data/app/assets/javascripts/rails_db/sticky.js +44 -0
  90. data/app/assets/stylesheets/codemirror/codemirror/addons/dialog/dialog.css +32 -0
  91. data/app/assets/stylesheets/codemirror/codemirror/addons/display/fullscreen.css +6 -0
  92. data/app/assets/stylesheets/codemirror/codemirror/addons/fold/foldgutter.css +20 -0
  93. data/app/assets/stylesheets/codemirror/codemirror/addons/hint/show-hint.css +36 -0
  94. data/app/assets/stylesheets/codemirror/codemirror/addons/lint/lint.css +73 -0
  95. data/app/assets/stylesheets/codemirror/codemirror/addons/merge/merge.css +119 -0
  96. data/app/assets/stylesheets/codemirror/codemirror/addons/scroll/simplescrollbars.css +66 -0
  97. data/app/assets/stylesheets/codemirror/codemirror/addons/search/matchesonscrollbar.css +8 -0
  98. data/app/assets/stylesheets/codemirror/codemirror/addons/tern/tern.css +87 -0
  99. data/app/assets/stylesheets/codemirror/codemirror/modes/tiddlywiki.css +14 -0
  100. data/app/assets/stylesheets/codemirror/codemirror/modes/tiki.css +26 -0
  101. data/app/assets/stylesheets/codemirror/codemirror/themes/3024-day.css +41 -0
  102. data/app/assets/stylesheets/codemirror/codemirror/themes/3024-night.css +39 -0
  103. data/app/assets/stylesheets/codemirror/codemirror/themes/abcdef.css +32 -0
  104. data/app/assets/stylesheets/codemirror/codemirror/themes/ambiance-mobile.css +5 -0
  105. data/app/assets/stylesheets/codemirror/codemirror/themes/ambiance.css +74 -0
  106. data/app/assets/stylesheets/codemirror/codemirror/themes/base16-dark.css +38 -0
  107. data/app/assets/stylesheets/codemirror/codemirror/themes/base16-light.css +38 -0
  108. data/app/assets/stylesheets/codemirror/codemirror/themes/bespin.css +34 -0
  109. data/app/assets/stylesheets/codemirror/codemirror/themes/blackboard.css +32 -0
  110. data/app/assets/stylesheets/codemirror/codemirror/themes/cobalt.css +25 -0
  111. data/app/assets/stylesheets/codemirror/codemirror/themes/colorforth.css +33 -0
  112. data/app/assets/stylesheets/codemirror/codemirror/themes/darcula.css +51 -0
  113. data/app/assets/stylesheets/codemirror/codemirror/themes/dracula.css +40 -0
  114. data/app/assets/stylesheets/codemirror/codemirror/themes/duotone-dark.css +35 -0
  115. data/app/assets/stylesheets/codemirror/codemirror/themes/duotone-light.css +36 -0
  116. data/app/assets/stylesheets/codemirror/codemirror/themes/eclipse.css +23 -0
  117. data/app/assets/stylesheets/codemirror/codemirror/themes/elegant.css +13 -0
  118. data/app/assets/stylesheets/codemirror/codemirror/themes/erlang-dark.css +34 -0
  119. data/app/assets/stylesheets/codemirror/codemirror/themes/gruvbox-dark.css +37 -0
  120. data/app/assets/stylesheets/codemirror/codemirror/themes/hopscotch.css +34 -0
  121. data/app/assets/stylesheets/codemirror/codemirror/themes/icecoder.css +43 -0
  122. data/app/assets/stylesheets/codemirror/codemirror/themes/idea.css +42 -0
  123. data/app/assets/stylesheets/codemirror/codemirror/themes/isotope.css +34 -0
  124. data/app/assets/stylesheets/codemirror/codemirror/themes/lesser-dark.css +47 -0
  125. data/app/assets/stylesheets/codemirror/codemirror/themes/liquibyte.css +95 -0
  126. data/app/assets/stylesheets/codemirror/codemirror/themes/lucario.css +37 -0
  127. data/app/assets/stylesheets/codemirror/codemirror/themes/material.css +53 -0
  128. data/app/assets/stylesheets/codemirror/codemirror/themes/mbo.css +37 -0
  129. data/app/assets/stylesheets/codemirror/codemirror/themes/mdn-like.css +46 -0
  130. data/app/assets/stylesheets/codemirror/codemirror/themes/midnight.css +39 -0
  131. data/app/assets/stylesheets/codemirror/codemirror/themes/monokai.css +41 -0
  132. data/app/assets/stylesheets/codemirror/codemirror/themes/neat.css +12 -0
  133. data/app/assets/stylesheets/codemirror/codemirror/themes/neo.css +43 -0
  134. data/app/assets/stylesheets/codemirror/codemirror/themes/night.css +27 -0
  135. data/app/assets/stylesheets/codemirror/codemirror/themes/nord.css +42 -0
  136. data/app/assets/stylesheets/codemirror/codemirror/themes/oceanic-next.css +44 -0
  137. data/app/assets/stylesheets/codemirror/codemirror/themes/panda-syntax.css +85 -0
  138. data/app/assets/stylesheets/codemirror/codemirror/themes/paraiso-dark.css +38 -0
  139. data/app/assets/stylesheets/codemirror/codemirror/themes/paraiso-light.css +38 -0
  140. data/app/assets/stylesheets/codemirror/codemirror/themes/pastel-on-dark.css +52 -0
  141. data/app/assets/stylesheets/codemirror/codemirror/themes/railscasts.css +34 -0
  142. data/app/assets/stylesheets/codemirror/codemirror/themes/rubyblue.css +25 -0
  143. data/app/assets/stylesheets/codemirror/codemirror/themes/seti.css +44 -0
  144. data/app/assets/stylesheets/codemirror/codemirror/themes/shadowfox.css +52 -0
  145. data/app/assets/stylesheets/codemirror/codemirror/themes/solarized.css +168 -0
  146. data/app/assets/stylesheets/codemirror/codemirror/themes/ssms.css +16 -0
  147. data/app/assets/stylesheets/codemirror/codemirror/themes/the-matrix.css +30 -0
  148. data/app/assets/stylesheets/codemirror/codemirror/themes/tomorrow-night-bright.css +35 -0
  149. data/app/assets/stylesheets/codemirror/codemirror/themes/tomorrow-night-eighties.css +38 -0
  150. data/app/assets/stylesheets/codemirror/codemirror/themes/ttcn.css +64 -0
  151. data/app/assets/stylesheets/codemirror/codemirror/themes/twilight.css +32 -0
  152. data/app/assets/stylesheets/codemirror/codemirror/themes/vibrant-ink.css +34 -0
  153. data/app/assets/stylesheets/codemirror/codemirror/themes/xq-dark.css +53 -0
  154. data/app/assets/stylesheets/codemirror/codemirror/themes/xq-light.css +43 -0
  155. data/app/assets/stylesheets/codemirror/codemirror/themes/zenburn.css +37 -0
  156. data/app/assets/stylesheets/codemirror/codemirror.css +349 -0
  157. data/app/assets/stylesheets/rails_db/app.css +94 -0
  158. data/app/assets/stylesheets/rails_db/application.css +13 -0
  159. data/app/assets/stylesheets/rails_db/forms.css +14 -0
  160. data/app/assets/stylesheets/rails_db/foundation.css +6579 -0
  161. data/app/assets/stylesheets/rails_db/foundation.min.css +1 -0
  162. data/app/assets/stylesheets/rails_db/foundation_and_overrides.css +8 -0
  163. data/app/assets/stylesheets/rails_db/normalize.css +424 -0
  164. data/app/assets/stylesheets/rails_db/pagination.css +17 -0
  165. data/app/assets/stylesheets/rails_db/search.css +7 -0
  166. data/app/assets/stylesheets/rails_db/sidebar.css +22 -0
  167. data/app/assets/stylesheets/rails_db/table.css +12 -0
  168. data/app/controllers/rails_db/application_controller.rb +26 -0
  169. data/app/controllers/rails_db/dashboard_controller.rb +8 -0
  170. data/app/controllers/rails_db/sql_controller.rb +42 -0
  171. data/app/controllers/rails_db/tables_controller.rb +121 -0
  172. data/app/helpers/rails_db/application_helper.rb +82 -0
  173. data/app/helpers/rails_db/flash_messages_helper.rb +44 -0
  174. data/app/helpers/rails_db/tables_helper.rb +60 -0
  175. data/app/views/layouts/rails_db/application.html.erb +32 -0
  176. data/app/views/rails_db/dashboard/data_table.html.erb +19 -0
  177. data/app/views/rails_db/dashboard/index.html.erb +37 -0
  178. data/app/views/rails_db/dashboard/standalone.html.erb +19 -0
  179. data/app/views/rails_db/shared/_data_table.html.erb +32 -0
  180. data/app/views/rails_db/shared/_exp_col.html.erb +2 -0
  181. data/app/views/rails_db/shared/_footer.html.erb +57 -0
  182. data/app/views/rails_db/shared/_gems.html.erb +23 -0
  183. data/app/views/rails_db/shared/_header.html.erb +55 -0
  184. data/app/views/rails_db/shared/_sidebar.html.erb +14 -0
  185. data/app/views/rails_db/shared/_sql_result.html.erb +31 -0
  186. data/app/views/rails_db/sql/_explain.html.erb +10 -0
  187. data/app/views/rails_db/sql/_history.html.erb +17 -0
  188. data/app/views/rails_db/sql/_import_sample.html.erb +19 -0
  189. data/app/views/rails_db/sql/_results.html.erb +52 -0
  190. data/app/views/rails_db/sql/import.html.erb +33 -0
  191. data/app/views/rails_db/sql/index.html.erb +61 -0
  192. data/app/views/rails_db/sql/xls.xls.axlsx +9 -0
  193. data/app/views/rails_db/tables/_condition_fields.html.erb +10 -0
  194. data/app/views/rails_db/tables/_data.html.erb +127 -0
  195. data/app/views/rails_db/tables/_edit.html.erb +28 -0
  196. data/app/views/rails_db/tables/_new.html.erb +21 -0
  197. data/app/views/rails_db/tables/_row.html.erb +15 -0
  198. data/app/views/rails_db/tables/_search.html.erb +78 -0
  199. data/app/views/rails_db/tables/_show.html.erb +101 -0
  200. data/app/views/rails_db/tables/_sql.html.erb +7 -0
  201. data/app/views/rails_db/tables/create.js.erb +9 -0
  202. data/app/views/rails_db/tables/data.html.erb +1 -0
  203. data/app/views/rails_db/tables/data.js.erb +14 -0
  204. data/app/views/rails_db/tables/destroy.js.erb +5 -0
  205. data/app/views/rails_db/tables/edit.js.erb +7 -0
  206. data/app/views/rails_db/tables/index.html.erb +17 -0
  207. data/app/views/rails_db/tables/new.js.erb +7 -0
  208. data/app/views/rails_db/tables/show.html.erb +1 -0
  209. data/app/views/rails_db/tables/show.js.erb +14 -0
  210. data/app/views/rails_db/tables/table.xls.axlsx +9 -0
  211. data/app/views/rails_db/tables/update.js.erb +3 -0
  212. data/bin/rails_db +3 -0
  213. data/bin/railsdb +3 -0
  214. data/bin/runsql +49 -0
  215. data/config/initializers/mime_types.rb +1 -0
  216. data/config/initializers/simple_form.rb +168 -0
  217. data/config/initializers/will_paginate_fix.rb +15 -0
  218. data/config/locales/simple_form.en.yml +31 -0
  219. data/config/routes.rb +32 -0
  220. data/lib/ext/simple_form_ext.rb +1 -0
  221. data/lib/ext/string_ext.rb +10 -0
  222. data/lib/generators/USAGE +8 -0
  223. data/lib/generators/rails_db_generator.rb +6 -0
  224. data/lib/generators/templates/rails_db.rb +30 -0
  225. data/lib/libs.rb +25 -0
  226. data/lib/rails/routes.rb +7 -0
  227. data/lib/rails_db/adapters/base_adapter.rb +94 -0
  228. data/lib/rails_db/adapters/mysql.rb +36 -0
  229. data/lib/rails_db/adapters/postgres.rb +17 -0
  230. data/lib/rails_db/adapters/sqlite.rb +25 -0
  231. data/lib/rails_db/blank_results.rb +8 -0
  232. data/lib/rails_db/connection.rb +27 -0
  233. data/lib/rails_db/database.rb +46 -0
  234. data/lib/rails_db/engine.rb +16 -0
  235. data/lib/rails_db/helpers.rb +73 -0
  236. data/lib/rails_db/history.rb +29 -0
  237. data/lib/rails_db/mysql_result.rb +18 -0
  238. data/lib/rails_db/rails_db_error.rb +5 -0
  239. data/lib/rails_db/result.rb +19 -0
  240. data/lib/rails_db/sql_explain.rb +9 -0
  241. data/lib/rails_db/sql_import.rb +26 -0
  242. data/lib/rails_db/sql_query.rb +43 -0
  243. data/lib/rails_db/sql_query_data.rb +36 -0
  244. data/lib/rails_db/table.rb +92 -0
  245. data/lib/rails_db/table_data.rb +78 -0
  246. data/lib/rails_db/table_pagination.rb +31 -0
  247. data/lib/rails_db/version.rb +3 -0
  248. data/lib/rails_db.rb +70 -0
  249. data/lib/standalone.rb +50 -0
  250. data/lib/tasks/rails_db_tasks.rake +4 -0
  251. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  252. data/rails_db.gemspec +45 -0
  253. data/test/dashboard_controller_test.rb +101 -0
  254. data/test/database_test.rb +20 -0
  255. data/test/dummy/README.rdoc +28 -0
  256. data/test/dummy/Rakefile +6 -0
  257. data/test/dummy/app/assets/config/manifest.js +2 -0
  258. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  259. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  260. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  261. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  262. data/test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  263. data/test/dummy/app/assets/javascripts/application.js +13 -0
  264. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  265. data/test/dummy/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
  266. data/test/dummy/app/assets/stylesheets/bootstrap.min.css +5 -0
  267. data/test/dummy/app/controllers/application_controller.rb +5 -0
  268. data/test/dummy/app/controllers/home_controller.rb +7 -0
  269. data/test/dummy/app/helpers/application_helper.rb +2 -0
  270. data/test/dummy/app/models/account.rb +19 -0
  271. data/test/dummy/app/models/comment.rb +14 -0
  272. data/test/dummy/app/models/contact.rb +15 -0
  273. data/test/dummy/app/models/customer.rb +3 -0
  274. data/test/dummy/app/models/legacy_account.rb +2 -0
  275. data/test/dummy/app/models/payment.rb +2 -0
  276. data/test/dummy/app/models/populate.rb +43 -0
  277. data/test/dummy/app/models/project.rb +3 -0
  278. data/test/dummy/app/models/user.rb +20 -0
  279. data/test/dummy/app/views/home/index.html.erb +26 -0
  280. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  281. data/test/dummy/bin/bundle +3 -0
  282. data/test/dummy/bin/rails +4 -0
  283. data/test/dummy/bin/rake +4 -0
  284. data/test/dummy/bin/setup +29 -0
  285. data/test/dummy/config/application.rb +34 -0
  286. data/test/dummy/config/boot.rb +5 -0
  287. data/test/dummy/config/database.yml +34 -0
  288. data/test/dummy/config/environment.rb +5 -0
  289. data/test/dummy/config/environments/development.rb +51 -0
  290. data/test/dummy/config/environments/production.rb +87 -0
  291. data/test/dummy/config/environments/test.rb +53 -0
  292. data/test/dummy/config/initializers/assets.rb +11 -0
  293. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  294. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  295. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  296. data/test/dummy/config/initializers/inflections.rb +16 -0
  297. data/test/dummy/config/initializers/mime_types.rb +7 -0
  298. data/test/dummy/config/initializers/rails_db.rb +25 -0
  299. data/test/dummy/config/initializers/session_store.rb +3 -0
  300. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  301. data/test/dummy/config/locales/en.yml +23 -0
  302. data/test/dummy/config/routes.rb +17 -0
  303. data/test/dummy/config/secrets.yml +22 -0
  304. data/test/dummy/config.ru +4 -0
  305. data/test/dummy/db/migrate/20151013203739_create_users.rb +18 -0
  306. data/test/dummy/db/migrate/20151013203757_create_comments.rb +10 -0
  307. data/test/dummy/db/migrate/20151013204027_populate_data.rb +13 -0
  308. data/test/dummy/db/migrate/20151014074454_create_accounts.rb +14 -0
  309. data/test/dummy/db/migrate/20151014074655_create_contacts.rb +13 -0
  310. data/test/dummy/db/migrate/20151014152932_add_bd.rb +9 -0
  311. data/test/dummy/db/migrate/20151014183823_create_projects.rb +17 -0
  312. data/test/dummy/db/migrate/20151014184243_add_long_text.rb +7 -0
  313. data/test/dummy/db/migrate/20151015145740_populate_db.rb +4 -0
  314. data/test/dummy/db/migrate/20151027192250_create_payments.rb +14 -0
  315. data/test/dummy/db/migrate/20151027223149_add_non_pk_table.rb +10 -0
  316. data/test/dummy/db/migrate/20151028191429_create_legacy_accounts.rb +7 -0
  317. data/test/dummy/db/migrate/20151121125538_add_boolean_field_to_user.rb +5 -0
  318. data/test/dummy/db/migrate/20170126124628_add_sti_model.rb +5 -0
  319. data/test/dummy/db/migrate/20180528134358_add_deleted_at_to_projects.rb +6 -0
  320. data/test/dummy/db/migrate/20210626083314_add_country_column.rb +5 -0
  321. data/test/dummy/db/schema.rb +121 -0
  322. data/test/dummy/log/development.log +0 -0
  323. data/test/dummy/public/404.html +67 -0
  324. data/test/dummy/public/422.html +67 -0
  325. data/test/dummy/public/500.html +66 -0
  326. data/test/dummy/public/assets/actioncable-b561134b2bfb0d095c5329001e894d6d433544b2a0f4276e0e50591afa62bb46.js +510 -0
  327. data/test/dummy/public/assets/actioncable-b561134b2bfb0d095c5329001e894d6d433544b2a0f4276e0e50591afa62bb46.js.gz +0 -0
  328. data/test/dummy/public/assets/actioncable.esm-642a147cbb90e93c6f2bcaeeb817a4a263aa4f971a6d95795835270bd8519dfd.js +512 -0
  329. data/test/dummy/public/assets/actioncable.esm-642a147cbb90e93c6f2bcaeeb817a4a263aa4f971a6d95795835270bd8519dfd.js.gz +0 -0
  330. data/test/dummy/public/assets/actiontext-0e17dea0bbcecdc975d4166ad0414e9b0b08f89797093fd2402ca7a4b53f2841.js +862 -0
  331. data/test/dummy/public/assets/actiontext-0e17dea0bbcecdc975d4166ad0414e9b0b08f89797093fd2402ca7a4b53f2841.js.gz +0 -0
  332. data/test/dummy/public/assets/actiontext.esm-492b22a807659dd6cf22068522daaf906111f90474591bd48c75d515dd40fbca.js +889 -0
  333. data/test/dummy/public/assets/actiontext.esm-492b22a807659dd6cf22068522daaf906111f90474591bd48c75d515dd40fbca.js.gz +0 -0
  334. data/test/dummy/public/assets/activestorage-210320b03bffc155ca1782c116437391c929c7c5b5c66ee4f4c7a826733070a1.js +829 -0
  335. data/test/dummy/public/assets/activestorage-210320b03bffc155ca1782c116437391c929c7c5b5c66ee4f4c7a826733070a1.js.gz +0 -0
  336. data/test/dummy/public/assets/activestorage.esm-1e3c46a0710fa7f44a7ced2fc61af4416147823859c9e65b69cd8a91811e678e.js +848 -0
  337. data/test/dummy/public/assets/activestorage.esm-1e3c46a0710fa7f44a7ced2fc61af4416147823859c9e65b69cd8a91811e678e.js.gz +0 -0
  338. data/test/dummy/public/assets/application-27610091f46e727a1f66f9cb19723cc85f0650e9104ebef84934c9e9cc9b5eb0.js +13 -0
  339. data/test/dummy/public/assets/application-27610091f46e727a1f66f9cb19723cc85f0650e9104ebef84934c9e9cc9b5eb0.js.gz +0 -0
  340. data/test/dummy/public/assets/application-7a3cc97ca9d54797b7539995a8adf1b1507ff004a9c346c3a57dc2f535ded9fa.css +25 -0
  341. data/test/dummy/public/assets/application-7a3cc97ca9d54797b7539995a8adf1b1507ff004a9c346c3a57dc2f535ded9fa.css.gz +0 -0
  342. data/test/dummy/public/assets/bootstrap-theme.min-2e8e504a9108378d9b6ab445494a9cb63b6556a8af3eddcb213fd55a19f2d42e.css +5 -0
  343. data/test/dummy/public/assets/bootstrap-theme.min-2e8e504a9108378d9b6ab445494a9cb63b6556a8af3eddcb213fd55a19f2d42e.css.gz +0 -0
  344. data/test/dummy/public/assets/bootstrap.min-4553f769feb3bf9890fcd5181e36e1881e5986a3f056f60a70fc6dd79f627154.css +5 -0
  345. data/test/dummy/public/assets/bootstrap.min-4553f769feb3bf9890fcd5181e36e1881e5986a3f056f60a70fc6dd79f627154.css.gz +0 -0
  346. data/test/dummy/public/assets/manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js +1 -0
  347. data/test/dummy/public/assets/manifest-a72913f4c604bc8f97dd576fc8777bf029401f6af0e14b6a6c9d3874acfe73e4.js.gz +0 -0
  348. data/test/dummy/public/assets/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js +12099 -0
  349. data/test/dummy/public/assets/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js.gz +0 -0
  350. data/test/dummy/public/assets/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css +625 -0
  351. data/test/dummy/public/assets/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css.gz +0 -0
  352. data/test/dummy/public/assets/rails_db/data_table-533c88156410e539d49d50f6b8fed74635f3d5f3563bcef14298a06a5791f8a8.png +0 -0
  353. data/test/dummy/public/assets/rails_db/data_table_code-1d6698b5f637c9d33187f34aac431487bf4837d67b07d26d134e35995550f4c3.png +0 -0
  354. data/test/dummy/public/assets/rails_db/logo-72ddb38e7d2961f79f60a852fe496dbd533ffae37f9591ddf5c5ce3eb500b9c9.png +0 -0
  355. data/test/dummy/public/assets/rails_db/logo_mini-e46c13b71074493bb7845fa9e5838957fc7f4825088d7474700e8ecad3a12cb0.png +0 -0
  356. data/test/dummy/public/assets/rails_db/railsdb-07be04b4cfc1bed0aa143fa7df32aef47efff9715043cefd367a0869b4938bd1.png +0 -0
  357. data/test/dummy/public/assets/rails_db/runsql-980c6cc437f8e2d5f09f711793d67d55c7d9762d80b5e4bb4bd278d451288bb2.png +0 -0
  358. data/test/dummy/public/assets/trix-91ad87f30d9c53c7b05f534dc3c9994e4e90d50dff03a7222c1326f342f9c223.css +410 -0
  359. data/test/dummy/public/assets/trix-91ad87f30d9c53c7b05f534dc3c9994e4e90d50dff03a7222c1326f342f9c223.css.gz +0 -0
  360. data/test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js +12103 -0
  361. data/test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz +0 -0
  362. data/test/dummy/public/favicon.ico +0 -0
  363. data/test/dummy/test/fixtures/accounts.yml +20 -0
  364. data/test/dummy/test/fixtures/comments.yml +20 -0
  365. data/test/dummy/test/fixtures/contacts.yml +23 -0
  366. data/test/dummy/test/fixtures/legacy_accounts.yml +9 -0
  367. data/test/dummy/test/fixtures/projects.yml +7 -0
  368. data/test/dummy/test/fixtures/users.yml +28 -0
  369. data/test/dummy/test/models/account_test.rb +18 -0
  370. data/test/dummy/test/models/comment_test.rb +18 -0
  371. data/test/dummy/test/models/contact_test.rb +19 -0
  372. data/test/dummy/test/models/legacy_account_test.rb +7 -0
  373. data/test/dummy/test/models/project_test.rb +7 -0
  374. data/test/dummy/test/models/user_test.rb +22 -0
  375. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-E/-EwMf8QBexZyQACleN4w6I9fTtUgB_oqkoZm4qe_0as.cache +0 -0
  376. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-Y/-YjCQxlNCXpoKFBET6DjjQmALXDRfaTVX1PIXEL8wWU.cache +3 -0
  377. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-b/-bKZaXTIArprpImkkCY_924zE3Rt2hy4e5lGTH-TeV0.cache +1 -0
  378. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-q/-qt6PlJSyQrtv5m4CG4sylIdQBhQr_DxmMTBg8zaVnM.cache +1 -0
  379. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-s/-s-3XN56m_oUPRvEduEbT7bFHN-G6DaoDyzVL8Fyfwo.cache +1 -0
  380. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-w/-wUtICdwm7Sxy0abJdhCiAcVzUHv8RpoLoBKUxkL5Ps.cache +0 -0
  381. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/02/02fPk-hCDz7VzqUc970-QbNSs73SpLPOxTLgJUINdno.cache +0 -0
  382. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0d/0dg8TgpJW6tKjl6R1gSKs3ianNkpXSFAkWrVTWK6H9M.cache +1 -0
  383. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0j/0j26g7hZS0RnuG6TfjLWA_9pvot1Q3ZsPNoJc17AfNk.cache +0 -0
  384. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0q/0qiHQ5R1FtSJsmZWXWz3_mBhVOe9TdjFTOHNawnO2AY.cache +0 -0
  385. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1C/1Cmh2CmvJHFpLTNVaSh2oJNT5OskJ-wbXHVCefX9LXA.cache +0 -0
  386. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2-/2-_wwCgqYT7MWmvvHsz4_BO679Ra-Mg3BRv_i8WrPpY.cache +1 -0
  387. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2s/2slGMSh5EkP9gKdDjsBHyUdlFMQ6RgXU3Q31OUa1bc4.cache +3 -0
  388. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/38/38Mu5aCD_pVpS_A0scEbrURCcSGWRfgJFahqHb_S5_A.cache +2 -0
  389. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3E/3EBFUHNqwIMTVUyoGlzVdPqc5DkNSQjXk1Cdsvmmu-c.cache +0 -0
  390. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3N/3NeGRGkNLukiScwanyZnK77vM9w965cYhhRQBFYn7to.cache +0 -0
  391. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/48/48R_GGcizCD7TkuuW8o1O71nxQrhy5cd61JmXYp9WyI.cache +2 -0
  392. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4r/4rAZUndELhJSlMXyPybibNcgQqD7wwbmw2o5uCbRW6o.cache +1 -0
  393. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4y/4yvvE06UXXKIb6xfuOFPCWMMUJ1_Vk1tOYn45Lx7BUY.cache +2 -0
  394. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/56/56DswPYh0jJRFidGliOu8DD_G8aKMYTqSx2mfW7Wxlc.cache +0 -0
  395. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  396. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5Q/5QHK94rgGPiyd5p5hwHmGQDwzOCk6x3GZEs2zFQLqfU.cache +0 -0
  397. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6P/6PbFf-tdhCS6A-vMQ-1gKRiSR6Cy5yiSagqTu7IJM3U.cache +0 -0
  398. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6g/6gzKlvKDdV4_gA18h0s3dxcbh-jm_y5FapnLhQfTBY4.cache +1 -0
  399. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6i/6iwKBW6XPc-gCorpDtlMPoWfBLy7gdnUBO2E038zxBU.cache +0 -0
  400. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/70/70jkthevVlghC75QtnamlyY4d4oAVFTxcj-4s5yDEQA.cache +3 -0
  401. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/73/73oeJZNX4kTyTqN4KEr7qpX3Fr05Md6RP-CP-ECgeZM.cache +1 -0
  402. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7N/7NjYnRttviwvcnrIAqTyZx5U7p583xK4aZKSNfQ451w.cache +1 -0
  403. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7Q/7QEUsGSibN-QVO8VIQjxol_ThGPQ8pKCpoBVfWDxY58.cache +2 -0
  404. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7S/7Srk08JQIXIO9lIFacvKbddD4pyvOCztAflbvVHeLcQ.cache +1 -0
  405. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8D/8D4sESqBs6oJYy_1dVQsSKzeGvAd1rlIJ2DQ2aUQdrA.cache +1 -0
  406. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8D/8d7-IcRPlm5HI--NR6AtTxPxyNzdf5nC08_BR5enopA.cache +3 -0
  407. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8_/8_nedW_pAPM6i-oiyq9NFB1XZzONqByeBW1gW_LPjmk.cache +1 -0
  408. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8f/8fbvMlco3IZ_NntlntnrZbx_NiRbuNcIJHaHQpoB9nM.cache +1 -0
  409. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8h/8hEDs45k_CtHhaA41hAdvHVxdKwfZmUnUB6jeZQpeMI.cache +0 -0
  410. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8o/8owbOeF950uskIEmeetz6kxgtPVlTPnRjgJY4bjMHLA.cache +1 -0
  411. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/94/94hjaY7Cg090ESrCKYa65ZZR9YJaWV0waLQXEqQNI1M.cache +1 -0
  412. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9F/9F2jDXCpcicVmQ6wbAqruXYKJJRNMHKmk1VjVdOUO3k.cache +1 -0
  413. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9p/9pQzq-INF_DUWcgIZvp-XqXV_HEhjnZq56Dv9-P97u0.cache +0 -0
  414. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AJ/AJjT-YSv8aley9B5ah5U5eQZKR64QrH5LLPwPaKkg4s.cache +1 -0
  415. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AO/AOQxu-b8Oj4x11SeJHXN4TxMlUZTPm2DprJhvN2Afrg.cache +0 -0
  416. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AW/AWHcDICni9Kaqp80MhPc5ay4VeovNTfOZcGH1wx17KU.cache +0 -0
  417. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Aa/AaQH7trLYFQ636FtyboT3O47RPxGV__aohsgAD7eHkE.cache +1 -0
  418. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/BC/BCT3raYn5NszVsfOAyff2MDlqGkdeqtz5n3WOL2HYTw.cache +1 -0
  419. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bg/Bgo1jZWO9wpF5DgviCwF55q7xZruW3K4uh_Qtl71Jk4.cache +0 -0
  420. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/CK/CKcxWJZQnL7O24Y9AYJhKp5e08S3GZMt4Ry8m3f9LzA.cache +0 -0
  421. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Cb/CbnY3w085Br5OLaJX_bpGqKgLka2S_hQY17edujQl8Y.cache +0 -0
  422. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/DD/DDuxEe56LvgFJInk6vLAfD60zKE3V8dUN64aaLU9aII.cache +1 -0
  423. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dc/DccFJu7sq4aVcnWR7Z4IR480DYmJl-NmI15I9PmlgKs.cache +2 -0
  424. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Do/DoKnkQwA56dMKoTW5ICFX6sgWCb6UT1vudIQtQKWObM.cache +0 -0
  425. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dq/Dql6jPVeZX-NZ-QBm5IVCeu5qZOprQkf6G7IGpK5Wsw.cache +1 -0
  426. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/EM/EMqa47DUTqGqNQswwqNX2alahDsBGpBfckFmBwzWmzI.cache +0 -0
  427. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ec/Ecr2kTtyMhTncFiMKjHFUEW0wT6h_QE-U2k65pT3PeI.cache +1 -0
  428. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/F0/F0XfMBXAJ3-GVqqv3eOwXkLLNn1G3xKO1hZkZZewiOk.cache +3 -0
  429. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Fd/FdWsQMaZHtDlKd2hkgrjbhXO9lK9_HMoQHQNkIBKgEI.cache +0 -0
  430. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Fl/Fl8GTOzn0mSb4HfILAEzrm6MW78_ZqFRUciojIwhiSo.cache +0 -0
  431. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/G0/G0kQ2CBCNHbD7V_iK4ryFdHntcx1CcxrKR1ZWFhmQsc.cache +1 -0
  432. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GA/GAV83o-jEATKgODRfcyxjQvr4eScsHoywRGA7ZRwxi0.cache +3 -0
  433. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GJ/GJ1CgNKobMQAkHtSmtB7r5bYNUXypkNahNkm1cJLj18.cache +0 -0
  434. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GO/GOo5-u5cb8zXNq2EBB8FIfInFttIOTjS7XfHZ7ccf38.cache +0 -0
  435. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Gw/GwWXyCbAH5hUDLtGkBFf-MD6sRhNhu_jXc8NLLz6x6U.cache +1 -0
  436. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/HF/HFPjhBiwwRAcNn5eYMrjB1ogtre4PUjHeXrOsLDc4_w.cache +1 -0
  437. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/HL/HLF_tM7no1uiJUMDhPX2A8XZu9fknG1erLg-I7rEnns.cache +0 -0
  438. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hd/HdGVJoIpbb4xfVgc4pb0hcrLoVuKOJSf3rrXKBn5n3Y.cache +2 -0
  439. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hp/HpuwScbU_M2C2dLscAzVvbAHc38p2BzDsmGn55RT4Lk.cache +0 -0
  440. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hq/HqZNQLwJfvQDZJSXOa_oo8aYEjf2s2D1q-4m812JKwI.cache +1 -0
  441. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IS/ISQ34UZDZ7nJm0_RYspTzoPVnyTaUc99Lfkpp25AWiE.cache +1 -0
  442. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/J6/J6dtO6PVm7NZlBwhRo8JlcZHf0371T2mW6hxGlkuDRQ.cache +3 -0
  443. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JM/JMsa1NZXuPz_JOp6bFO5hscxnZ12yN9oXQl59xRqC9E.cache +0 -0
  444. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JP/JP2dMhBgE9rio1GmTQ2-UL6987BnZMuwsjg1N4_Ncyw.cache +3 -0
  445. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/KM/KMt-g8nnaucy8q44MxHl6UN9kQQBCL7pFpKvJ3RJbf0.cache +1 -0
  446. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/LJ/LJqiypDXrIuAmLdoGG-2srrzlIzPuPF4hPjyviMcdVQ.cache +1 -0
  447. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ll/Ll4ju1a-de7XEt8YwrNptLQ8XXkr4ZVI_iGihuCT9bA.cache +1 -0
  448. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/M8/M8dFoYMfi-uKrracGynMkC_rEyyRJmimM2UaZIMzyq4.cache +0 -0
  449. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MU/MUpf4dX4WTGh8rcS0xt_pWUzL_wxeLOtqiXDOuNn8vA.cache +0 -0
  450. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/MV/MV79nCCfUGLP9sTl77X0FXbKLRYFr_BplfQzv1DPq7M.cache +0 -0
  451. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ml/MljRvmRxBrEnmBW8-tdTinPJT0X09e7IjlpK8PFCWDg.cache +0 -0
  452. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NG/NGC65-kz1FpNmjiUIIdGgfZOUgET1cjVDwEgUUWUIBk.cache +0 -0
  453. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/No/No1BqoRAsP4rpFQGt2X0oqG7dx24mQKmIYGGqJJxv00.cache +1 -0
  454. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/O7/O7urNjsY9ir4tcQhQWE4NHMd9G2Uo9WhSppyfGknTjo.cache +3 -0
  455. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/O9/O90ZU3WTQVPBvFM8RI6QfZ6QQw46vH_uydoZjfdfDhI.cache +1 -0
  456. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  457. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OR/ORBkQhKjsT7Ff5WJqNXCeaW1d0tWdBGI6iVd_eQVcIQ.cache +1 -0
  458. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ob/ObGbSPKbNVda97nhrSokuLC8ea_LBiRu_67g5mpYkvA.cache +3 -0
  459. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ob/Obl50MKdVzBW6O6IsLQ33Dqr1mvhkB66ttlgOTBDm0Y.cache +1 -0
  460. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Oj/Ojz7byUap26Q2ikDzCa_mgbwDu_MGb4Jr8E_QgGdXP8.cache +0 -0
  461. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Q8/Q8-MHAIQqi6hWmAnC9floiGC2JKw1b5k_mTFNXFeaqI.cache +1 -0
  462. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QG/QGOS6WGPshOAS6y2R_gU76fa3LbWrarVKr9T35ly7r4.cache +3 -0
  463. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QI/QI7GR4DrdXWoJ14KR8bMLyU-H1R28Ht2WoMKhGdh-Tc.cache +0 -0
  464. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QP/QP48c68ahRHEJAz8oT5ELYhEhljK270zuUo1n9Gfkq8.cache +1 -0
  465. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QP/QpQT0zwFzgPQvJbCs7mtLBaeKfNYaEIZbkJ8Lv_wzRo.cache +3 -0
  466. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ql/Ql6j2OSbjy_tFumXfKLgsIK1xowUGVDCFS5u1H1Thic.cache +0 -0
  467. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/RG/RGC98gvNOrNMvcxlj3cB6k6DGAWszPsqcldlpvk8tfg.cache +1 -0
  468. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/RX/RXlS7UXx0WcNP6NPKhyIwMgqGYg-FYcmJy2oaRWohfM.cache +0 -0
  469. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rr/RroKehcf1zQ_b1ju1ODNF385QtHr9f53VsPNkPBVUCU.cache +3 -0
  470. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/S4/S45UeWlWSUlBRQFgXeIWJYEsf0oGAUKrKcWE7b8NlBE.cache +1 -0
  471. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/S7/S7N2ehEo6L5jV6fbk7CtlA-UUtZqtEVmUwqTbObuGh4.cache +0 -0
  472. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Sh/Sh4Hc8A3-N9Wu-YKYcuGFVlFHBCyfFeRNwbpo2ABHMI.cache +1 -0
  473. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Sl/SlgkdUnHGZf5GCN5AtcT01Vz2Px_fY0ZfIDZk3YP3iQ.cache +0 -0
  474. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T6/T6JT1PaDrdDpWvsvR5ANEVvIAjbnMdJCqdcnJN3DBTI.cache +4 -0
  475. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Tc/TcoHlj_N3DvuCHYcgHTCxtvbUwAvDUB9xcQwKo__GGc.cache +1 -0
  476. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Tf/Tf6GhxkaIb-PIxKSHHdH3I482Z1tR_7yqFICK3OJ-Uw.cache +0 -0
  477. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/U5/U5Maal3d6rH9qWJzy0w82FhoKNnl3FYnSR94Isd9KZ8.cache +1 -0
  478. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/UH/UHjX_Tdpb_nLqOgmoOKVOHAPvQtTQhZ_0Eq2-bWHvgM.cache +0 -0
  479. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/U_/U_Vf5xOAgAtKqXG3cA_fLU_gmakleLqPAKLSfdFkGd8.cache +1 -0
  480. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ux/UxRQtR2v6vbizg3WrK49E9Z9LWRWwYxv_6qYdeN1o8E.cache +3 -0
  481. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VI/VIGEm0ROyWfRHKWrn4v8zuL2eb_YE-cZ_u6c8wHEnh0.cache +1 -0
  482. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VI/ViKPKDmDp0uHGA83HnSaMFrr5j0LLUDHeK5z0gn32uE.cache +1 -0
  483. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VI/vilsZArBDkSdy4HWHb7kQyRq91qH9q1fkZ4D0oDMbe0.cache +1 -0
  484. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VW/VWekwulwsrEi-1wAlBd3a4GqaQQ2xAPn3r3XKORwC6E.cache +3 -0
  485. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Vz/VzudQlHlPU-QkXKAlorrnrN96YYB9v8qPbz8TpHIDYk.cache +3 -0
  486. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WC/WCEfBvmWhMyKTUV5C-YoJHFgRK9oFaBVKvLvQN_aTwU.cache +3 -0
  487. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WC/Wc9Car1m9v9eJKzqjZPaDc_XfEHBk19No0creeNf4Oo.cache +1 -0
  488. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WD/WDTBPjkVv_iaCKGhjekKxq3H20rqRGqoNxKKYd3tdfY.cache +1 -0
  489. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ws/WsZJrfE4CeoPCu3uPxJZrMm9dV_hnGhV2410BUOolEU.cache +3 -0
  490. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Y1/Y1BOdZ0Mv2aBPtZSNPnpWjcQbBpjZzQ3TLRtsl3DfCs.cache +1 -0
  491. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Y9/Y9LJESKEvdaLdsV0X-ielj3b7bCBzmVa6kjQaO1ND-U.cache +3 -0
  492. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YD/YDeKrqLuz9NJuSiPC8R2tFQyXupJ_BIOUK4R-zTLa14.cache +2 -0
  493. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YI/YIktqYMkp9rFo_arkdIKgWEJuqGB2Pl2tI09q9fPsYc.cache +1 -0
  494. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Yy/YyO3SlF8J51EnmHeQCzOOpPnRCUQby6oXqkfLu8UWQc.cache +1 -0
  495. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Z1/Z1mM4CC3-PHcLIXbFwjwAKe4rRx32HbxuES2jtociM4.cache +1 -0
  496. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ZX/ZXWw4toveCIT6C1Lgx_ltp5QcpYZOA90V0vZzkE6_Fg.cache +1 -0
  497. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_O/_OEhzpSmoFXUxBwnn2lxxQva5xZCLsRwqr6rGO5a6xk.cache +3 -0
  498. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_V/_VDUx47A0ckay-tDhwcHjbJ1ccyVK66QOGzqubybyac.cache +2 -0
  499. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/af/afpeMM21IzJE0dFJyjWqvNPDdo-z-pnGSOH5TpUdS8E.cache +0 -0
  500. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/aq/aqmdokp528ltFwfoHyMNCWbZSDkRRYI3NqkArj0e1Uw.cache +0 -0
  501. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/at/at0wGc5-nsFGCc-Ohb_tOYwEeu5Q385-Tow7aeKUCt0.cache +3 -0
  502. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bD/bD7lCBXJa5UFBLOD1_n3jebp-yJzOtlK9rdRkoXfcS4.cache +0 -0
  503. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bZ/bZWAlHFH1VCrcNNad-Kmirboj-OTM_e6KGv47lfNFog.cache +2 -0
  504. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bk/bk4oRETBpYBtnyOpiY2bsIlfiKLPAVay5FlEDXpGxKk.cache +2 -0
  505. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/c2/c2E2s-1YlcsRQETRrr9270xS8soq9bFhPhQHAv0ZylY.cache +3 -0
  506. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/cR/cRCuK2PPNYA8DtcB4Jw69HLFSjDIVEHLe_HWUFc-wEE.cache +0 -0
  507. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/d5/d5WV17YJJJdIYEC4MOVzrfdTTgTQsbaIa_do-G0PvjQ.cache +1 -0
  508. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/d8/d8XAwiw8oSoIb8wj0b51_zj21fjPKk6o76WYHtMCME4.cache +3 -0
  509. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dE/dEjlIATOhhzngeajva7GrHLdMekaCMw8yKaALDzH3BY.cache +0 -0
  510. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dH/dHzHjjKG0n2420xmBv6jgKUhKUKXq2mfz69gf0DBljk.cache +1 -0
  511. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dK/dKQoqWBzBo6FEZkGSZUzM-i4v8o3Cw2jFfbQTm_Is1o.cache +0 -0
  512. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dV/dVlb9DFfCfh76eWC1NZlcgXHA7HF6DbtCs5EXEmpMcY.cache +0 -0
  513. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dXPk8pNtJWxiJ3RNQTwP7NQWvm6Rg545vLUA9hQnl4g.cache +0 -0
  514. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dXQbW_EXQBT0R5u0dQMQfZI9fzVJdvxrTRr973HcURk.cache +0 -0
  515. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dZ/dZ6c48KE_gdfk1cY74orMXeYDrdeVv8gYVVP-dcqjsg.cache +1 -0
  516. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/df/dfJwH767bcOq8UOx8rVTuo1H77D12YWuVCz7TtC-nCY.cache +3 -0
  517. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dn/dnAmMUaua3uSdqSHZCmrqfOrRxgqzFOOij-Da5YGL2Q.cache +0 -0
  518. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eB/eBPd0qSSI4e5ikNe8JfjYCH6i9lYNFpZrbpDbpw41MY.cache +0 -0
  519. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eL/eL0hyLlsOeRsTHuuNdijB5vaOb58Ct15ov1GUI6fOMc.cache +1 -0
  520. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eQ/eQsvk-LzDbSnNzwgtmVI7zqmaZ1sAWai7_5GvmZpAMs.cache +1 -0
  521. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eh/ehEnSBWWl-1SyQmkhZRW_K7j8UNHDTWFq-lfD3-kfS8.cache +1 -0
  522. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ej/ejtg0ig4ToEAmuFVOXvfZoMJeLQ-y0i1nN-WrliIULE.cache +3 -0
  523. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/f5/f530lwbwoYHyh796VEIuwUasSITW8aK0iF8J9avycg8.cache +1 -0
  524. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fQ/FqqqhfRUpQ_Mcqs7ojLiHM7Nry-zM-iW225_IrgbZ3A.cache +0 -0
  525. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/fQ/fQwrSRFIVgtplxrg6yY64rq6aztgn0EPWLbXiLIugvk.cache +1 -0
  526. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/h-/h-m8exC3sN0PMD1bxpNhwpblzDuyJXEDH2Q8aIf0T9E.cache +1 -0
  527. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hO/hODEjPm6g5GtcKMgEAG9w3MBcpMnUrjmicenMkKS6Y0.cache +2 -0
  528. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hZ/HzNUNYu5HFz_McU_pcJyBQQYuwfi9amZCMv9Aygxa3I.cache +3 -0
  529. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  530. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hZ/hZnG9KmwOD7eG91Du2rOQNznfWoBtZcstcy-llqE8tE.cache +1 -0
  531. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/i9/i9PBFJGapKQIH8MVvMEsUzq8Ai1fvSmQZtHYIStB8tA.cache +1 -0
  532. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/iB/iBBNshBzqq1a-k7_iZwq8EMnxL5hpWAVi-Yx0tyc1YQ.cache +0 -0
  533. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/iW/iWMb0GcBipSlS-nvo1NmGAnuMBpnhiDko-4scBnm5nA.cache +3 -0
  534. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/id/id3kHasaRHo2fgl971XNGXJA5ZADLQ8MO-OAPgjW8JM.cache +1 -0
  535. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/il/ilMRZGbdWSt9hwiN0NlLhJZQRW4MAjBDdWftoN19xvw.cache +0 -0
  536. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/j7/j7LdmGu_7qrO6BTs9Gs67i1NsiUZVHE6_cHs1_9gFJs.cache +3 -0
  537. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jN/jN8u8D3YV4tV0E3Mt7JQ6qQKpwbL9Cjf6tO_V9ADm1g.cache +1 -0
  538. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jq/jqeWvY_Ipr2okpJACyPLmYPoSzkOGOBItUnb0UMnmqA.cache +1 -0
  539. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jv/jvIj7UnViRFSFlC0uuK3Y5G_xpHUg2BbGaLudn9qA_4.cache +3 -0
  540. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jv/jvVuoJItmOvonD5TiL2ITSuFiZFTCa9vtR6hlU7ycA4.cache +0 -0
  541. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kH/kH_ttvYFXZXNN8m30qkWhpXCFVjxm0zabvEdyxZxSFc.cache +3 -0
  542. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ka/kar_P3-EiMg6uMhn2A9FsHMTNQvxKTMBU1d10AyR4k0.cache +1 -0
  543. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kn/kn_3u3OwKX8NgIn8EyvNiC-GY8JedRYRZoUa8Nd_K50.cache +0 -0
  544. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lV/lVnGp3NnXC6gfRr3CydXRlJi7vaKlxl6vv-iE4bsQzM.cache +1 -0
  545. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ld/ld5xd4qdiKPgpQ-VB1bD32z7s3AEPm2GWm0EqOT01-M.cache +2 -0
  546. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lp/lp0qxtY9HFwMKl3YWwJrHBcmm-r3vwgSnUudzvEDjBo.cache +1 -0
  547. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m1Jc1MTyGRzTr8iqMoKmBnCr2pHu-7NG3SwXwhK8uyU.cache +1 -0
  548. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mE/mE041BJCHfnA84yHGz7Ug7GVUob_GQgnYidgsYdjW-4.cache +1 -0
  549. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mE/meH3Jgyw5O4Gcd_scjG3xFfz42TOadqfqWfH57-Qe80.cache +2 -0
  550. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mq/mqYmqiHe9_SB4qkNBMNVBWi8oO5G3y-g9sxjLGLRSDk.cache +3 -0
  551. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mw/mwTtMljkcY0lm1cd3jPweJW24hytvXWOnWk-GX7oOXs.cache +0 -0
  552. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oT/oTWzXQ1Awip8O9Hvs6quhgi5ULy-RJTrlTVivMIQ7T8.cache +0 -0
  553. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ok/okSsHxLWXR9t4edb22cKkfupX8YHb2IYI-KLRLb3438.cache +3 -0
  554. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ol/olx2LBvUMRdVtnZu02-c0FAADnSLD7tXJwC8xn2oua4.cache +1 -0
  555. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oq/oqGagxWoubctI5EJxJlV02xciePwy-X5hZoBMilR4OQ.cache +1 -0
  556. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  557. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pI/pIVqc5tXAaLDSQbx4dvcFawX1iRPdcw_JTjDIE6Y0eM.cache +2 -0
  558. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pg/pgqF_4OtKVcAkS7aelJJY8uwP6YNQdAJSCZ6QsVtu34.cache +1 -0
  559. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pk/pkP_V6x97TRxH_9WebAL40UKXFiGDEJoc_Aicxu23_A.cache +1 -0
  560. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pk/pkQwku-4WUAkTQu8Eg8mA-zUNaJs8CJQCYzVNiNN3H4.cache +3 -0
  561. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pp/pprY8iXfTEOq7oTab9CW5q6jBd6s49Km-bHrHAQvx6s.cache +1 -0
  562. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q4/q4bl8Qu9FbwgYAHgfMDla-XloLafeHLBJLPFS8leHRc.cache +3 -0
  563. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q_/q_EE1mMfPdoa9GOv13XiSyi4sRrsR_lxEDCt-gU7a6A.cache +2 -0
  564. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/qu/qudoGz6mtosgsGP4EXo19SkVmyEMqFTVAS8TLQrGTyg.cache +2 -0
  565. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/r6/r6fMa51xsG1AODRp545BYSMKfV-nWRUiX_d8DAWjFn4.cache +2 -0
  566. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/r8/r8rP6_8Gl_1ad7ZYDhf0p4FwwyUku0Km9orwXaLVwC0.cache +0 -0
  567. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rA/rADmljZHXhCBQSjVD4drgO5M7ZZLhLhfGMXo1q2G7_0.cache +1 -0
  568. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rH/rHcvFQ8Mml7nPP13sfyNdCgrJGnI_kxLzsdTugyWNRQ.cache +0 -0
  569. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rJ/rJ-R8VCPYL6EuHfeLmAcxX9h0BOlxgZP3yXK1Lmwm8E.cache +1 -0
  570. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rN/rNjmEbBCVv5zwOuENwvgnh6A9QrJVLOQB4Bsdev2DbY.cache +1 -0
  571. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rt/rt4szJ1zWFs3q6zqBodQGPVUFdd8uM1GwwcI6TsvB18.cache +1 -0
  572. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sV/sVIaeUsY08Afb8mHxShwvL7qTtpVLJtYQmlRaX6Qfxw.cache +0 -0
  573. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sY/sYqD_6_DLhWbWmBm4ZOKDNI8bKtF7czThI6GXwmFlMU.cache +3 -0
  574. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/si/siON7wGh_0eWSXEAAcGXwmegPJa9MHN2TD8eZOb8B6Q.cache +0 -0
  575. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/so/sOGQVaHVT2GblUNl67QpzsBKwJRQSasF5JMKVVd39-8.cache +0 -0
  576. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/so/sogLbAycdgAhmUx7gZKYFvt3_l-LUiIuyTkeazdwF2c.cache +1 -0
  577. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sz/sz7tG5qvKyjnX5-C7OqxtV_ULT-Zc_W773TWtu8xB14.cache +1 -0
  578. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/sz/szuD3-IfrUKnZA6Gt1I4JryX8t5FR-hiANQ5xEk-SDM.cache +1 -0
  579. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/tq/tqiP_10iJJEHGlipdIq-fpJ6la7ScTw7JTzmITlzyqc.cache +1 -0
  580. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ts/ts3eIhDSFD5BREiUUr7gz5svODJs4B1t5KhM6KLZBFs.cache +1 -0
  581. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/u4/u4Q8Wetb_XdexzFb4UdDJdWQNn1CuFBZamuvgdxxvBE.cache +1 -0
  582. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ue/ueiNy0SbT7Jr7RqbyjRvbcWWgfxwvkLqasMyJ3DyldQ.cache +1 -0
  583. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uj/uj7pbPYa8onw_3uupZQs2iQaxadVV3ILaOKjMKMASvw.cache +1 -0
  584. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/um/umIDxTFO0YhmuNysQsfifj2zzCSYLj8aIeNAY4_PdLI.cache +3 -0
  585. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vM/vMxmuuirX_1_kp0vFOrkJEMkeggaG0Ve423BLSbFebE.cache +1 -0
  586. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vM/vmPS787Zgaa-XUq1HUbZzA_BuW10TY88QahdMc8o_S8.cache +0 -0
  587. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vY/vYjrE7OWyQMb8odwrBB42EBhpL3Qlh7WdoJQNfMMZhA.cache +3 -0
  588. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/w3/w3S0nImwT2V3XSKxTuSJj-Qs8kP71Vd-lTg0cAeCh-0.cache +1 -0
  589. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wY/wYTALnRjQeGXyLHqKsOzjo15fKQsds6CKGpto2TrwX8.cache +2 -0
  590. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wY/wYfKXouWZ3FboLsoenuf3c7ruZ3mUbatDPHwKCXYdT4.cache +1 -0
  591. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wn/wnjZOmBHWuEmDCSu73i5bBP_2C0hFy6wcD42MiM9DIw.cache +0 -0
  592. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wr/wrPPrbuOW8zH4b8JbtcOS5Cz1pazvwxhswatnUErYXQ.cache +3 -0
  593. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/x2/x2SWSueTKq-OED84GQ1cW-nj_Bnv6_M2bsONxiSbs_c.cache +1 -0
  594. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xa/xa7T8x1H5g_6Zh5z5zxIF5ZRfSX8HAYXrbocKi2CRwM.cache +1 -0
  595. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xi/xiQ6Bqbgih95UEVBBs5jOavU6bz8cspSPPHftYUoFsw.cache +0 -0
  596. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/y2/y2KbsFzUQjxHPvYS7g126MB5yxyEtPOx3sO0nPuzb8I.cache +1 -0
  597. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yV/yVTd-20RYkHSNFx2-6jCH6rJp7brF_8K-OCVdkuCg4g.cache +2 -0
  598. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yl/yl8ZVh_W1InBwkX8MUkbt0oESx1jl2rUkN7thMJdGgY.cache +0 -0
  599. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yl/ylL9bN4zmoJoNbM_Jf2lTKGfgpiVe3lxew4RocrqjH8.cache +3 -0
  600. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zF/zF0etze86_aBKidFAUF4hqI3ryfGRHr93d0fQn2T0-4.cache +0 -0
  601. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zH/zHN3mbWCwTsBoHzviRhzimqB0ZdpCekkBGlVUNeu3mY.cache +1 -0
  602. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zM/zMnzAQwryyQZ5_V4DVBKq_DleHn9rMeaAgK6Oa9rSUk.cache +0 -0
  603. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zi/ziJjbmDosUjmKWIXc83zDmLhZvvBuD9ElR4OApNfGrs.cache +1 -0
  604. data/test/rails_db_helpers_test.rb +35 -0
  605. data/test/rails_db_test.rb +13 -0
  606. data/test/sql_import_test.rb +16 -0
  607. data/test/sql_query_test.rb +28 -0
  608. data/test/standalone/Gemfile +12 -0
  609. data/test/standalone/Gemfile.lock +137 -0
  610. data/test/standalone/README.rdoc +28 -0
  611. data/test/standalone/Rakefile +6 -0
  612. data/test/standalone/app/assets/config/manifest.js +2 -0
  613. data/test/standalone/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  614. data/test/standalone/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  615. data/test/standalone/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  616. data/test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  617. data/test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  618. data/test/standalone/app/assets/javascripts/application.js +13 -0
  619. data/test/standalone/app/assets/stylesheets/application.css +15 -0
  620. data/test/standalone/app/assets/stylesheets/bootstrap-theme.min.css +5 -0
  621. data/test/standalone/app/assets/stylesheets/bootstrap.min.css +5 -0
  622. data/test/standalone/app/controllers/application_controller.rb +10 -0
  623. data/test/standalone/app/controllers/home_controller.rb +7 -0
  624. data/test/standalone/app/helpers/application_helper.rb +2 -0
  625. data/test/standalone/app/views/home/index.html.erb +3 -0
  626. data/test/standalone/app/views/layouts/application.html.erb +16 -0
  627. data/test/standalone/bin/bundle +3 -0
  628. data/test/standalone/bin/rails +4 -0
  629. data/test/standalone/bin/rake +4 -0
  630. data/test/standalone/bin/setup +29 -0
  631. data/test/standalone/config/application.rb +50 -0
  632. data/test/standalone/config/boot.rb +7 -0
  633. data/test/standalone/config/database.yml +0 -0
  634. data/test/standalone/config/environment.rb +5 -0
  635. data/test/standalone/config/environments/development.rb +53 -0
  636. data/test/standalone/config/environments/production.rb +90 -0
  637. data/test/standalone/config/environments/test.rb +54 -0
  638. data/test/standalone/config/initializers/assets.rb +11 -0
  639. data/test/standalone/config/initializers/backtrace_silencers.rb +7 -0
  640. data/test/standalone/config/initializers/cookies_serializer.rb +3 -0
  641. data/test/standalone/config/initializers/filter_parameter_logging.rb +4 -0
  642. data/test/standalone/config/initializers/inflections.rb +16 -0
  643. data/test/standalone/config/initializers/mime_types.rb +7 -0
  644. data/test/standalone/config/initializers/rails_db.rb +23 -0
  645. data/test/standalone/config/initializers/session_store.rb +3 -0
  646. data/test/standalone/config/initializers/wrap_parameters.rb +14 -0
  647. data/test/standalone/config/locales/en.yml +23 -0
  648. data/test/standalone/config/routes.rb +5 -0
  649. data/test/standalone/config/secrets.yml +22 -0
  650. data/test/standalone/config.ru +4 -0
  651. data/test/standalone/public/404.html +67 -0
  652. data/test/standalone/public/422.html +67 -0
  653. data/test/standalone/public/500.html +66 -0
  654. data/test/standalone/public/favicon.ico +0 -0
  655. data/test/table_test.rb +66 -0
  656. data/test/tables_helper_test.rb +35 -0
  657. data/test/test_helper.rb +19 -0
  658. data/test/test_sql_mysql.sql +13 -0
  659. data/test/test_sql_postgres.sql +14 -0
  660. data/test/test_sql_sqlite.sql +7 -0
  661. metadata +1350 -0
@@ -0,0 +1,168 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ # Wrappers are used by the form builder to generate a
4
+ # complete input. You can remove any component from the
5
+ # wrapper, change the order or even add your own to the
6
+ # stack. The options given below are used to wrap the
7
+ # whole input.
8
+ config.wrappers :default, class: :input,
9
+ hint_class: :field_with_hint, error_class: :field_with_errors do |b|
10
+ ## Extensions enabled by default
11
+ # Any of these extensions can be disabled for a
12
+ # given input by passing: `f.input EXTENSION_NAME => false`.
13
+ # You can make any of these extensions optional by
14
+ # renaming `b.use` to `b.optional`.
15
+
16
+ # Determines whether to use HTML5 (:email, :url, ...)
17
+ # and required attributes
18
+ b.use :html5
19
+
20
+ # Calculates placeholders automatically from I18n
21
+ # You can also pass a string as f.input placeholder: "Placeholder"
22
+ b.use :placeholder
23
+
24
+ ## Optional extensions
25
+ # They are disabled unless you pass `f.input EXTENSION_NAME => true`
26
+ # to the input. If so, they will retrieve the values from the model
27
+ # if any exists. If you want to enable any of those
28
+ # extensions by default, you can change `b.optional` to `b.use`.
29
+
30
+ # Calculates maxlength from length validations for string inputs
31
+ b.optional :maxlength
32
+
33
+ # Calculates pattern from format validations for string inputs
34
+ b.optional :pattern
35
+
36
+ # Calculates min and max from length validations for numeric inputs
37
+ b.optional :min_max
38
+
39
+ # Calculates readonly automatically from readonly attributes
40
+ b.optional :readonly
41
+
42
+ ## Inputs
43
+ b.use :label_input
44
+ b.use :hint, wrap_with: { tag: :span, class: :hint }
45
+ b.use :error, wrap_with: { tag: :span, class: :error }
46
+
47
+ ## full_messages_for
48
+ # If you want to display the full error message for the attribute, you can
49
+ # use the component :full_error, like:
50
+ #
51
+ # b.use :full_error, wrap_with: { tag: :span, class: :error }
52
+ end
53
+
54
+ # The default wrapper to be used by the FormBuilder.
55
+ config.default_wrapper = :default
56
+
57
+ # Define the way to render check boxes / radio buttons with labels.
58
+ # Defaults to :nested for bootstrap config.
59
+ # inline: input + label
60
+ # nested: label > input
61
+ config.boolean_style = :nested
62
+
63
+ # Default class for buttons
64
+ config.button_class = 'btn'
65
+
66
+ # Method used to tidy up errors. Specify any Rails Array method.
67
+ # :first lists the first message for each field.
68
+ # Use :to_sentence to list all errors for each field.
69
+ # config.error_method = :first
70
+
71
+ # Default tag used for error notification helper.
72
+ config.error_notification_tag = :div
73
+
74
+ # CSS class to add for error notification helper.
75
+ config.error_notification_class = 'error_notification'
76
+
77
+ # ID to add for error notification helper.
78
+ # config.error_notification_id = nil
79
+
80
+ # Series of attempts to detect a default label method for collection.
81
+ # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
82
+
83
+ # Series of attempts to detect a default value method for collection.
84
+ # config.collection_value_methods = [ :id, :to_s ]
85
+
86
+ # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
87
+ # config.collection_wrapper_tag = nil
88
+
89
+ # You can define the class to use on all collection wrappers. Defaulting to none.
90
+ # config.collection_wrapper_class = nil
91
+
92
+ # You can wrap each item in a collection of radio/check boxes with a tag,
93
+ # defaulting to :span.
94
+ # config.item_wrapper_tag = :span
95
+
96
+ # You can define a class to use in all item wrappers. Defaulting to none.
97
+ # config.item_wrapper_class = nil
98
+
99
+ # How the label text should be generated altogether with the required text.
100
+ # config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
101
+
102
+ # You can define the class to use on all labels. Default is nil.
103
+ # config.label_class = nil
104
+
105
+ # You can define the default class to be used on forms. Can be overriden
106
+ # with `html: { :class }`. Defaulting to none.
107
+ # config.default_form_class = nil
108
+
109
+ # You can define which elements should obtain additional classes
110
+ # config.generate_additional_classes_for = [:wrapper, :label, :input]
111
+
112
+ # Whether attributes are required by default (or not). Default is true.
113
+ # config.required_by_default = true
114
+
115
+ # Tell browsers whether to use the native HTML5 validations (novalidate form option).
116
+ # These validations are enabled in SimpleForm's internal config but disabled by default
117
+ # in this configuration, which is recommended due to some quirks from different browsers.
118
+ # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
119
+ # change this configuration to true.
120
+ config.browser_validations = false
121
+
122
+ # Collection of methods to detect if a file type was given.
123
+ # config.file_methods = [ :mounted_as, :file?, :public_filename ]
124
+
125
+ # Custom mappings for input types. This should be a hash containing a regexp
126
+ # to match as key, and the input type that will be used when the field name
127
+ # matches the regexp as value.
128
+ # config.input_mappings = { /count/ => :integer }
129
+
130
+ # Custom wrappers for input types. This should be a hash containing an input
131
+ # type as key and the wrapper that will be used for all inputs with specified type.
132
+ # config.wrapper_mappings = { string: :prepend }
133
+
134
+ # Namespaces where SimpleForm should look for custom input classes that
135
+ # override default inputs.
136
+ # config.custom_inputs_namespaces << "CustomInputs"
137
+
138
+ # Default priority for time_zone inputs.
139
+ # config.time_zone_priority = nil
140
+
141
+ # Default priority for country inputs.
142
+ # config.country_priority = nil
143
+
144
+ # When false, do not use translations for labels.
145
+ # config.translate_labels = true
146
+
147
+ # Automatically discover new inputs in Rails' autoload path.
148
+ # config.inputs_discovery = true
149
+
150
+ # Cache SimpleForm inputs discovery
151
+ # config.cache_discovery = !Rails.env.development?
152
+
153
+ # Default class for inputs
154
+ # config.input_class = nil
155
+
156
+ # Define the default class of the input wrapper of the boolean input.
157
+
158
+ if config.respond_to?(:boolean_label_class)
159
+ config.boolean_label_class = 'checkbox'
160
+ end
161
+
162
+ # Defines if the default input wrapper class should be included in radio
163
+ # collection wrappers.
164
+ # config.include_default_input_wrapper_class = true
165
+
166
+ # Defines which i18n scope will be used in Simple Form.
167
+ # config.i18n_scope = 'simple_form'
168
+ end
@@ -0,0 +1,15 @@
1
+ if defined?(WillPaginate)
2
+ module WillPaginate
3
+ module ActiveRecord
4
+ module RelationMethods
5
+ def per(value = nil) per_page(value); self end
6
+ def total_count() count end
7
+ def first_page?() self == first end
8
+ def last_page?() self == last end
9
+ end
10
+ end
11
+ module CollectionMethods
12
+ alias_method :num_pages, :total_pages
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,31 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+ # include_blanks:
27
+ # defaults:
28
+ # age: 'Rather not say'
29
+ # prompts:
30
+ # defaults:
31
+ # age: 'Select your age'
data/config/routes.rb ADDED
@@ -0,0 +1,32 @@
1
+ RailsDb::Engine.routes.draw do
2
+ root :to => 'dashboard#index'
3
+
4
+ resources :tables, :only => [:index, :show] do
5
+ get 'data'
6
+ get 'csv'
7
+ get 'truncate'
8
+ get 'destroy' # to handle opens in new window (GET)
9
+ get 'edit' # to handle opens in new window (GET)
10
+ put 'update' # to handle opens in new window (GET)
11
+ get 'xlsx'
12
+ get 'new'
13
+ post 'create'
14
+ end
15
+
16
+ get '/sql' => 'sql#index', as: :sql
17
+ get '/import' => 'sql#import', as: :sql_import
18
+
19
+ post '/execute' => 'sql#execute', as: :sql_execute
20
+ post '/sql-csv' => 'sql#csv', as: :sql_csv
21
+ post '/sql-xls' => 'sql#xls', as: :sql_xls
22
+ post '/import-start' => 'sql#import_start', as: :sql_start_import
23
+
24
+ get '/data-table' => 'dashboard#data_table', as: :data_table
25
+ get '/standalone' => 'dashboard#standalone', as: :standalone
26
+ end
27
+
28
+ if RailsDb.automatic_routes_mount
29
+ Rails.application.routes.draw do
30
+ mount_rails_db_routes
31
+ end
32
+ end
@@ -0,0 +1 @@
1
+ SimpleForm::FormBuilder.mappings[:inet] ||= SimpleForm::Inputs::StringInput
@@ -0,0 +1,10 @@
1
+ class String
2
+ def red; colorize(self, "\e[1m\e[31m"); end
3
+ def green; colorize(self, "\e[1m\e[32m"); end
4
+ def dark_green; colorize(self, "\e[32m"); end
5
+ def yellow; colorize(self, "\e[1m\e[33m"); end
6
+ def blue; colorize(self, "\e[1m\e[34m"); end
7
+ def dark_blue; colorize(self, "\e[34m"); end
8
+ def pur; colorize(self, "\e[1m\e[35m"); end
9
+ def colorize(text, color_code) "#{color_code}#{text}\e[0m" end
10
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generate configuration file.
3
+
4
+ Example:
5
+ rails generate rails_db initializer
6
+
7
+ This will create:
8
+ config/rails_db.rb
@@ -0,0 +1,6 @@
1
+ class RailsDbGenerator < Rails::Generators::NamedBase
2
+ source_root File.expand_path('../templates', __FILE__)
3
+ def copy_initializer
4
+ template 'rails_db.rb', 'config/initializers/rails_db.rb'
5
+ end
6
+ end
@@ -0,0 +1,30 @@
1
+ if Object.const_defined?('RailsDb')
2
+ RailsDb.setup do |config|
3
+ # # enabled or not
4
+ # config.enabled = Rails.env.development?
5
+
6
+ # # automatic engine routes mounting
7
+ # config.automatic_routes_mount = true
8
+
9
+ # set tables which you want to hide ONLY
10
+ # config.black_list_tables = ['users', 'accounts']
11
+
12
+ # set tables which you want to show ONLY
13
+ # config.white_list_tables = ['posts', 'comments']
14
+
15
+ # # Enable http basic authentication
16
+ # config.http_basic_authentication_enabled = false
17
+
18
+ # # Enable http basic authentication
19
+ # config.http_basic_authentication_user_name = 'rails_db'
20
+
21
+ # # Enable http basic authentication
22
+ # config.http_basic_authentication_password = 'password'
23
+
24
+ # # Enable verify access proc
25
+ # config.verify_access_proc = proc { |controller| true }
26
+
27
+ # # Sandbox mode (only read-only operations)
28
+ # config.sandbox = false
29
+ end
30
+ end
data/lib/libs.rb ADDED
@@ -0,0 +1,25 @@
1
+ require_relative 'rails_db/version'
2
+
3
+ require_relative 'rails_db/connection'
4
+ require_relative 'rails_db/database'
5
+ require_relative 'rails_db/blank_results'
6
+ require_relative 'rails_db/mysql_result'
7
+ require_relative 'rails_db/result'
8
+ require_relative 'rails_db/rails_db_error'
9
+ require_relative 'rails_db/history'
10
+ require_relative 'rails_db/helpers'
11
+
12
+ require_relative 'rails_db/sql_query_data'
13
+ require_relative 'rails_db/sql_explain'
14
+ require_relative 'rails_db/sql_import'
15
+ require_relative 'rails_db/sql_query'
16
+
17
+ require_relative 'rails_db/table_pagination'
18
+ require_relative 'rails_db/table'
19
+ require_relative 'rails_db/table_data'
20
+
21
+ require_relative 'rails_db/adapters/base_adapter'
22
+ require_relative 'rails_db/adapters/mysql'
23
+ require_relative 'rails_db/adapters/postgres'
24
+ require_relative 'rails_db/adapters/sqlite'
25
+
@@ -0,0 +1,7 @@
1
+ module ActionDispatch::Routing
2
+ class Mapper
3
+ def mount_rails_db_routes(options = {})
4
+ mount RailsDb::Engine => '/rails/db', :as => options[:as] || 'rails_db'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,94 @@
1
+ module RailsDb
2
+ module Adapters
3
+
4
+ class BaseAdapter
5
+ extend ::RailsDb::Connection
6
+
7
+ MULTI_STATEMENT_HELP_TEXT = "EXPERIMENTAL: You can import only file with SQL statements separated by ';'. Each new statement must start from new line."
8
+
9
+ def self.execute_with_sandbox_if_needed
10
+ if RailsDb.sandbox
11
+ ActiveRecord::Base.transaction do
12
+ yield
13
+ raise ActiveRecord::Rollback
14
+ end
15
+ else
16
+ yield
17
+ end
18
+ end
19
+
20
+ def self.execute(sql)
21
+ t0 = Time.now
22
+ execute_with_sandbox_if_needed do
23
+ connection.execute(sql)
24
+ end
25
+ Time.now - t0
26
+ end
27
+
28
+ def self.exec_query(sql)
29
+ t0 = Time.now
30
+ results = nil
31
+
32
+ execute_with_sandbox_if_needed do
33
+ results = connection.exec_query(sql)
34
+ end
35
+
36
+ execution_time = Time.now - t0
37
+ [results, execution_time]
38
+ end
39
+
40
+ def self.select(sql)
41
+ BaseAdapter.exec_query(sql)
42
+ end
43
+
44
+ def self.explain(sql)
45
+ BaseAdapter.exec_query(sql)
46
+ end
47
+
48
+ def self.adapter_name
49
+ 'base'
50
+ end
51
+
52
+ def self.mime
53
+ 'text/x-sql'
54
+ end
55
+
56
+ def self.truncate(table_name)
57
+ execute("TRUNCATE TABLE #{table_name};")
58
+ end
59
+
60
+ def self.delete(table_name, pk_name, pk_id)
61
+ case pk_id
62
+ when Integer then
63
+ execute("DELETE FROM #{table_name} WHERE #{pk_name} = #{pk_id};")
64
+ else
65
+ execute("DELETE FROM #{table_name} WHERE #{pk_name} = '#{pk_id}';")
66
+ end
67
+ end
68
+
69
+ def self.count(table_name)
70
+ select("SELECT COUNT(*) FROM #{table_name}")[0].rows.flatten.last.to_i
71
+ end
72
+
73
+ def self.primary_key(table_name)
74
+ connection.primary_key(table_name)
75
+ end
76
+
77
+ def self.indexes(table_name)
78
+ connection.indexes(table_name)
79
+ end
80
+
81
+ private
82
+
83
+ def self.multiple_execute(sql, divider = ";\n")
84
+ sql.split(divider).each do |statement|
85
+ execute_with_sandbox_if_needed do
86
+ connection.execute(statement)
87
+ end
88
+ end
89
+ end
90
+
91
+ end
92
+
93
+ end
94
+ end
@@ -0,0 +1,36 @@
1
+ module RailsDb
2
+ module Adapters
3
+
4
+ class Mysql < BaseAdapter
5
+
6
+ def self.execute(sql)
7
+ t0 = Time.now
8
+ multiple_execute(sql)
9
+ Time.now - t0
10
+ end
11
+
12
+ def self.exec_query(sql, log = true)
13
+ t0 = Time.now
14
+ results = nil
15
+
16
+ execute_with_sandbox_if_needed do
17
+ results = connection.execute(sql, 'SQL') # used from RoR mysql adapter source
18
+ end
19
+
20
+ result = MysqlResult.new(results)
21
+ execution_time = Time.now - t0
22
+ [result, execution_time]
23
+ end
24
+
25
+ def self.adapter_name
26
+ 'mysql'
27
+ end
28
+
29
+ def self.mime
30
+ 'text/x-mysql'
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,17 @@
1
+ module RailsDb
2
+ module Adapters
3
+
4
+ class Postgres < BaseAdapter
5
+
6
+ def self.adapter_name
7
+ 'postgres'
8
+ end
9
+
10
+ def self.mime
11
+ 'text/x-plsql'
12
+ end
13
+
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ module RailsDb
2
+ module Adapters
3
+
4
+ class Sqlite < BaseAdapter
5
+
6
+ def self.execute(sql)
7
+ t0 = Time.now
8
+ execute_with_sandbox_if_needed do
9
+ multiple_execute(sql)
10
+ end
11
+ Time.now - t0
12
+ end
13
+
14
+ def self.adapter_name
15
+ 'sqlite'
16
+ end
17
+
18
+ def self.truncate(table_name)
19
+ execute("DELETE FROM #{table_name};")
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,8 @@
1
+ module RailsDb
2
+ class BlankResults
3
+
4
+ def rows; [] end
5
+ def columns; [] end
6
+
7
+ end
8
+ end
@@ -0,0 +1,27 @@
1
+ module RailsDb
2
+ module Connection
3
+
4
+ def connection
5
+ ActiveRecord::Base.connection
6
+ rescue ActiveRecord::ConnectionNotEstablished
7
+ ActiveRecord::Base.establish_connection(Rails.application.config.database_configuration[Rails.env]).connection
8
+ end
9
+
10
+ def columns
11
+ connection.columns(name)
12
+ end
13
+
14
+ def column_properties
15
+ %w(name sql_type null limit precision scale type default)
16
+ end
17
+
18
+ def to_param
19
+ name
20
+ end
21
+
22
+ def column_names
23
+ columns.collect(&:name)
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,46 @@
1
+ module RailsDb
2
+ class Database
3
+ extend Connection
4
+
5
+ class << self
6
+ delegate :count, to: :adapter
7
+ delegate :truncate, to: :adapter
8
+ delegate :delete, to: :adapter
9
+ delegate :execute, to: :adapter
10
+ delegate :select, to: :adapter
11
+ delegate :explain, to: :adapter
12
+ delegate :exec_query, to: :adapter
13
+ delegate :primary_key, to: :adapter
14
+ delegate :indexes, to: :adapter
15
+ end
16
+
17
+ def self.tables
18
+ connection.tables.sort - ['schema_migrations']
19
+ end
20
+
21
+ def self.accessible_tables
22
+ tables = Database.tables
23
+ if Array.wrap(RailsDb.white_list_tables) != []
24
+ tables = tables & RailsDb.white_list_tables
25
+ end
26
+ if Array.wrap(RailsDb.black_list_tables) != []
27
+ tables = tables - RailsDb.black_list_tables
28
+ end
29
+ tables
30
+ end
31
+
32
+ def self.adapter
33
+ case connection.class.to_s
34
+ when /Mysql/
35
+ RailsDb::Adapters::Mysql
36
+ when /Postgre/
37
+ RailsDb::Adapters::Postgres
38
+ when /SQLite/
39
+ RailsDb::Adapters::Sqlite
40
+ else
41
+ RailsDb::Adapters::BaseAdapter
42
+ end
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,16 @@
1
+ module RailsDb
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace RailsDb
4
+ config.autoload_paths += Dir["#{config.root}/lib"]
5
+
6
+ initializer 'rails_db.assets_precompile', :group => :all do |app|
7
+ app.config.assets.paths << root.join("test", "dummy", "public", "assets")
8
+ end
9
+
10
+ initializer 'rails_db.helpers' do
11
+ ActiveSupport.on_load :action_view do
12
+ include RailsDb::Helpers
13
+ end
14
+ end
15
+ end
16
+ end