wallaby 5.0.1 → 5.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -3
  3. data/app/assets/images/wallaby/404.png +0 -0
  4. data/app/assets/images/wallaby/422.png +0 -0
  5. data/app/assets/images/wallaby/500.png +0 -0
  6. data/app/assets/javascripts/wallaby/application.js +1 -15
  7. data/app/assets/javascripts/wallaby/auto_select.js +77 -0
  8. data/app/assets/javascripts/wallaby/base.js +17 -0
  9. data/app/assets/javascripts/wallaby/setup.js.erb +60 -0
  10. data/app/assets/stylesheets/wallaby/application.scss +1 -51
  11. data/app/assets/stylesheets/wallaby/base/_layout.scss +257 -9
  12. data/app/assets/stylesheets/wallaby/base/_layout_desktop.scss +53 -0
  13. data/app/assets/stylesheets/wallaby/base/_mixins.scss +119 -0
  14. data/app/assets/stylesheets/wallaby/base/_override.scss +10 -0
  15. data/app/assets/stylesheets/wallaby/base/_vars.scss +72 -2
  16. data/app/assets/stylesheets/wallaby/base.scss +27 -0
  17. data/app/assets/stylesheets/wallaby/components/_auto_select.scss +119 -0
  18. data/app/assets/stylesheets/wallaby/components/_auto_select_desktop.scss +7 -0
  19. data/app/assets/stylesheets/wallaby/components/_color_square.scss +8 -0
  20. data/app/assets/stylesheets/wallaby/components/_filters.scss +14 -0
  21. data/app/assets/stylesheets/wallaby/components/_links.scss +25 -0
  22. data/app/assets/stylesheets/wallaby/components/_pagination.scss +35 -91
  23. data/app/assets/stylesheets/wallaby/components/_query.scss +101 -0
  24. data/app/assets/stylesheets/wallaby/components/_text.scss +6 -6
  25. data/app/assets/stylesheets/wallaby/pages/_error.scss +108 -0
  26. data/app/assets/stylesheets/wallaby/pages/_form.scss +40 -0
  27. data/app/assets/stylesheets/wallaby/pages/_index.scss +193 -0
  28. data/app/assets/stylesheets/wallaby/pages/_index_desktop.scss +22 -0
  29. data/app/assets/stylesheets/wallaby/pages/_show.scss +21 -0
  30. data/app/controllers/wallaby/abstract_resources_controller.rb +334 -0
  31. data/app/controllers/wallaby/application_controller.rb +45 -15
  32. data/app/controllers/wallaby/base_controller.rb +30 -0
  33. data/app/controllers/wallaby/resources_controller.rb +2 -131
  34. data/app/controllers/wallaby/secure_controller.rb +38 -24
  35. data/app/routes/wallaby/resources_router.rb +40 -43
  36. data/app/security/ability.rb +4 -28
  37. data/app/views/layouts/wallaby/application.html.erb +11 -6
  38. data/app/views/layouts/wallaby/error.html.erb +26 -4
  39. data/app/views/wallaby/error.html.erb +11 -0
  40. data/app/views/wallaby/error.json.jbuilder +8 -0
  41. data/app/views/wallaby/{shared → resources}/_flash_messages.html.erb +0 -0
  42. data/app/views/wallaby/resources/_footer.html.erb +1 -0
  43. data/app/views/wallaby/resources/_form.html.erb +2 -2
  44. data/app/views/wallaby/resources/_header.html.erb +38 -0
  45. data/app/views/wallaby/resources/_imodal.html.erb +13 -0
  46. data/app/views/wallaby/resources/_index_actions.html.erb +4 -1
  47. data/app/views/wallaby/resources/_index_filters.html.erb +23 -0
  48. data/app/views/wallaby/resources/_index_pagination.html.erb +63 -0
  49. data/app/views/wallaby/resources/_index_query.html.erb +23 -0
  50. data/app/views/wallaby/resources/_logo.html.erb +1 -0
  51. data/app/views/wallaby/resources/_navs.html.erb +9 -0
  52. data/app/views/wallaby/resources/_resource_actions.html.erb +3 -3
  53. data/app/views/wallaby/resources/{shared/_resource_nav.html.erb → _resource_navs.html.erb} +6 -6
  54. data/app/views/wallaby/resources/_title.html.erb +1 -0
  55. data/app/views/wallaby/resources/_user_menu.html.erb +5 -0
  56. data/app/views/wallaby/resources/bad_request.json.jbuilder +7 -0
  57. data/app/views/wallaby/resources/edit.html.erb +16 -12
  58. data/app/views/wallaby/resources/form/_belongs_to.html.erb +63 -12
  59. data/app/views/wallaby/resources/form/_bigint.html.erb +10 -1
  60. data/app/views/wallaby/resources/form/_bigserial.html.erb +18 -0
  61. data/app/views/wallaby/resources/form/_binary.html.erb +11 -2
  62. data/app/views/wallaby/resources/form/_bit.html.erb +10 -1
  63. data/app/views/wallaby/resources/form/_bit_varying.html.erb +10 -1
  64. data/app/views/wallaby/resources/form/_blob.html.erb +21 -0
  65. data/app/views/wallaby/resources/form/_boolean.html.erb +9 -0
  66. data/app/views/wallaby/resources/form/_box.html.erb +21 -0
  67. data/app/views/wallaby/resources/form/_cidr.html.erb +13 -1
  68. data/app/views/wallaby/resources/form/_circle.html.erb +21 -0
  69. data/app/views/wallaby/resources/form/_citext.html.erb +11 -2
  70. data/app/views/wallaby/resources/form/_color.html.erb +11 -2
  71. data/app/views/wallaby/resources/form/_date.html.erb +12 -3
  72. data/app/views/wallaby/resources/form/_daterange.html.erb +14 -5
  73. data/app/views/wallaby/resources/form/_datetime.html.erb +12 -3
  74. data/app/views/wallaby/resources/form/_decimal.html.erb +10 -1
  75. data/app/views/wallaby/resources/form/_dropdown.html.erb +18 -0
  76. data/app/views/wallaby/resources/form/_email.html.erb +9 -0
  77. data/app/views/wallaby/resources/form/_file.html.erb +21 -0
  78. data/app/views/wallaby/resources/form/_float.html.erb +10 -1
  79. data/app/views/wallaby/resources/form/_has_and_belongs_to_many.html.erb +53 -7
  80. data/app/views/wallaby/resources/form/_has_many.html.erb +52 -7
  81. data/app/views/wallaby/resources/form/_has_one.html.erb +10 -2
  82. data/app/views/wallaby/resources/form/_hstore.html.erb +12 -5
  83. data/app/views/wallaby/resources/form/_inet.html.erb +13 -1
  84. data/app/views/wallaby/resources/form/_int4range.html.erb +11 -2
  85. data/app/views/wallaby/resources/form/_int8range.html.erb +11 -2
  86. data/app/views/wallaby/resources/form/_integer.html.erb +10 -1
  87. data/app/views/wallaby/resources/form/_json.html.erb +13 -6
  88. data/app/views/wallaby/resources/form/_jsonb.html.erb +13 -6
  89. data/app/views/wallaby/resources/form/_line.html.erb +21 -0
  90. data/app/views/wallaby/resources/form/_longblob.html.erb +21 -0
  91. data/app/views/wallaby/resources/form/_longtext.html.erb +30 -0
  92. data/app/views/wallaby/resources/form/_lseg.html.erb +21 -0
  93. data/app/views/wallaby/resources/form/_ltree.html.erb +17 -1
  94. data/app/views/wallaby/resources/form/_macaddr.html.erb +13 -1
  95. data/app/views/wallaby/resources/form/_markdown.html.erb +29 -0
  96. data/app/views/wallaby/resources/form/_mediumblob.html.erb +21 -0
  97. data/app/views/wallaby/resources/form/_mediumtext.html.erb +30 -0
  98. data/app/views/wallaby/resources/form/_money.html.erb +10 -1
  99. data/app/views/wallaby/resources/form/_numrange.html.erb +11 -2
  100. data/app/views/wallaby/resources/form/_password.html.erb +14 -1
  101. data/app/views/wallaby/resources/form/_path.html.erb +17 -0
  102. data/app/views/wallaby/resources/form/_point.html.erb +11 -2
  103. data/app/views/wallaby/resources/form/_polygon.html.erb +17 -0
  104. data/app/views/wallaby/resources/form/_serial.html.erb +18 -0
  105. data/app/views/wallaby/resources/form/_sti.html.erb +18 -0
  106. data/app/views/wallaby/resources/form/_string.html.erb +14 -1
  107. data/app/views/wallaby/resources/form/_text.html.erb +11 -2
  108. data/app/views/wallaby/resources/form/_time.html.erb +12 -3
  109. data/app/views/wallaby/resources/form/_tinyblob.html.erb +21 -0
  110. data/app/views/wallaby/resources/form/_tinytext.html.erb +30 -0
  111. data/app/views/wallaby/resources/form/_tsrange.html.erb +14 -5
  112. data/app/views/wallaby/resources/form/_tstzrange.html.erb +14 -5
  113. data/app/views/wallaby/resources/form/_tsvector.html.erb +9 -0
  114. data/app/views/wallaby/resources/form/_unsigned_bigint.html.erb +18 -0
  115. data/app/views/wallaby/resources/form/_unsigned_decimal.html.erb +18 -0
  116. data/app/views/wallaby/resources/form/_unsigned_float.html.erb +18 -0
  117. data/app/views/wallaby/resources/form/_unsigned_integer.html.erb +18 -0
  118. data/app/views/wallaby/resources/form/_uuid.html.erb +10 -1
  119. data/app/views/wallaby/resources/form/_xml.html.erb +11 -5
  120. data/app/views/wallaby/resources/form.json.jbuilder +5 -0
  121. data/app/views/wallaby/{core → resources}/home.html.erb +1 -1
  122. data/app/views/wallaby/resources/index/_belongs_to.html.erb +5 -1
  123. data/app/views/wallaby/resources/index/_bigint.html.erb +4 -0
  124. data/app/views/wallaby/resources/index/_bigserial.html.erb +5 -0
  125. data/app/views/wallaby/resources/index/_binary.html.erb +5 -1
  126. data/app/views/wallaby/resources/index/_bit.html.erb +4 -0
  127. data/app/views/wallaby/resources/index/_bit_varying.html.erb +4 -0
  128. data/app/views/wallaby/resources/index/_blob.html.erb +5 -0
  129. data/app/views/wallaby/resources/index/_boolean.html.erb +5 -1
  130. data/app/views/wallaby/resources/index/_box.html.erb +16 -0
  131. data/app/views/wallaby/resources/index/_cidr.html.erb +5 -1
  132. data/app/views/wallaby/resources/index/_circle.html.erb +16 -0
  133. data/app/views/wallaby/resources/index/_citext.html.erb +5 -1
  134. data/app/views/wallaby/resources/index/_color.html.erb +6 -1
  135. data/app/views/wallaby/resources/index/_date.html.erb +4 -0
  136. data/app/views/wallaby/resources/index/_daterange.html.erb +5 -1
  137. data/app/views/wallaby/resources/index/_datetime.html.erb +5 -1
  138. data/app/views/wallaby/resources/index/_decimal.html.erb +4 -0
  139. data/app/views/wallaby/resources/index/_email.html.erb +4 -0
  140. data/app/views/wallaby/resources/index/_float.html.erb +4 -0
  141. data/app/views/wallaby/resources/index/_has_and_belongs_to_many.html.erb +6 -2
  142. data/app/views/wallaby/resources/index/_has_many.html.erb +6 -2
  143. data/app/views/wallaby/resources/index/_has_one.html.erb +5 -1
  144. data/app/views/wallaby/resources/index/_hstore.html.erb +6 -2
  145. data/app/views/wallaby/resources/index/_inet.html.erb +5 -1
  146. data/app/views/wallaby/resources/index/_int4range.html.erb +4 -0
  147. data/app/views/wallaby/resources/index/_int8range.html.erb +4 -0
  148. data/app/views/wallaby/resources/index/_integer.html.erb +4 -0
  149. data/app/views/wallaby/resources/index/_json.html.erb +5 -2
  150. data/app/views/wallaby/resources/index/_jsonb.html.erb +5 -2
  151. data/app/views/wallaby/resources/index/_line.html.erb +16 -0
  152. data/app/views/wallaby/resources/index/_longblob.html.erb +5 -0
  153. data/app/views/wallaby/resources/index/_longtext.html.erb +16 -0
  154. data/app/views/wallaby/resources/index/_lseg.html.erb +16 -0
  155. data/app/views/wallaby/resources/index/_ltree.html.erb +5 -1
  156. data/app/views/wallaby/resources/index/_macaddr.html.erb +4 -0
  157. data/app/views/wallaby/resources/index/_mediumblob.html.erb +5 -0
  158. data/app/views/wallaby/resources/index/_mediumtext.html.erb +16 -0
  159. data/app/views/wallaby/resources/index/_money.html.erb +4 -0
  160. data/app/views/wallaby/resources/index/_numrange.html.erb +4 -0
  161. data/app/views/wallaby/resources/index/_password.html.erb +9 -0
  162. data/app/views/wallaby/resources/index/_path.html.erb +16 -0
  163. data/app/views/wallaby/resources/index/_point.html.erb +4 -0
  164. data/app/views/wallaby/resources/index/_polygon.html.erb +16 -0
  165. data/app/views/wallaby/resources/index/_raw.html.erb +9 -0
  166. data/app/views/wallaby/resources/index/_serial.html.erb +5 -0
  167. data/app/views/wallaby/resources/index/_sti.html.erb +16 -0
  168. data/app/views/wallaby/resources/index/_string.html.erb +5 -1
  169. data/app/views/wallaby/resources/index/_text.html.erb +5 -1
  170. data/app/views/wallaby/resources/index/_time.html.erb +4 -0
  171. data/app/views/wallaby/resources/index/_tinyblob.html.erb +5 -0
  172. data/app/views/wallaby/resources/index/_tinytext.html.erb +16 -0
  173. data/app/views/wallaby/resources/index/_tsrange.html.erb +5 -1
  174. data/app/views/wallaby/resources/index/_tstzrange.html.erb +5 -1
  175. data/app/views/wallaby/resources/index/_tsvector.html.erb +5 -1
  176. data/app/views/wallaby/resources/index/_unsigned_bigint.html.erb +5 -0
  177. data/app/views/wallaby/resources/index/_unsigned_decimal.html.erb +5 -0
  178. data/app/views/wallaby/resources/index/_unsigned_float.html.erb +5 -0
  179. data/app/views/wallaby/resources/index/_unsigned_integer.html.erb +5 -0
  180. data/app/views/wallaby/resources/index/_uuid.html.erb +5 -1
  181. data/app/views/wallaby/resources/index/_xml.html.erb +5 -1
  182. data/app/views/wallaby/resources/index.csv.erb +26 -0
  183. data/app/views/wallaby/resources/index.html.erb +47 -59
  184. data/app/views/wallaby/resources/index.json.jbuilder +5 -0
  185. data/app/views/wallaby/resources/new.html.erb +12 -11
  186. data/app/views/wallaby/resources/show/_belongs_to.html.erb +5 -1
  187. data/app/views/wallaby/resources/show/_bigint.html.erb +4 -0
  188. data/app/views/wallaby/resources/show/_bigserial.html.erb +5 -0
  189. data/app/views/wallaby/resources/show/_binary.html.erb +5 -1
  190. data/app/views/wallaby/resources/show/_bit.html.erb +4 -0
  191. data/app/views/wallaby/resources/show/_bit_varying.html.erb +4 -0
  192. data/app/views/wallaby/resources/show/_blob.html.erb +5 -0
  193. data/app/views/wallaby/resources/show/_boolean.html.erb +5 -1
  194. data/app/views/wallaby/resources/show/_box.html.erb +9 -0
  195. data/app/views/wallaby/resources/show/_cidr.html.erb +5 -1
  196. data/app/views/wallaby/resources/show/_circle.html.erb +9 -0
  197. data/app/views/wallaby/resources/show/_citext.html.erb +4 -0
  198. data/app/views/wallaby/resources/show/_color.html.erb +6 -1
  199. data/app/views/wallaby/resources/show/_date.html.erb +4 -0
  200. data/app/views/wallaby/resources/show/_daterange.html.erb +4 -0
  201. data/app/views/wallaby/resources/show/_datetime.html.erb +4 -0
  202. data/app/views/wallaby/resources/show/_decimal.html.erb +4 -0
  203. data/app/views/wallaby/resources/show/_email.html.erb +4 -0
  204. data/app/views/wallaby/resources/show/_float.html.erb +4 -0
  205. data/app/views/wallaby/resources/show/_has_and_belongs_to_many.html.erb +6 -2
  206. data/app/views/wallaby/resources/show/_has_many.html.erb +6 -2
  207. data/app/views/wallaby/resources/show/_has_one.html.erb +5 -1
  208. data/app/views/wallaby/resources/show/_hstore.html.erb +4 -0
  209. data/app/views/wallaby/resources/show/_image.html.erb +9 -0
  210. data/app/views/wallaby/resources/show/_inet.html.erb +5 -1
  211. data/app/views/wallaby/resources/show/_int4range.html.erb +4 -0
  212. data/app/views/wallaby/resources/show/_int8range.html.erb +4 -0
  213. data/app/views/wallaby/resources/show/_integer.html.erb +4 -0
  214. data/app/views/wallaby/resources/show/_json.html.erb +4 -0
  215. data/app/views/wallaby/resources/show/_jsonb.html.erb +4 -0
  216. data/app/views/wallaby/resources/show/_line.html.erb +9 -0
  217. data/app/views/wallaby/resources/show/_longblob.html.erb +5 -0
  218. data/app/views/wallaby/resources/show/_longtext.html.erb +5 -0
  219. data/app/views/wallaby/resources/show/_lseg.html.erb +9 -0
  220. data/app/views/wallaby/resources/show/_ltree.html.erb +4 -0
  221. data/app/views/wallaby/resources/show/_macaddr.html.erb +4 -0
  222. data/app/views/wallaby/resources/show/_mediumblob.html.erb +5 -0
  223. data/app/views/wallaby/resources/show/_mediumtext.html.erb +5 -0
  224. data/app/views/wallaby/resources/show/_money.html.erb +4 -0
  225. data/app/views/wallaby/resources/show/_numrange.html.erb +4 -0
  226. data/app/views/wallaby/resources/show/_password.html.erb +9 -0
  227. data/app/views/wallaby/resources/show/_path.html.erb +9 -0
  228. data/app/views/wallaby/resources/show/_point.html.erb +4 -0
  229. data/app/views/wallaby/resources/show/_polygon.html.erb +9 -0
  230. data/app/views/wallaby/resources/show/_raw.html.erb +9 -0
  231. data/app/views/wallaby/resources/show/_serial.html.erb +5 -0
  232. data/app/views/wallaby/resources/show/_sti.html.erb +5 -0
  233. data/app/views/wallaby/resources/show/_string.html.erb +4 -0
  234. data/app/views/wallaby/resources/show/_text.html.erb +4 -0
  235. data/app/views/wallaby/resources/show/_time.html.erb +4 -0
  236. data/app/views/wallaby/resources/show/_tinyblob.html.erb +5 -0
  237. data/app/views/wallaby/resources/show/_tinytext.html.erb +5 -0
  238. data/app/views/wallaby/resources/show/_tsrange.html.erb +4 -0
  239. data/app/views/wallaby/resources/show/_tstzrange.html.erb +4 -0
  240. data/app/views/wallaby/resources/show/_tsvector.html.erb +4 -0
  241. data/app/views/wallaby/resources/show/_unsigned_bigint.html.erb +5 -0
  242. data/app/views/wallaby/resources/show/_unsigned_decimal.html.erb +5 -0
  243. data/app/views/wallaby/resources/show/_unsigned_float.html.erb +5 -0
  244. data/app/views/wallaby/resources/show/_unsigned_integer.html.erb +5 -0
  245. data/app/views/wallaby/resources/show/_uuid.html.erb +4 -0
  246. data/app/views/wallaby/resources/show/_xml.html.erb +4 -0
  247. data/app/views/wallaby/resources/show.html.erb +14 -24
  248. data/app/views/wallaby/resources/show.json.jbuilder +5 -0
  249. data/config/brakeman.ignore +26 -0
  250. data/config/locales/wallaby.en.yml +91 -0
  251. data/config/massa.yml +45 -0
  252. data/config/rails_best_practices.yml +42 -0
  253. data/config/routes.rb +29 -23
  254. data/lib/adaptors/wallaby/active_record/model_decorator/fields_builder/association_builder.rb +39 -0
  255. data/lib/adaptors/wallaby/active_record/model_decorator/fields_builder/polymorphic_builder.rb +44 -0
  256. data/lib/adaptors/wallaby/active_record/model_decorator/fields_builder/sti_builder.rb +42 -0
  257. data/lib/adaptors/wallaby/active_record/model_decorator/fields_builder.rb +41 -94
  258. data/lib/adaptors/wallaby/active_record/model_decorator/title_field_finder.rb +24 -14
  259. data/lib/adaptors/wallaby/active_record/model_decorator.rb +118 -64
  260. data/lib/adaptors/wallaby/active_record/model_finder.rb +44 -15
  261. data/lib/adaptors/wallaby/active_record/model_pagination_provider.rb +30 -0
  262. data/lib/adaptors/wallaby/active_record/model_service_provider/normalizer.rb +42 -0
  263. data/lib/adaptors/wallaby/active_record/model_service_provider/permitter.rb +64 -0
  264. data/lib/adaptors/wallaby/active_record/model_service_provider/querier/transformer.rb +70 -0
  265. data/lib/adaptors/wallaby/active_record/model_service_provider/querier.rb +102 -0
  266. data/lib/adaptors/wallaby/active_record/model_service_provider/validator.rb +29 -0
  267. data/lib/adaptors/wallaby/active_record/model_service_provider.rb +137 -0
  268. data/lib/adaptors/wallaby/active_record.rb +4 -1
  269. data/lib/decorators/wallaby/abstract_resource_decorator.rb +74 -0
  270. data/lib/decorators/wallaby/resource_decorator.rb +5 -76
  271. data/lib/errors/wallaby/model_not_found.rb +5 -1
  272. data/lib/errors/wallaby/not_found.rb +4 -0
  273. data/lib/errors/wallaby/resource_not_found.rb +5 -1
  274. data/lib/forms/wallaby/form_builder.rb +42 -19
  275. data/lib/helpers/wallaby/application_helper.rb +34 -24
  276. data/lib/helpers/wallaby/base_helper.rb +52 -0
  277. data/lib/helpers/wallaby/form_helper.rb +40 -16
  278. data/lib/helpers/wallaby/index_helper.rb +59 -0
  279. data/lib/helpers/wallaby/links_helper.rb +150 -81
  280. data/lib/helpers/wallaby/resources_helper.rb +41 -46
  281. data/lib/helpers/wallaby/secure_helper.rb +36 -19
  282. data/lib/helpers/wallaby/styling_helper.rb +53 -44
  283. data/lib/interfaces/wallaby/mode.rb +19 -12
  284. data/lib/interfaces/wallaby/model_decorator.rb +176 -50
  285. data/lib/interfaces/wallaby/model_finder.rb +7 -3
  286. data/lib/interfaces/wallaby/model_pagination_provider.rb +104 -0
  287. data/lib/interfaces/wallaby/model_service_provider.rb +71 -0
  288. data/lib/paginators/wallaby/abstract_resource_paginator.rb +23 -0
  289. data/lib/paginators/wallaby/resource_paginator.rb +6 -0
  290. data/lib/parsers/wallaby/parser.rb +32 -0
  291. data/lib/responders/wallaby/abstract_responder.rb +68 -0
  292. data/lib/responders/wallaby/resources_responder.rb +6 -0
  293. data/lib/servicers/wallaby/abstract_model_servicer.rb +48 -0
  294. data/lib/servicers/wallaby/model_servicer.rb +5 -0
  295. data/lib/services/wallaby/link_options_normalizer.rb +16 -0
  296. data/lib/services/wallaby/lookup_context_wrapper.rb +23 -30
  297. data/lib/services/wallaby/map/mode_mapper.rb +19 -0
  298. data/lib/services/wallaby/map/model_class_collector.rb +41 -0
  299. data/lib/services/wallaby/map/model_class_mapper.rb +24 -0
  300. data/lib/services/wallaby/map.rb +76 -39
  301. data/lib/services/wallaby/partial_renderer.rb +60 -0
  302. data/lib/services/wallaby/prefixes_builder.rb +54 -0
  303. data/lib/services/wallaby/sorting/hash_builder.rb +16 -0
  304. data/lib/services/wallaby/sorting/link_builder.rb +45 -0
  305. data/lib/services/wallaby/sorting/next_builder.rb +54 -0
  306. data/lib/services/wallaby/url_for.rb +36 -0
  307. data/lib/tree/wallaby/node.rb +17 -0
  308. data/lib/utils/wallaby/utils.rb +67 -22
  309. data/lib/wallaby/configuration/features.rb +12 -0
  310. data/lib/wallaby/configuration/metadata.rb +12 -0
  311. data/lib/wallaby/configuration/models.rb +27 -12
  312. data/lib/wallaby/configuration/pagination.rb +12 -0
  313. data/lib/wallaby/configuration/security.rb +55 -24
  314. data/lib/wallaby/configuration.rb +38 -19
  315. data/lib/wallaby/engine.rb +84 -39
  316. data/lib/wallaby/version.rb +1 -1
  317. data/lib/wallaby.rb +22 -3
  318. metadata +200 -55
  319. data/app/assets/javascripts/wallaby/form.js +0 -8
  320. data/app/assets/stylesheets/wallaby/base/_functions.scss +0 -0
  321. data/app/assets/stylesheets/wallaby/base/_normalize.scss +0 -0
  322. data/app/assets/stylesheets/wallaby/base/_reset.scss +0 -0
  323. data/app/assets/stylesheets/wallaby/components/_forms.scss +0 -53
  324. data/app/assets/stylesheets/wallaby/components/_nav.scss +0 -19
  325. data/app/assets/stylesheets/wallaby/components/_tables.scss +0 -78
  326. data/app/assets/stylesheets/wallaby/form.scss +0 -11
  327. data/app/controllers/wallaby/core_controller.rb +0 -28
  328. data/app/views/layouts/wallaby/_footer.html.erb +0 -2
  329. data/app/views/layouts/wallaby/_header.html.erb +0 -57
  330. data/app/views/layouts/wallaby/_navs.html.erb +0 -1
  331. data/app/views/wallaby/errors/access_denied.html.erb +0 -1
  332. data/app/views/wallaby/errors/not_authenticated.html.erb +0 -1
  333. data/app/views/wallaby/errors/not_found.html.erb +0 -6
  334. data/app/views/wallaby/errors/unprocessable_entity.erb +0 -1
  335. data/config/locales/en.yml +0 -29
  336. data/lib/adaptors/wallaby/active_record/model_operator/normalizer.rb +0 -44
  337. data/lib/adaptors/wallaby/active_record/model_operator/permitter.rb +0 -50
  338. data/lib/adaptors/wallaby/active_record/model_operator/querier.rb +0 -47
  339. data/lib/adaptors/wallaby/active_record/model_operator/validator.rb +0 -16
  340. data/lib/adaptors/wallaby/active_record/model_operator.rb +0 -82
  341. data/lib/errors/wallaby/deprecated.rb +0 -4
  342. data/lib/errors/wallaby/operation_not_found.rb +0 -4
  343. data/lib/handlers/wallaby/cached_compiled_erb.rb +0 -14
  344. data/lib/helpers/wallaby/core_helper.rb +0 -50
  345. data/lib/helpers/wallaby/paginatable_helper.rb +0 -9
  346. data/lib/helpers/wallaby/sorting_helper.rb +0 -43
  347. data/lib/interfaces/wallaby/model_operator.rb +0 -31
  348. data/lib/services/wallaby/decorator_finder.rb +0 -16
  349. data/lib/services/wallaby/model_servicer.rb +0 -38
  350. data/lib/services/wallaby/servicer_finder.rb +0 -5
