releaf-core 1.1.22 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/releaf_core_manifest.js +3 -0
  3. data/app/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  4. data/app/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  5. data/app/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
  6. data/app/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  7. data/app/assets/images/ckeditor/plugins/icons.png +0 -0
  8. data/app/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  9. data/app/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
  10. data/app/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
  11. data/app/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  12. data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  13. data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  14. data/app/assets/images/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  15. data/app/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
  16. data/app/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  17. data/app/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  18. data/app/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  19. data/app/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  20. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  21. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  22. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  23. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  24. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  25. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  26. data/app/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  27. data/app/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  28. data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  29. data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  30. data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  31. data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  32. data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  33. data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  34. data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  35. data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  36. data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  37. data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  38. data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  39. data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  40. data/app/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  41. data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  42. data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  43. data/app/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  44. data/app/assets/images/ckeditor/plugins/smiley/images/envelope.png +0 -0
  45. data/app/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
  46. data/app/assets/images/ckeditor/plugins/smiley/images/heart.png +0 -0
  47. data/app/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  48. data/app/assets/images/ckeditor/plugins/smiley/images/kiss.png +0 -0
  49. data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  50. data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  51. data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  52. data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  53. data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  54. data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  55. data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  56. data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  57. data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  58. data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  59. data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  60. data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  61. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  62. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  63. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  64. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  65. data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  66. data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  67. data/app/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  68. data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  69. data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  70. data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  71. data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  72. data/app/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  73. data/app/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  74. data/app/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  75. data/app/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
  76. data/app/assets/images/ckeditor/skins/moono-lisa/icons.png +0 -0
  77. data/app/assets/images/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  78. data/app/assets/images/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  79. data/app/assets/images/ckeditor/skins/moono-lisa/images/close.png +0 -0
  80. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  81. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  82. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  83. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  84. data/app/assets/images/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  85. data/app/assets/images/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  86. data/app/assets/images/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  87. data/app/assets/images/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  88. data/app/assets/javascripts/ckeditor-jquery.js +3 -0
  89. data/app/assets/javascripts/ckeditor/CHANGES.md +1637 -0
  90. data/app/assets/javascripts/ckeditor/LICENSE.md +1420 -0
  91. data/app/assets/javascripts/ckeditor/README.md +39 -0
  92. data/app/assets/javascripts/ckeditor/basepath.js.erb +6 -0
  93. data/app/assets/javascripts/ckeditor/build-config.js +190 -0
  94. data/app/assets/javascripts/ckeditor/ckeditor.js +1331 -0
  95. data/app/assets/javascripts/ckeditor/config.js +10 -0
  96. data/app/assets/javascripts/ckeditor/jquery.js +10 -0
  97. data/app/assets/javascripts/ckeditor/lang/af.js +5 -0
  98. data/app/assets/javascripts/ckeditor/lang/ar.js +5 -0
  99. data/app/assets/javascripts/ckeditor/lang/az.js +5 -0
  100. data/app/assets/javascripts/ckeditor/lang/bg.js +5 -0
  101. data/app/assets/javascripts/ckeditor/lang/bn.js +5 -0
  102. data/app/assets/javascripts/ckeditor/lang/bs.js +5 -0
  103. data/app/assets/javascripts/ckeditor/lang/ca.js +5 -0
  104. data/app/assets/javascripts/ckeditor/lang/cs.js +5 -0
  105. data/app/assets/javascripts/ckeditor/lang/cy.js +5 -0
  106. data/app/assets/javascripts/ckeditor/lang/da.js +5 -0
  107. data/app/assets/javascripts/ckeditor/lang/de-ch.js +5 -0
  108. data/app/assets/javascripts/ckeditor/lang/de.js +5 -0
  109. data/app/assets/javascripts/ckeditor/lang/el.js +5 -0
  110. data/app/assets/javascripts/ckeditor/lang/en-au.js +5 -0
  111. data/app/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
  112. data/app/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
  113. data/app/assets/javascripts/ckeditor/lang/en.js +5 -0
  114. data/app/assets/javascripts/ckeditor/lang/eo.js +5 -0
  115. data/app/assets/javascripts/ckeditor/lang/es-mx.js +5 -0
  116. data/app/assets/javascripts/ckeditor/lang/es.js +5 -0
  117. data/app/assets/javascripts/ckeditor/lang/et.js +5 -0
  118. data/app/assets/javascripts/ckeditor/lang/eu.js +5 -0
  119. data/app/assets/javascripts/ckeditor/lang/fa.js +5 -0
  120. data/app/assets/javascripts/ckeditor/lang/fi.js +5 -0
  121. data/app/assets/javascripts/ckeditor/lang/fo.js +5 -0
  122. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
  123. data/app/assets/javascripts/ckeditor/lang/fr.js +5 -0
  124. data/app/assets/javascripts/ckeditor/lang/gl.js +5 -0
  125. data/app/assets/javascripts/ckeditor/lang/gu.js +5 -0
  126. data/app/assets/javascripts/ckeditor/lang/he.js +5 -0
  127. data/app/assets/javascripts/ckeditor/lang/hi.js +5 -0
  128. data/app/assets/javascripts/ckeditor/lang/hr.js +5 -0
  129. data/app/assets/javascripts/ckeditor/lang/hu.js +5 -0
  130. data/app/assets/javascripts/ckeditor/lang/id.js +5 -0
  131. data/app/assets/javascripts/ckeditor/lang/is.js +5 -0
  132. data/app/assets/javascripts/ckeditor/lang/it.js +5 -0
  133. data/app/assets/javascripts/ckeditor/lang/ja.js +5 -0
  134. data/app/assets/javascripts/ckeditor/lang/ka.js +5 -0
  135. data/app/assets/javascripts/ckeditor/lang/km.js +5 -0
  136. data/app/assets/javascripts/ckeditor/lang/ko.js +5 -0
  137. data/app/assets/javascripts/ckeditor/lang/ku.js +5 -0
  138. data/app/assets/javascripts/ckeditor/lang/lt.js +5 -0
  139. data/app/assets/javascripts/ckeditor/lang/lv.js +5 -0
  140. data/app/assets/javascripts/ckeditor/lang/mk.js +5 -0
  141. data/app/assets/javascripts/ckeditor/lang/mn.js +5 -0
  142. data/app/assets/javascripts/ckeditor/lang/ms.js +5 -0
  143. data/app/assets/javascripts/ckeditor/lang/nb.js +5 -0
  144. data/app/assets/javascripts/ckeditor/lang/nl.js +5 -0
  145. data/app/assets/javascripts/ckeditor/lang/no.js +5 -0
  146. data/app/assets/javascripts/ckeditor/lang/oc.js +5 -0
  147. data/app/assets/javascripts/ckeditor/lang/pl.js +5 -0
  148. data/app/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
  149. data/app/assets/javascripts/ckeditor/lang/pt.js +5 -0
  150. data/app/assets/javascripts/ckeditor/lang/ro.js +5 -0
  151. data/app/assets/javascripts/ckeditor/lang/ru.js +5 -0
  152. data/app/assets/javascripts/ckeditor/lang/si.js +5 -0
  153. data/app/assets/javascripts/ckeditor/lang/sk.js +5 -0
  154. data/app/assets/javascripts/ckeditor/lang/sl.js +5 -0
  155. data/app/assets/javascripts/ckeditor/lang/sq.js +5 -0
  156. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
  157. data/app/assets/javascripts/ckeditor/lang/sr.js +5 -0
  158. data/app/assets/javascripts/ckeditor/lang/sv.js +5 -0
  159. data/app/assets/javascripts/ckeditor/lang/th.js +5 -0
  160. data/app/assets/javascripts/ckeditor/lang/tr.js +5 -0
  161. data/app/assets/javascripts/ckeditor/lang/tt.js +5 -0
  162. data/app/assets/javascripts/ckeditor/lang/ug.js +5 -0
  163. data/app/assets/javascripts/ckeditor/lang/uk.js +5 -0
  164. data/app/assets/javascripts/ckeditor/lang/vi.js +5 -0
  165. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
  166. data/app/assets/javascripts/ckeditor/lang/zh.js +5 -0
  167. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
  168. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
  169. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
  170. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
  171. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
  172. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
  173. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
  174. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
  175. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
  176. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +12 -0
  177. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
  178. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
  179. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +11 -0
  180. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
  181. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
  182. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
  183. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
  184. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
  185. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
  186. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
  187. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
  188. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
  189. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
  190. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
  191. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
  192. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
  193. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
  194. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
  195. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
  196. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
  197. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
  198. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
  199. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
  200. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
  201. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
  202. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
  203. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
  204. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
  205. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +12 -0
  206. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
  207. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
  208. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
  209. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
  210. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
  211. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
  212. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
  213. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
  214. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
  215. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
  216. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
  217. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
  218. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
  219. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
  220. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
  221. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
  222. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
  223. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
  224. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
  225. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
  226. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
  227. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
  228. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
  229. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
  230. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
  231. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
  232. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +8 -0
  233. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
  234. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
  235. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  236. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
  237. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +25 -0
  238. data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +24 -0
  239. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
  240. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
  241. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
  242. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
  243. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +9 -0
  244. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +21 -0
  245. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
  246. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
  247. data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
  248. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +44 -0
  249. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
  250. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +30 -0
  251. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
  252. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +55 -0
  253. data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +13 -0
  254. data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +20 -0
  255. data/app/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
  256. data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
  257. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -0
  258. data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
  259. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
  260. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
  261. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
  262. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
  263. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
  264. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  265. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  266. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
  267. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
  268. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  269. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  270. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
  271. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
  272. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
  273. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  274. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  275. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
  276. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
  277. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  278. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
  279. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
  280. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  281. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
  282. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
  283. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
  284. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
  285. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  286. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
  287. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
  288. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  289. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
  290. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
  291. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
  292. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
  293. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
  294. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  295. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  296. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  297. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  298. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
  299. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
  300. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  301. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
  302. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
  303. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
  304. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
  305. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  306. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
  307. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
  308. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
  309. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
  310. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  311. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
  312. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  313. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
  314. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
  315. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  316. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
  317. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
  318. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
  319. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
  320. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
  321. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +7 -0
  322. data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
  323. data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
  324. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
  325. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  326. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +91 -0
  327. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
  328. data/app/assets/javascripts/ckeditor/styles.js +137 -0
  329. data/app/assets/javascripts/releaf/include/remote_validator.js +1 -1
  330. data/app/assets/javascripts/releaf/include/store_settings.js +2 -2
  331. data/app/assets/javascripts/releaf/include/url_builder.js +130 -130
  332. data/app/assets/stylesheets/ckeditor/contents.css +208 -0
  333. data/app/assets/stylesheets/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
  334. data/app/assets/stylesheets/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
  335. data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
  336. data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
  337. data/app/assets/stylesheets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
  338. data/app/assets/stylesheets/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
  339. data/app/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  340. data/app/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
  341. data/app/assets/stylesheets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +43 -0
  342. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog.css +5 -0
  343. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
  344. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
  345. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
  346. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor.css +5 -0
  347. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
  348. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
  349. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
  350. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
  351. data/app/builders/releaf/builders.rb +4 -1
  352. data/app/builders/releaf/builders/form_builder/associations.rb +1 -1
  353. data/app/builders/releaf/builders/page/layout_builder.rb +1 -1
  354. data/app/builders/releaf/builders/pagination_builder.rb +1 -1
  355. data/app/controllers/releaf/action_controller.rb +2 -2
  356. data/app/controllers/releaf/root_controller.rb +9 -7
  357. data/app/lib/releaf/search.rb +5 -18
  358. data/app/models/releaf/settings.rb +1 -1
  359. data/app/views/releaf/action/create_releaf_richtext_attachment.haml +2 -1
  360. data/lib/generators/dummy/install_generator.rb +2 -1
  361. data/lib/generators/dummy/templates/assets/config/manifest.js +3 -0
  362. data/lib/generators/dummy/templates/controllers/application_controller.rb +1 -1
  363. data/lib/generators/dummy/templates/migrations/create_authors.rb +1 -1
  364. data/lib/generators/dummy/templates/migrations/create_banner_groups.rb +1 -1
  365. data/lib/generators/dummy/templates/migrations/create_banner_pages.rb +2 -2
  366. data/lib/generators/dummy/templates/migrations/create_banners.rb +2 -2
  367. data/lib/generators/dummy/templates/migrations/create_book_sequels.rb +1 -1
  368. data/lib/generators/dummy/templates/migrations/create_books.rb +1 -1
  369. data/lib/generators/dummy/templates/migrations/create_bundles.rb +1 -1
  370. data/lib/generators/dummy/templates/migrations/create_chapters.rb +1 -1
  371. data/lib/generators/dummy/templates/migrations/create_home_pages.rb +1 -1
  372. data/lib/generators/dummy/templates/migrations/create_node_extra_fields.rb +1 -1
  373. data/lib/generators/dummy/templates/migrations/create_other_nodes.rb +1 -1
  374. data/lib/generators/dummy/templates/migrations/create_publishers.rb +1 -1
  375. data/lib/generators/dummy/templates/migrations/create_text_pages.rb +1 -1
  376. data/lib/generators/dummy/templates/models/author.rb +1 -1
  377. data/lib/generators/dummy/templates/models/banner.rb +1 -1
  378. data/lib/generators/dummy/templates/models/banner_group.rb +1 -1
  379. data/lib/generators/dummy/templates/models/book.rb +1 -1
  380. data/lib/generators/releaf/templates/migrations/create_releaf_nodes.rb +1 -1
  381. data/lib/generators/releaf/templates/migrations/create_releaf_permissions.rb +1 -1
  382. data/lib/generators/releaf/templates/migrations/create_releaf_richtext_attachments.rb +1 -1
  383. data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +1 -1
  384. data/lib/generators/releaf/templates/migrations/create_releaf_settings.rb +1 -1
  385. data/lib/generators/releaf/templates/migrations/create_releaf_translations.rb +1 -1
  386. data/lib/generators/releaf/templates/migrations/create_releaf_users.rb +1 -1
  387. data/lib/releaf/engine.rb +2 -3
  388. data/spec/builders/releaf/builders/association_reflector_spec.rb +1 -1
  389. data/spec/builders/releaf/builders/base_spec.rb +1 -1
  390. data/spec/builders/releaf/builders/collection_spec.rb +1 -1
  391. data/spec/builders/releaf/builders/confirm_destroy_dialog_builder_spec.rb +1 -1
  392. data/spec/builders/releaf/builders/confirm_dialog_builder_spec.rb +1 -1
  393. data/spec/builders/releaf/builders/edit_builder_spec.rb +4 -4
  394. data/spec/builders/releaf/builders/form_builder/associations_spec.rb +1 -1
  395. data/spec/builders/releaf/builders/form_builder/date_fields_spec.rb +1 -1
  396. data/spec/builders/releaf/builders/form_builder/i18n_fields_spec.rb +1 -1
  397. data/spec/builders/releaf/builders/form_builder/label_spec.rb +1 -1
  398. data/spec/builders/releaf/builders/form_builder/number_fields_spec.rb +1 -1
  399. data/spec/builders/releaf/builders/form_builder_spec.rb +1 -1
  400. data/spec/builders/releaf/builders/index_builder_spec.rb +1 -1
  401. data/spec/builders/releaf/builders/page/header_builder_spec.rb +3 -2
  402. data/spec/builders/releaf/builders/page/layout_builder_spec.rb +1 -1
  403. data/spec/builders/releaf/builders/page/menu_builder_spec.rb +1 -1
  404. data/spec/builders/releaf/builders/pagination_builder_spec.rb +9 -9
  405. data/spec/builders/releaf/builders/resource_dialog_spec.rb +1 -1
  406. data/spec/builders/releaf/builders/resource_view_spec.rb +1 -1
  407. data/spec/builders/releaf/builders/table_builder_spec.rb +1 -1
  408. data/spec/builders/releaf/builders/toolbox_builder_spec.rb +1 -1
  409. data/spec/builders/releaf/builders/toolbox_spec.rb +1 -1
  410. data/spec/builders/releaf/builders/view_spec.rb +1 -1
  411. data/spec/builders/releaf/builders_spec.rb +10 -0
  412. data/spec/builders/releaf/settings/form_builder_spec.rb +1 -1
  413. data/spec/builders/releaf/settings/table_builder_spec.rb +1 -1
  414. data/spec/controllers/concerns/releaf/richtext_attachments_spec.rb +2 -2
  415. data/spec/controllers/releaf/action_controller_spec.rb +25 -25
  416. data/spec/controllers/releaf/root_controller_spec.rb +3 -2
  417. data/spec/controllers/releaf/settings_controller_spec.rb +2 -2
  418. data/spec/error_hash_builder_spec.rb +1 -1
  419. data/spec/features/ajaxbox_spec.rb +3 -3
  420. data/spec/features/breadcrumbs_spec.rb +2 -2
  421. data/spec/features/edit_actions_spec.rb +4 -4
  422. data/spec/features/index_actions_spec.rb +5 -4
  423. data/spec/features/richtext_spec.rb +1 -1
  424. data/spec/features/search_spec.rb +5 -5
  425. data/spec/features/settings_spec.rb +3 -3
  426. data/spec/lib/releaf/responders_spec.rb +1 -0
  427. data/spec/lib/validation_error_codes_spec.rb +7 -7
  428. data/spec/misc/factories_spec.rb +1 -1
  429. data/spec/models/settings_spec.rb +12 -8
  430. metadata +429 -26