metadata CHANGED
@@ -1,45 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wallaby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tianwen Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: bootstrap-sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: devise
28
+ name: bootstrap3-datetimepicker-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: kaminari
42
+ name: cancancan
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: cancancan
56
+ name: codemirror-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: sprockets-rails
70
+ name: font-awesome-sass
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: sass-rails
84
+ name: jbuilder
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: bootstrap-sass
98
+ name: jquery-minicolors-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: bootstrap3-datetimepicker-rails
112
+ name: jquery-rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: codemirror-rails
126
+ name: kaminari
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: jquery-minicolors-rails
140
+ name: momentjs-rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: jquery-rails
154
+ name: parslet
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,21 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: momentjs-rails
168
+ name: rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '5.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '5.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: responders
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ">="
@@ -179,7 +193,7 @@ dependencies:
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
- name: rails-bootstrap-markdown
196
+ name: sass-rails
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - ">="
@@ -206,6 +220,20 @@ dependencies:
206
220
  - - ">="
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: twitter-typeahead-rails
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
209
237
  description: Rails way database admin interface
210
238
  email:
211
239
  - me@tian.im
@@ -215,56 +243,83 @@ extra_rdoc_files: []
215
243
  files:
216
244
  - MIT-LICENSE
217
245
  - Rakefile
246
+ - app/assets/images/wallaby/404.png
247
+ - app/assets/images/wallaby/422.png
248
+ - app/assets/images/wallaby/500.png
218
249
  - app/assets/javascripts/wallaby/application.js
219
- - app/assets/javascripts/wallaby/form.js
250
+ - app/assets/javascripts/wallaby/auto_select.js
251
+ - app/assets/javascripts/wallaby/base.js
252
+ - app/assets/javascripts/wallaby/setup.js.erb
220
253
  - app/assets/stylesheets/wallaby/application.scss
221
- - app/assets/stylesheets/wallaby/base/_functions.scss
254
+ - app/assets/stylesheets/wallaby/base.scss
222
255
  - app/assets/stylesheets/wallaby/base/_layout.scss
256
+ - app/assets/stylesheets/wallaby/base/_layout_desktop.scss
223
257
  - app/assets/stylesheets/wallaby/base/_mixins.scss
224
- - app/assets/stylesheets/wallaby/base/_normalize.scss
225
- - app/assets/stylesheets/wallaby/base/_reset.scss
258
+ - app/assets/stylesheets/wallaby/base/_override.scss
226
259
  - app/assets/stylesheets/wallaby/base/_vars.scss
227
- - app/assets/stylesheets/wallaby/components/_forms.scss
228
- - app/assets/stylesheets/wallaby/components/_nav.scss
260
+ - app/assets/stylesheets/wallaby/components/_auto_select.scss
261
+ - app/assets/stylesheets/wallaby/components/_auto_select_desktop.scss
262
+ - app/assets/stylesheets/wallaby/components/_color_square.scss
263
+ - app/assets/stylesheets/wallaby/components/_filters.scss
264
+ - app/assets/stylesheets/wallaby/components/_links.scss
229
265
  - app/assets/stylesheets/wallaby/components/_pagination.scss