@@ -10,7 +10,7 @@ describe Releaf::Builders::Collection, type: :module do
10
10
  end
11
11
 
12
12
  it "it assigns template collection instance variable to instance 'collection' accessor on initialization" do
13
- template = CollectionTestHelper.new
13
+ template = CollectionTestHelper.new(ActionView::LookupContext.new(nil), {}, nil)
14
14
  template.instance_variable_set("@collection", "x")
15
15
  subject = CollectionIncluder.new(template)
16
16
  expect(subject.collection).to eq("x")
@@ -19,7 +19,7 @@ describe Releaf::Builders::ConfirmDestroyDialogBuilder, type: :class do
19
19
  end
20
20
  end
21
21
 
22
- let(:template){ ConfirmDestroyDialogTestHelper.new }
22
+ let(:template){ ConfirmDestroyDialogTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
23
23
  let(:object){ Book.new(id: 99, title: "book title") }
24
24
  let(:subject){ described_class.new(template) }
25
25
 
@@ -27,7 +27,7 @@ describe Releaf::Builders::ConfirmDialogBuilder, type: :class do
27
27
  def confirm_method; end
28
28
  end
29
29
 
30
- let(:template){ ConfirmDestroyDialogTestHelper.new }
30
+ let(:template){ ConfirmDestroyDialogTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
31
31
  let(:object){ Book.new(id: 99, title: "book title") }
32
32
  let(:subject){ ConfirmDialogBuilderInheriter.new(template) }
33
33
 
@@ -9,7 +9,7 @@ describe Releaf::Builders::EditBuilder, type: :class do
9
9
  def protect_against_forgery?
10
10
  true
11
11
  end
12
- def form_authenticity_token
12
+ def form_authenticity_token(_)
13
13
  "xxx"
14
14
  end
15
15
 
@@ -18,7 +18,7 @@ describe Releaf::Builders::EditBuilder, type: :class do
18
18
  end
19
19
  end
20
20
 
21
- let(:template){ TranslationsEditBuilderTestHelper.new }
21
+ let(:template){ TranslationsEditBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
22
22
  let(:subject){ described_class.new(template) }
23
23
  let(:controller){ Releaf::ActionController.new }
24
24
  let(:resource){ Book.new }
@@ -38,7 +38,7 @@ describe Releaf::Builders::EditBuilder, type: :class do
38
38
  end
39
39
 
40
40
  it "returns section with index url preserver and section blocks" do
41
- expect(subject.section_content).to eq('<form class="new_book" id="new_book" action="xxx" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="yyy" value="xxx" />_index_path__section__blocks_</form>')
41
+ expect(subject.section_content).to eq('<form class="new_book" id="new_book" action="xxx" accept-charset="UTF-8" method="post"><input type="hidden" name="yyy" value="xxx" />_index_path__section__blocks_</form>')
42
42
  end
43
43
 
44
44
  it "assigns form instance to builder" do
@@ -127,7 +127,7 @@ describe Releaf::Builders::EditBuilder, type: :class do
127
127
 
128
128
  describe "#create_another_available?" do
129
129
  context "when editing an existing record" do
130
- let(:resource){ FactoryGirl.create(:book) }
130
+ let(:resource){ FactoryBot.create(:book) }
131
131
 
132
132
  context "when controller has create_another feature enabled" do
133
133
  it "returns false" do
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder::Associations, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ Releaf::Builders::FormBuilder.new(:book, object, template, {}) }
13
13
 
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder::DateFields, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ Releaf::Builders::FormBuilder.new(:book, object, template, {}) }
13
13
 
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder::I18nFields, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ Releaf::Builders::FormBuilder.new(:book, object, template, {}) }
13
13
 
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder::Label, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ Releaf::Builders::FormBuilder.new(:book, object, template, {}) }
13
13
 
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder::NumberFields, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ Releaf::Builders::FormBuilder.new(:book, object, template, {}) }
13
13
 