230
- - app/assets/stylesheets/wallaby/components/_tables.scss
266
+ - app/assets/stylesheets/wallaby/components/_query.scss
231
267
  - app/assets/stylesheets/wallaby/components/_text.scss
232
- - app/assets/stylesheets/wallaby/form.scss
268
+ - app/assets/stylesheets/wallaby/pages/_error.scss
269
+ - app/assets/stylesheets/wallaby/pages/_form.scss
270
+ - app/assets/stylesheets/wallaby/pages/_index.scss
271
+ - app/assets/stylesheets/wallaby/pages/_index_desktop.scss
272
+ - app/assets/stylesheets/wallaby/pages/_show.scss
233
273
  - app/assets/stylesheets/wallaby/summernote.scss.erb
274
+ - app/controllers/wallaby/abstract_resources_controller.rb
234
275
  - app/controllers/wallaby/application_controller.rb
235
- - app/controllers/wallaby/core_controller.rb
276
+ - app/controllers/wallaby/base_controller.rb
236
277
  - app/controllers/wallaby/resources_controller.rb
237
278
  - app/controllers/wallaby/secure_controller.rb
238
279
  - app/routes/wallaby/resources_router.rb
239
280
  - app/security/ability.rb
240
- - app/views/layouts/wallaby/_footer.html.erb
241
- - app/views/layouts/wallaby/_header.html.erb
242
- - app/views/layouts/wallaby/_navs.html.erb
243
281
  - app/views/layouts/wallaby/application.html.erb
244
282
  - app/views/layouts/wallaby/error.html.erb
245
- - app/views/wallaby/core/home.html.erb
246
- - app/views/wallaby/errors/access_denied.html.erb
247
- - app/views/wallaby/errors/not_authenticated.html.erb
248
- - app/views/wallaby/errors/not_found.html.erb
249
- - app/views/wallaby/errors/unprocessable_entity.erb
283
+ - app/views/wallaby/error.html.erb
284
+ - app/views/wallaby/error.json.jbuilder
285
+ - app/views/wallaby/resources/_flash_messages.html.erb
286
+ - app/views/wallaby/resources/_footer.html.erb
250
287
  - app/views/wallaby/resources/_form.html.erb
288
+ - app/views/wallaby/resources/_header.html.erb
289
+ - app/views/wallaby/resources/_imodal.html.erb
251
290
  - app/views/wallaby/resources/_index_actions.html.erb
291
+ - app/views/wallaby/resources/_index_filters.html.erb
292
+ - app/views/wallaby/resources/_index_pagination.html.erb
293
+ - app/views/wallaby/resources/_index_query.html.erb
294
+ - app/views/wallaby/resources/_logo.html.erb
295
+ - app/views/wallaby/resources/_navs.html.erb
252
296
  - app/views/wallaby/resources/_resource_actions.html.erb
297
+ - app/views/wallaby/resources/_resource_navs.html.erb
298
+ - app/views/wallaby/resources/_title.html.erb
299
+ - app/views/wallaby/resources/_user_menu.html.erb
300
+ - app/views/wallaby/resources/bad_request.json.jbuilder
253
301
  - app/views/wallaby/resources/edit.html.erb