@@ -7,7 +7,7 @@ describe Releaf::Builders::FormBuilder, type: :class do
7
7
  include FontAwesome::Rails::IconHelper
8
8
  end
9
9
 
10
- let(:template){ FormBuilderTestHelper.new }
10
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
  let(:object){ Book.new }
12
12
  let(:subject){ described_class.new(:book, object, template, {}) }
13
13
  let(:normalized_fields){
@@ -10,7 +10,7 @@ describe Releaf::Builders::IndexBuilder, type: :class do
10
10
  end
11
11
  end
12
12
 
13
- let(:template){ TranslationsIndexBuilderTestHelper.new }
13
+ let(:template){ TranslationsIndexBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
14
14
  let(:subject){ described_class.new(template) }
15
15
  let(:collection){ Book.page(1).per_page(2) }
16
16
 
@@ -19,7 +19,7 @@ describe Releaf::Builders::Page::HeaderBuilder, type: :class do
19
19
  end
20
20
 
21
21
  subject { described_class.new(template) }
22
- let(:template){ PageHeaderBuilderTestHelper.new }
22
+ let(:template){ PageHeaderBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
23
23
 
24
24
  describe "#output" do
25
25
  it "returns safely joined items" do
@@ -40,7 +40,8 @@ describe Releaf::Builders::Page::HeaderBuilder, type: :class do
40
40
  allow(subject).to receive(:home_url).and_return("www.xxx")
41
41
  allow(subject).to receive(:home_text).and_return("Rrr")
42
42
  allow(subject).to receive(:home_image_path).and_return("releaf/foo.png")
43
- content = '<a class="home" href="www.xxx"><img alt="Rrr" src="/images/releaf/foo.png" /></a>'
43
+ allow(subject).to receive(:image_tag).with("releaf/foo.png", alt: "Rrr").and_return('IMG')
44
+ content = '<a class="home" href="www.xxx">IMG</a>'
44
45
  expect(subject.home_link).to eq(content)
45
46
  end
46
47
  end
@@ -32,7 +32,7 @@ describe Releaf::Builders::Page::LayoutBuilder, type: :class do
32
32
  end
33
33
 
34
34
  subject { described_class.new(template) }
35
- let(:template){ PageHeaderBuilderTestHelper.new }
35
+ let(:template){ PageHeaderBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
36
36
 
37
37
  describe "#controller_classes" do
38
38
  it "returns array of ignorable ancester classes" do
@@ -6,7 +6,7 @@ describe Releaf::Builders::Page::MenuBuilder, type: :class do
6
6
  end
7
7
 
8
8
  let(:controller){ Releaf::ActionController.new }
9
- let(:template){ MenuBuilderTestHelper.new }
9
+ let(:template){ MenuBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
10
10
  let(:group_item){ Releaf::ControllerGroupDefinition.new(name: "_group_name", items: []) }
11
11
  let(:controller_item){ Releaf::ControllerDefinition.new(name: "y", controller: "_controller_") }
12
12
  subject { described_class.new(template) }
@@ -8,12 +8,12 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
8
8
  include FontAwesome::Rails::IconHelper
9
9
  end
10
10
 
11
- let(:template){ PaginationTestView.new }
11
+ let(:template){ PaginationTestView.new(ActionView::LookupContext.new(nil), {}, nil) }
12
12
 
13
13
  let(:items_per_page) { 3 }
14
14
  let(:current_page_number) { 1 }
15
15
  let(:collection){ Book.page(current_page_number).per_page(items_per_page) }
16
- let(:params){ { search: "xxx"} }
16
+ let(:params){ ActionController::Parameters.new(search: "xxx") }
17
17
  let(:subject){ described_class.new(template, collection: collection, params: params ) }
18
18
 
19
19
  before do |example|
@@ -50,7 +50,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
50
50
 
51
51
  context "when collection has less entries than allowed on one page" do
52
52
  before do
53
- FactoryGirl.create( :book )
53
+ create( :book )
54
54
  end
55
55
 
56
56
  it "returns nil" do
@@ -63,7 +63,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
63
63
  context "when collection has exactly the number of entries that fits on one page" do
64
64
  before do
65
65
  items_per_page.times do
66
- FactoryGirl.create( :book )
66
+ create( :book )
67
67
  end
68
68
  end
69
69
 
@@ -78,7 +78,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
78
78
  context "when collection has more than one page" do
79
79
  before do
80
80
  (items_per_page + 1).times do
81
- FactoryGirl.create( :book )
81
+ create( :book )
82
82
  end
83
83
  end
84
84
 
@@ -108,7 +108,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
108
108
  it "returns pagination buttons and select with options" do
109
109
 
110
110
  14.times do
111
- FactoryGirl.create :book
111
+ create :book
112
112
  end
113
113
 
114
114
  expect(subject.pagination_block).to match_html %Q[
@@ -183,7 +183,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
183
183
  it "returns a button with correct class and rel attributes and a href pointing to the offset page" do
184
184
 
185
185
  5.times do
186
- FactoryGirl.create(:book)
186
+ create(:book)
187
187
  end
188
188
 
189
189
  expect(subject.page_button( 1, 'foo', 'foo-icon' )).to match_html %Q[
@@ -277,7 +277,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
277
277
  describe "#page_url", stub_url_for: false do
278
278
 
279
279
  it "calls url_for on template with added page number param" do
280
- expect(template).to receive(:url_for).with( search: "xxx", page: 3).and_return("ok")
280
+ expect(template).to receive(:url_for).with(ActionController::Parameters.new(search: "xxx", page: 3).permit!).and_return("ok")
281
281
  expect(subject.page_url(3)).to eq "ok"
282
282
  end
283
283
 
@@ -317,7 +317,7 @@ describe Releaf::Builders::PaginationBuilder, type: :class do
317
317
  describe "#page_label" do
318
318
 
319
319
  before do
320
- 14.times { FactoryGirl.create :book }
320
+ 14.times { create :book }
321
321
  end
322
322
 
323
323
  it "returns a string with the numbers of first and last items in page" do
@@ -11,7 +11,7 @@ describe Releaf::Builders::ResourceDialog, type: :class do
11
11
  end
12
12
 
13
13
  subject { UnitTestDialogBuilder.new(template) }
14
- let(:template){ DialogTestHelper.new }
14
+ let(:template){ DialogTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
15
15
 
16
16
  describe "#dialog?" do
17
17
  it "always returns true" do
@@ -10,7 +10,7 @@ describe Releaf::Builders::ResourceView, type: :class do
10
10
  end
11
11
 
12
12
  let(:described_class){ ResourceViewIncluder }
13
- let(:template){ ResourceViewTestHelper.new }
13
+ let(:template){ ResourceViewTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
14
14
  let(:subject){ described_class.new(template) }
15
15
  let(:controller){ Releaf::ActionController.new }
16
16
  let(:resource){ Book.new }
@@ -13,7 +13,7 @@ describe Releaf::Builders::TableBuilder, type: :class do
13
13
  def custom_title(resource); end
14
14
  end
15
15
 
16
- let(:template){ TableBuilderTestHelper.new }
16
+ let(:template){ TableBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
17
17
  let(:resource_class){ Book }
18
18
  let(:resource){ resource_class.new(id: 77, title: "Life of Brian") }
19
19
  let(:collection){ Book.all }
@@ -7,7 +7,7 @@ describe Releaf::Builders::ToolboxBuilder, type: :class do
7
7
  end
8
8
 
9
9
  subject { described_class.new(template) }
10
- let(:template){ ToolboxBuilderTestHelper.new }
10
+ let(:template){ ToolboxBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
11
11
 
12
12
  it "includes Releaf::Builders::Base" do
13
13
  expect(described_class.ancestors).to include(Releaf::Builders::Base)
@@ -11,7 +11,7 @@ describe Releaf::Builders::Toolbox, type: :class do
11
11
  end
12
12
 
13
13
  subject { UnitTestToolboxBuilder.new(template) }
14
- let(:template){ ToolboxTestTemplate.new }
14
+ let(:template){ ToolboxTestTemplate.new(ActionView::LookupContext.new(nil), {}, nil) }
15
15
  let(:resource){ Releaf::Permissions::User.new }
16
16
 
17
17
  describe "#toolbox" do
@@ -12,7 +12,7 @@ describe Releaf::Builders::View, type: :class do
12
12
  end
13
13
 
14
14
  subject { ViewTestIncluder.new(template) }
15
- let(:template){ ViewTestHelper.new }
15
+ let(:template){ ViewTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
16
16
 
17
17
  it "includes Releaf::Builders::Base" do
18
18
  expect(described_class.ancestors).to include(Releaf::Builders::Base)
@@ -125,6 +125,16 @@ describe Releaf::Builders, type: :class do
125
125
  end
126
126
  end
127
127
 
128
+ describe ".constant_name_error?" do
129
+ it "returns true when error matches given mapping" do
130
+ expect(described_class.constant_name_error?("Caused by NameError: uninitialized constant #<Class:0x00007fc1b79e8448>::AnotherFormBuilder", "Releaf::Builders::AnotherFormBuilder")).to be true
131
+ end
132
+
133
+ it "returns fales when error doesnt match given mapping" do
134
+ expect(described_class.constant_name_error?("Caused by NameError: uninitialized something", "Releaf::Builders::AnotherFormBuilder")).to be false
135
+ end
136
+ end
137
+
128
138
  describe ".inherited_builder_scopes" do
129
139
  it "returns inherited classes except Object and BasicObject" do
130
140
  expect(described_class.inherited_builder_scopes).to eq(["Releaf::Builders"])
@@ -3,7 +3,7 @@ require "rails_helper"
3
3
  describe Releaf::Settings::FormBuilder, type: :class do
4
4
  class FormBuilderTestHelper < ActionView::Base; end
5
5
  let(:resource){ Releaf::Settings.new }
6
- let(:template){ FormBuilderTestHelper.new }
6
+ let(:template){ FormBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
7
7
  let(:subject){ described_class.new(:resource, resource, template, {}) }
8
8
 
9
9
  describe "#field_names" do
@@ -2,7 +2,7 @@ require "rails_helper"
2
2
 
3
3
  describe Releaf::Settings::TableBuilder, type: :class do
4
4
  class TableBuilderTestHelper < ActionView::Base; end
5
- let(:template){ TableBuilderTestHelper.new }
5
+ let(:template){ TableBuilderTestHelper.new(ActionView::LookupContext.new(nil), {}, nil) }
6
6
  let(:resource_class){ Releaf::Settings }
7
7
  let(:subject){ described_class.new([], resource_class, template, {}) }
8
8
 
@@ -10,14 +10,14 @@ describe Admin::NodesController, type: :controller do
10
10
 
11
11
  context "when file is uploaded" do
12
12
  it "renders 'create_releaf_richtext_attachment'" do
13
- post :create_releaf_richtext_attachment, upload: file
13
+ post :create_releaf_richtext_attachment, params: {upload: file}
14
14
  expect( response ).to be_successful
15
15
  expect( response ).to render_template('create_releaf_richtext_attachment')
16
16
  end
17
17
 
18
18
  it "creates attachment" do
19
19
  expect do
20
- post :create_releaf_richtext_attachment, upload: file
20
+ post :create_releaf_richtext_attachment, params: {upload: file}
21
21
  end.to change { Releaf::RichtextAttachment.count }.by(1)
22
22
  end
23
23
  end
@@ -58,7 +58,7 @@ describe Releaf::ActionController do
58
58
 
59
59
  describe "#page_title" do
60
60
  before do
61
- allow(Rails.application.class).to receive(:parent_name).and_return("DummyApp")
61
+ allow(Rails.application.class).to receive(:module_parent_name).and_return("DummyApp")
62
62
  end
63
63
 
64
64
  context "when controller definition exists" do
@@ -169,14 +169,14 @@ end
169
169
  # have no extra methods or overrides
170
170
  describe Admin::AuthorsController do
171
171
  before do
172
- sign_in FactoryGirl.create(:user)
172
+ sign_in FactoryBot.create(:user)
173
173
  end
174
174
 
175
175
  describe "#index_path" do
176
176
  context "when action is other than :index" do
177
177
  context "when params have valid `index_path` value" do
178
178
  it "returns params 'index_path'" do
179
- get :new, index_path: "xxxxxxxx"
179
+ get :new, params: {index_path: "xxxxxxxx"}
180
180
  allow(subject).to receive(:valid_index_path?).with("xxxxxxxx").and_return(true)
181
181
  expect(subject.index_path).to eq("xxxxxxxx")
182
182
  end
@@ -184,7 +184,7 @@ describe Admin::AuthorsController do
184
184
 
185
185
  context "when params have invalid `index_path` value" do
186
186
  it "returns index action path" do
187
- get :new, index_path: "xxxxxxxx"
187
+ get :new, params: {index_path: "xxxxxxxx"}
188
188
  allow(subject).to receive(:valid_index_path?).with("xxxxxxxx").and_return(false)
189
189
  expect(subject.index_path).to eq("/admin/authors")
190
190
  end
@@ -228,7 +228,7 @@ describe Admin::AuthorsController do
228
228
 
229
229
  describe "#current_path" do
230
230
  it "returns current url without `ajax` param" do
231
- get :index, ajax: 1, search: "something", page: 1
231
+ get :index, params: {ajax: 1, search: "something", page: 1}
232
232
  expect(subject.current_path).to eq("/admin/authors?page=1&search=something")
233
233
  end
234
234
 
@@ -271,15 +271,15 @@ describe Admin::AuthorsController do
271
271
 
272
272
  context "when `ajax` params exists within params" do
273
273
  it "assigns `true` to @_ajax instance variable" do
274
- expect{ get :index, ajax: 1 }.to change{ subject.instance_variable_get("@_ajax") }.from(nil).to(true)
274
+ expect{ get :index, params: {ajax: 1} }.to change{ subject.instance_variable_get("@_ajax") }.from(nil).to(true)
275
275
  end
276
276
 
277
277
  it "removes ajax from `params`" do
278
- expect{ get :index, ajax: 1 }.to_not change{ subject.params[:ajax] }.from(nil)
278
+ expect{ get :index, params: {ajax: 1} }.to_not change{ subject.params[:ajax] }.from(nil)
279
279
  end
280
280
 
281
281
  it "removes ajax from `request.query_parameters`" do
282
- expect{ get :index, ajax: 1 }.to_not change{ subject.request.query_parameters[:ajax] }.from(nil)
282
+ expect{ get :index, params: {ajax: 1} }.to_not change{ subject.request.query_parameters[:ajax] }.from(nil)
283
283
  end
284
284
  end
285
285
  end
@@ -290,7 +290,7 @@ describe Admin::AuthorsController do
290
290
  context "when show feature is available" do
291
291
  it "assigns all resources to @collection" do
292
292
  allow(subject).to receive(:feature_available?).with(:show).and_return(true)
293
- get :show, id: author
293
+ get :show, params: {id: author}
294
294
  expect(assigns(:resource)).to eq(author)
295
295
  end
296
296
  end
@@ -299,7 +299,7 @@ describe Admin::AuthorsController do
299
299
  it "does assign resource" do
300
300
  allow(subject).to receive(:feature_available?).and_call_original
301
301
  allow(subject).to receive(:feature_available?).with(:show).and_return(false)
302
- get :show, id: author
302
+ get :show, params: {id: author}
303
303
  expect(assigns(:resource)).to be nil
304
304
  end
305
305
  end
@@ -308,13 +308,13 @@ describe Admin::AuthorsController do
308
308
  describe "GET index" do
309
309
  before do
310
310
  21.times do |i|
311
- FactoryGirl.create(:author)
311
+ FactoryBot.create(:author)
312
312
  end
313
313
  end
314
314
 
315
315
  context "when resources_per_page is nil" do
316
316
  it "assigns all resources to @collection" do
317
- get :index, show_all: 1
317
+ get :index, params: {show_all: 1}
318
318
  expect(assigns(:collection).is_a?(ActiveRecord::Relation)).to be true
319
319
  expect(assigns(:collection).size).to eq(21)
320
320
  end
@@ -331,13 +331,13 @@ describe Admin::AuthorsController do
331
331
 
332
332
  describe "DELETE #destroy" do
333
333
  before do
334
- @author = FactoryGirl.create(:author)
335
- FactoryGirl.create(:book, title: "The book", author: @author)
336
- FactoryGirl.create(:book, title: "Almost the book", author: @author)
334
+ @author = FactoryBot.create(:author)
335
+ FactoryBot.create(:book, title: "The book", author: @author)
336
+ FactoryBot.create(:book, title: "Almost the book", author: @author)
337
337
  end
338
338
 
339
339
  it "creates flash error with message" do
340
- delete :destroy, id: @author
340
+ delete :destroy, params: {id: @author}
341
341
  expect(flash["error"]).to eq({"id" => "resource_status", "message" => "Cant destroy, because relations exists"})
342
342
  end
343
343
  end
@@ -345,7 +345,7 @@ end
345
345
 
346
346
  describe Admin::BooksController do
347
347
  before do
348
- sign_in FactoryGirl.create(:user)
348
+ sign_in FactoryBot.create(:user)
349
349
  @breadcrumbs_base = [
350
350
  {name: I18n.t('admin/books'), url: admin_books_path}
351
351
  ]
@@ -353,28 +353,28 @@ describe Admin::BooksController do
353
353
 
354
354
  describe "GET #index" do
355
355
  before do
356
- FactoryGirl.create(:book, title: "great one")
357
- FactoryGirl.create(:book, title: "bad one")
358
- FactoryGirl.create(:book, title: "average third")
356
+ FactoryBot.create(:book, title: "great one")
357
+ FactoryBot.create(:book, title: "bad one")
358
+ FactoryBot.create(:book, title: "average third")
359
359
  end
360
360
 
361
361
  context "when empty search string given" do
362
362
  it "shows all records" do
363
- get :index, search: ""
363
+ get :index, params: {search: ""}
364
364
  expect(assigns(:collection).count).to eq(3)
365
365
  end
366
366
  end
367
367
 
368
368
  context "when search string with multiple words given" do
369
369
  it "searches by given string" do
370
- get :index, search: "one grea"
370
+ get :index, params: {search: "one grea"}
371
371
  expect(assigns(:collection).count).to eq(1)
372
372
  end
373
373
  end
374
374
 
375
375
  context "when search string given" do
376
376
  it "searches by given string" do
377
- get :index, search: "great"
377
+ get :index, params: {search: "great"}
378
378
  expect(assigns(:collection).count).to eq(1)
379
379
  end
380
380
  end
@@ -407,14 +407,14 @@ describe Admin::BooksController do
407
407
  end
408
408
 
409
409
  it "assigns the requested record to @resource" do
410
- get :edit, id: @resource
410
+ get :edit, params: {id: @resource}
411
411
 
412
412
  expect(assigns(:resource)).to eq(@resource)
413
413
  end
414
414
 
415
415
  it "assigns breadcrumb for resource" do
416
416
  allow(Releaf::ResourceBase).to receive(:title).with(@resource).and_return("xxx")
417
- get :edit, id: @resource
417
+ get :edit, params: {id: @resource}
418
418
  breadcrumbs = @breadcrumbs_base + [{name: "xxx", url: edit_admin_book_path(@resource.id)}]
419
419
 
420
420
  expect(assigns(:breadcrumbs)).to eq(breadcrumbs)