302
+ - app/views/wallaby/resources/form.json.jbuilder
254
303
  - app/views/wallaby/resources/form/_belongs_to.html.erb
255
304
  - app/views/wallaby/resources/form/_bigint.html.erb
305
+ - app/views/wallaby/resources/form/_bigserial.html.erb
256
306
  - app/views/wallaby/resources/form/_binary.html.erb
257
307
  - app/views/wallaby/resources/form/_bit.html.erb
258
308
  - app/views/wallaby/resources/form/_bit_varying.html.erb
309
+ - app/views/wallaby/resources/form/_blob.html.erb
259
310
  - app/views/wallaby/resources/form/_boolean.html.erb
311
+ - app/views/wallaby/resources/form/_box.html.erb
260
312
  - app/views/wallaby/resources/form/_cidr.html.erb
313
+ - app/views/wallaby/resources/form/_circle.html.erb
261
314
  - app/views/wallaby/resources/form/_citext.html.erb
262
315
  - app/views/wallaby/resources/form/_color.html.erb
263
316
  - app/views/wallaby/resources/form/_date.html.erb
264
317
  - app/views/wallaby/resources/form/_daterange.html.erb
265
318
  - app/views/wallaby/resources/form/_datetime.html.erb
266
319
  - app/views/wallaby/resources/form/_decimal.html.erb
320
+ - app/views/wallaby/resources/form/_dropdown.html.erb
267
321
  - app/views/wallaby/resources/form/_email.html.erb
322
+ - app/views/wallaby/resources/form/_file.html.erb
268
323
  - app/views/wallaby/resources/form/_float.html.erb
269
324
  - app/views/wallaby/resources/form/_has_and_belongs_to_many.html.erb
270
325
  - app/views/wallaby/resources/form/_has_many.html.erb
@@ -276,28 +331,52 @@ files:
276
331
  - app/views/wallaby/resources/form/_integer.html.erb
277
332
  - app/views/wallaby/resources/form/_json.html.erb
278
333
  - app/views/wallaby/resources/form/_jsonb.html.erb
334
+ - app/views/wallaby/resources/form/_line.html.erb
335
+ - app/views/wallaby/resources/form/_longblob.html.erb
336
+ - app/views/wallaby/resources/form/_longtext.html.erb
337
+ - app/views/wallaby/resources/form/_lseg.html.erb
279
338
  - app/views/wallaby/resources/form/_ltree.html.erb
280
339
  - app/views/wallaby/resources/form/_macaddr.html.erb
340
+ - app/views/wallaby/resources/form/_markdown.html.erb
341
+ - app/views/wallaby/resources/form/_mediumblob.html.erb
342
+ - app/views/wallaby/resources/form/_mediumtext.html.erb
281
343
  - app/views/wallaby/resources/form/_money.html.erb
282
344
  - app/views/wallaby/resources/form/_numrange.html.erb
283
345
  - app/views/wallaby/resources/form/_password.html.erb
346
+ - app/views/wallaby/resources/form/_path.html.erb
284
347
  - app/views/wallaby/resources/form/_point.html.erb
348
+ - app/views/wallaby/resources/form/_polygon.html.erb
349
+ - app/views/wallaby/resources/form/_serial.html.erb
350
+ - app/views/wallaby/resources/form/_sti.html.erb
285
351
  - app/views/wallaby/resources/form/_string.html.erb
286
352
  - app/views/wallaby/resources/form/_text.html.erb
287
353
  - app/views/wallaby/resources/form/_time.html.erb
354
+ - app/views/wallaby/resources/form/_tinyblob.html.erb
355
+ - app/views/wallaby/resources/form/_tinytext.html.erb
288
356
  - app/views/wallaby/resources/form/_tsrange.html.erb
289
357
  - app/views/wallaby/resources/form/_tstzrange.html.erb
290
358
  - app/views/wallaby/resources/form/_tsvector.html.erb
359
+ - app/views/wallaby/resources/form/_unsigned_bigint.html.erb
360
+ - app/views/wallaby/resources/form/_unsigned_decimal.html.erb
361
+ - app/views/wallaby/resources/form/_unsigned_float.html.erb
362
+ - app/views/wallaby/resources/form/_unsigned_integer.html.erb
291
363
  - app/views/wallaby/resources/form/_uuid.html.erb
292
364
  - app/views/wallaby/resources/form/_xml.html.erb
365
+ - app/views/wallaby/resources/home.html.erb
366
+ - app/views/wallaby/resources/index.csv.erb
293
367
  - app/views/wallaby/resources/index.html.erb
368
+ - app/views/wallaby/resources/index.json.jbuilder
294
369
  - app/views/wallaby/resources/index/_belongs_to.html.erb
295
370
  - app/views/wallaby/resources/index/_bigint.html.erb
371
+ - app/views/wallaby/resources/index/_bigserial.html.erb
296
372
  - app/views/wallaby/resources/index/_binary.html.erb
297
373
  - app/views/wallaby/resources/index/_bit.html.erb
298
374
  - app/views/wallaby/resources/index/_bit_varying.html.erb
375
+ - app/views/wallaby/resources/index/_blob.html.erb
299
376
  - app/views/wallaby/resources/index/_boolean.html.erb
377
+ - app/views/wallaby/resources/index/_box.html.erb
300
378
  - app/views/wallaby/resources/index/_cidr.html.erb
379
+ - app/views/wallaby/resources/index/_circle.html.erb
301
380
  - app/views/wallaby/resources/index/_citext.html.erb
302
381
  - app/views/wallaby/resources/index/_color.html.erb
303
382
  - app/views/wallaby/resources/index/_date.html.erb
@@ -316,29 +395,51 @@ files:
316
395
  - app/views/wallaby/resources/index/_integer.html.erb
317
396
  - app/views/wallaby/resources/index/_json.html.erb
318
397
  - app/views/wallaby/resources/index/_jsonb.html.erb
398
+ - app/views/wallaby/resources/index/_line.html.erb
399
+ - app/views/wallaby/resources/index/_longblob.html.erb
400
+ - app/views/wallaby/resources/index/_longtext.html.erb
401
+ - app/views/wallaby/resources/index/_lseg.html.erb
319
402
  - app/views/wallaby/resources/index/_ltree.html.erb
320
403
  - app/views/wallaby/resources/index/_macaddr.html.erb
404
+ - app/views/wallaby/resources/index/_mediumblob.html.erb
405
+ - app/views/wallaby/resources/index/_mediumtext.html.erb
321
406
  - app/views/wallaby/resources/index/_money.html.erb
322
407
  - app/views/wallaby/resources/index/_numrange.html.erb
408
+ - app/views/wallaby/resources/index/_password.html.erb
409
+ - app/views/wallaby/resources/index/_path.html.erb
323
410
  - app/views/wallaby/resources/index/_point.html.erb
411
+ - app/views/wallaby/resources/index/_polygon.html.erb
412
+ - app/views/wallaby/resources/index/_raw.html.erb
413
+ - app/views/wallaby/resources/index/_serial.html.erb
414
+ - app/views/wallaby/resources/index/_sti.html.erb
324
415
  - app/views/wallaby/resources/index/_string.html.erb
325
416
  - app/views/wallaby/resources/index/_text.html.erb
326
417
  - app/views/wallaby/resources/index/_time.html.erb
418
+ - app/views/wallaby/resources/index/_tinyblob.html.erb
419
+ - app/views/wallaby/resources/index/_tinytext.html.erb
327
420
  - app/views/wallaby/resources/index/_tsrange.html.erb
328
421
  - app/views/wallaby/resources/index/_tstzrange.html.erb
329
422
  - app/views/wallaby/resources/index/_tsvector.html.erb
423
+ - app/views/wallaby/resources/index/_unsigned_bigint.html.erb
424
+ - app/views/wallaby/resources/index/_unsigned_decimal.html.erb
425
+ - app/views/wallaby/resources/index/_unsigned_float.html.erb
426
+ - app/views/wallaby/resources/index/_unsigned_integer.html.erb
330
427
  - app/views/wallaby/resources/index/_uuid.html.erb
331
428
  - app/views/wallaby/resources/index/_xml.html.erb
332
429
  - app/views/wallaby/resources/new.html.erb
333
- - app/views/wallaby/resources/shared/_resource_nav.html.erb
334
430
  - app/views/wallaby/resources/show.html.erb
431
+ - app/views/wallaby/resources/show.json.jbuilder
335
432
  - app/views/wallaby/resources/show/_belongs_to.html.erb
336
433
  - app/views/wallaby/resources/show/_bigint.html.erb
434
+ - app/views/wallaby/resources/show/_bigserial.html.erb
337
435
  - app/views/wallaby/resources/show/_binary.html.erb
338
436
  - app/views/wallaby/resources/show/_bit.html.erb
339
437
  - app/views/wallaby/resources/show/_bit_varying.html.erb
438
+ - app/views/wallaby/resources/show/_blob.html.erb
340
439
  - app/views/wallaby/resources/show/_boolean.html.erb
440
+ - app/views/wallaby/resources/show/_box.html.erb
341
441
  - app/views/wallaby/resources/show/_cidr.html.erb
442
+ - app/views/wallaby/resources/show/_circle.html.erb
342
443
  - app/views/wallaby/resources/show/_citext.html.erb
343
444
  - app/views/wallaby/resources/show/_color.html.erb
344
445
  - app/views/wallaby/resources/show/_date.html.erb
@@ -351,72 +452,115 @@ files:
351
452
  - app/views/wallaby/resources/show/_has_many.html.erb
352
453
  - app/views/wallaby/resources/show/_has_one.html.erb
353
454
  - app/views/wallaby/resources/show/_hstore.html.erb
455
+ - app/views/wallaby/resources/show/_image.html.erb
354
456
  - app/views/wallaby/resources/show/_inet.html.erb
355
457
  - app/views/wallaby/resources/show/_int4range.html.erb
356
458
  - app/views/wallaby/resources/show/_int8range.html.erb
357
459
  - app/views/wallaby/resources/show/_integer.html.erb
358
460
  - app/views/wallaby/resources/show/_json.html.erb
359
461
  - app/views/wallaby/resources/show/_jsonb.html.erb
462
+ - app/views/wallaby/resources/show/_line.html.erb
463
+ - app/views/wallaby/resources/show/_longblob.html.erb
464
+ - app/views/wallaby/resources/show/_longtext.html.erb
465
+ - app/views/wallaby/resources/show/_lseg.html.erb
360
466
  - app/views/wallaby/resources/show/_ltree.html.erb
361
467
  - app/views/wallaby/resources/show/_macaddr.html.erb
468
+ - app/views/wallaby/resources/show/_mediumblob.html.erb
469
+ - app/views/wallaby/resources/show/_mediumtext.html.erb
362
470
  - app/views/wallaby/resources/show/_money.html.erb
363
471
  - app/views/wallaby/resources/show/_numrange.html.erb
472
+ - app/views/wallaby/resources/show/_password.html.erb
473
+ - app/views/wallaby/resources/show/_path.html.erb
364
474
  - app/views/wallaby/resources/show/_point.html.erb
475
+ - app/views/wallaby/resources/show/_polygon.html.erb
476
+ - app/views/wallaby/resources/show/_raw.html.erb
477
+ - app/views/wallaby/resources/show/_serial.html.erb
478
+ - app/views/wallaby/resources/show/_sti.html.erb
365
479
  - app/views/wallaby/resources/show/_string.html.erb
366
480
  - app/views/wallaby/resources/show/_text.html.erb
367
481
  - app/views/wallaby/resources/show/_time.html.erb
482
+ - app/views/wallaby/resources/show/_tinyblob.html.erb
483
+ - app/views/wallaby/resources/show/_tinytext.html.erb
368
484
  - app/views/wallaby/resources/show/_tsrange.html.erb
369
485
  - app/views/wallaby/resources/show/_tstzrange.html.erb
370
486
  - app/views/wallaby/resources/show/_tsvector.html.erb
487
+ - app/views/wallaby/resources/show/_unsigned_bigint.html.erb
488
+ - app/views/wallaby/resources/show/_unsigned_decimal.html.erb
489
+ - app/views/wallaby/resources/show/_unsigned_float.html.erb
490
+ - app/views/wallaby/resources/show/_unsigned_integer.html.erb
371
491
  - app/views/wallaby/resources/show/_uuid.html.erb
372
492
  - app/views/wallaby/resources/show/_xml.html.erb
373
- - app/views/wallaby/shared/_flash_messages.html.erb
374
- - config/locales/en.yml
493
+ - config/brakeman.ignore
494
+ - config/locales/wallaby.en.yml
495
+ - config/massa.yml
496
+ - config/rails_best_practices.yml
375
497
  - config/routes.rb
376
498
  - lib/adaptors/wallaby/active_record.rb
377
499
  - lib/adaptors/wallaby/active_record/model_decorator.rb
378
500
  - lib/adaptors/wallaby/active_record/model_decorator/fields_builder.rb
501
+ - lib/adaptors/wallaby/active_record/model_decorator/fields_builder/association_builder.rb
502
+ - lib/adaptors/wallaby/active_record/model_decorator/fields_builder/polymorphic_builder.rb
503
+ - lib/adaptors/wallaby/active_record/model_decorator/fields_builder/sti_builder.rb
379
504
  - lib/adaptors/wallaby/active_record/model_decorator/title_field_finder.rb
380
505
  - lib/adaptors/wallaby/active_record/model_finder.rb
381
- - lib/adaptors/wallaby/active_record/model_operator.rb
382
- - lib/adaptors/wallaby/active_record/model_operator/normalizer.rb
383
- - lib/adaptors/wallaby/active_record/model_operator/permitter.rb
384
- - lib/adaptors/wallaby/active_record/model_operator/querier.rb
385
- - lib/adaptors/wallaby/active_record/model_operator/validator.rb
506
+ - lib/adaptors/wallaby/active_record/model_pagination_provider.rb
507
+ - lib/adaptors/wallaby/active_record/model_service_provider.rb
508
+ - lib/adaptors/wallaby/active_record/model_service_provider/normalizer.rb
509
+ - lib/adaptors/wallaby/active_record/model_service_provider/permitter.rb
510
+ - lib/adaptors/wallaby/active_record/model_service_provider/querier.rb
511
+ - lib/adaptors/wallaby/active_record/model_service_provider/querier/transformer.rb
512
+ - lib/adaptors/wallaby/active_record/model_service_provider/validator.rb
513
+ - lib/decorators/wallaby/abstract_resource_decorator.rb
386
514
  - lib/decorators/wallaby/resource_decorator.rb
387
- - lib/errors/wallaby/deprecated.rb
388
515
  - lib/errors/wallaby/general_error.rb
389
516
  - lib/errors/wallaby/invalid_error.rb
390
517
  - lib/errors/wallaby/model_not_found.rb
391
518
  - lib/errors/wallaby/not_authenticated.rb
519
+ - lib/errors/wallaby/not_found.rb
392
520
  - lib/errors/wallaby/not_implemented.rb
393
- - lib/errors/wallaby/operation_not_found.rb
394
521
  - lib/errors/wallaby/resource_not_found.rb
395
522
  - lib/forms/wallaby/form_builder.rb
396
- - lib/handlers/wallaby/cached_compiled_erb.rb
397
523
  - lib/helpers/wallaby/application_helper.rb
398
- - lib/helpers/wallaby/core_helper.rb
524
+ - lib/helpers/wallaby/base_helper.rb
399
525
  - lib/helpers/wallaby/form_helper.rb
526
+ - lib/helpers/wallaby/index_helper.rb
400
527
  - lib/helpers/wallaby/links_helper.rb
401
- - lib/helpers/wallaby/paginatable_helper.rb
402
528
  - lib/helpers/wallaby/resources_helper.rb
403
529
  - lib/helpers/wallaby/secure_helper.rb
404
- - lib/helpers/wallaby/sorting_helper.rb
405
530
  - lib/helpers/wallaby/styling_helper.rb
406
531
  - lib/interfaces/wallaby/mode.rb
407
532
  - lib/interfaces/wallaby/model_decorator.rb
408
533
  - lib/interfaces/wallaby/model_finder.rb
409
- - lib/interfaces/wallaby/model_operator.rb
410
- - lib/services/wallaby/decorator_finder.rb
534
+ - lib/interfaces/wallaby/model_pagination_provider.rb
535
+ - lib/interfaces/wallaby/model_service_provider.rb
536
+ - lib/paginators/wallaby/abstract_resource_paginator.rb
537
+ - lib/paginators/wallaby/resource_paginator.rb
538
+ - lib/parsers/wallaby/parser.rb
539
+ - lib/responders/wallaby/abstract_responder.rb
540
+ - lib/responders/wallaby/resources_responder.rb
541
+ - lib/servicers/wallaby/abstract_model_servicer.rb
542
+ - lib/servicers/wallaby/model_servicer.rb
543
+ - lib/services/wallaby/link_options_normalizer.rb
411
544
  - lib/services/wallaby/lookup_context_wrapper.rb
412
545
  - lib/services/wallaby/map.rb
413
- - lib/services/wallaby/model_servicer.rb
414
- - lib/services/wallaby/servicer_finder.rb
546
+ - lib/services/wallaby/map/mode_mapper.rb
547
+ - lib/services/wallaby/map/model_class_collector.rb
548
+ - lib/services/wallaby/map/model_class_mapper.rb
549
+ - lib/services/wallaby/partial_renderer.rb
550
+ - lib/services/wallaby/prefixes_builder.rb
551
+ - lib/services/wallaby/sorting/hash_builder.rb
552
+ - lib/services/wallaby/sorting/link_builder.rb
553
+ - lib/services/wallaby/sorting/next_builder.rb
554
+ - lib/services/wallaby/url_for.rb
415
555
  - lib/tasks/wallaby_tasks.rake
556
+ - lib/tree/wallaby/node.rb
416
557
  - lib/utils/wallaby/utils.rb
417
558
  - lib/wallaby.rb
418
559
  - lib/wallaby/configuration.rb
560
+ - lib/wallaby/configuration/features.rb
561
+ - lib/wallaby/configuration/metadata.rb
419
562
  - lib/wallaby/configuration/models.rb
563
+ - lib/wallaby/configuration/pagination.rb
420
564
  - lib/wallaby/configuration/security.rb
421
565
  - lib/wallaby/engine.rb
422
566
  - lib/wallaby/version.rb
@@ -440,8 +584,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
440
584
  version: '0'
441
585
  requirements: []
442
586
  rubyforge_project:
443
- rubygems_version: 2.6.11
587
+ rubygems_version: 2.6.14
444
588
  signing_key:
445
589
  specification_version: 4
446
590
  summary: Rails way database admin interface
447
591
  test_files: []
592
+ has_rdoc:
@@ -1,8 +0,0 @@
1
- //= require moment
2
- //= require bootstrap-datetimepicker
3
- //= require summernote
4
- //= require codemirror
5
- //= require codemirror/modes/xml
6
- //= require codemirror/modes/ruby
7
- //= require codemirror/modes/javascript
8
- //= require jquery.minicolors
File without changes
File without changes
File without changes
@@ -1,53 +0,0 @@
1
- //
2
- // Forms
3
- // --------------------------------------------------
4
- .search-form {
5
- position: relative;
6
- border-bottom: 1px solid $hr-border;
7
- margin-top: -15px;
8
- margin-left: -15px;
9
- margin-right: -15px;
10
- margin-bottom: 10px;
11
- box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
12
-
13
- .right {
14
- position: absolute;
15
- z-index: 10;
16
- right: 15px;
17
- top: 50%;
18
- margin-top: -17px;
19
- }
20
-
21
- form {
22
- padding: 15px 97px 15px 40px;
23
- &:before {
24
- position: absolute;
25
- @extend .glyphicon, .glyphicon-search:before;
26
- z-index: 10;
27
- left: 15px;
28
- top: 50%;
29
- margin-top: -9px;
30
- font-size: $font-size-large;
31
- color: $gray-lighter;
32
- }
33
- input {
34
- font-size: $font-size-large;
35
- width: 100%;
36
- border: none;
37
- &:focus {
38
- outline: unset;
39
- }
40
- }
41
- }
42
- &.focus {
43
- form:before {
44
- color: $btn-primary-bg;
45
- }
46
- }
47
-
48
- &.sort {
49
- form {
50
- padding-right: 197px;
51
- }
52
- }
53
- }
@@ -1,19 +0,0 @@
1
- .nav {
2
- a {
3
- &:hover {
4
- background-color: #337ab7;
5
- color: #ffffff;
6
- }
7
- }
8
- .text-danger {
9
- &:hover {
10
- background-color: #d04437;
11
- }
12
- }
13
-
14
- .text-warning {
15
- &:hover {
16
- background-color: #f6c342;
17
- }
18
- }
19
- }