releaf-core 2.1.1 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (356) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ckeditor/config.js +4 -10
  3. data/app/lib/releaf/action_controller/exceptions.rb +2 -2
  4. data/app/lib/releaf/responders.rb +0 -2
  5. data/app/models/releaf/settings.rb +154 -1
  6. data/app/views/releaf/error_pages/{access_denied.html.haml → forbidden.html.haml} +0 -0
  7. data/lib/releaf/root/settings_manager.rb +9 -1
  8. data/lib/releaf-core.rb +0 -1
  9. metadata +12 -359
  10. data/app/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  11. data/app/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  12. data/app/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
  13. data/app/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  14. data/app/assets/images/ckeditor/plugins/icons.png +0 -0
  15. data/app/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  16. data/app/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
  17. data/app/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
  18. data/app/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  19. data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  20. data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  21. data/app/assets/images/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  22. data/app/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
  23. data/app/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  24. data/app/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  25. data/app/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  26. data/app/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  27. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  28. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  29. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  30. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  31. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  32. data/app/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  33. data/app/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  34. data/app/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  35. data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  36. data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  37. data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  38. data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  39. data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  40. data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  41. data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  42. data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  43. data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  44. data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  45. data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  46. data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  47. data/app/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  48. data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  49. data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  50. data/app/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  51. data/app/assets/images/ckeditor/plugins/smiley/images/envelope.png +0 -0
  52. data/app/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
  53. data/app/assets/images/ckeditor/plugins/smiley/images/heart.png +0 -0
  54. data/app/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  55. data/app/assets/images/ckeditor/plugins/smiley/images/kiss.png +0 -0
  56. data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  57. data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  58. data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  59. data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  60. data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  61. data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  62. data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  63. data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  64. data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  65. data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  66. data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  67. data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  68. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  69. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  70. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  71. data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  72. data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  73. data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  74. data/app/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  75. data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  76. data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  77. data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  78. data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  79. data/app/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  80. data/app/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  81. data/app/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  82. data/app/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
  83. data/app/assets/images/ckeditor/skins/moono-lisa/icons.png +0 -0
  84. data/app/assets/images/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  85. data/app/assets/images/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  86. data/app/assets/images/ckeditor/skins/moono-lisa/images/close.png +0 -0
  87. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  88. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  89. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  90. data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  91. data/app/assets/images/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  92. data/app/assets/images/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  93. data/app/assets/images/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  94. data/app/assets/images/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  95. data/app/assets/javascripts/ckeditor/CHANGES.md +0 -1637
  96. data/app/assets/javascripts/ckeditor/LICENSE.md +0 -1420
  97. data/app/assets/javascripts/ckeditor/README.md +0 -39
  98. data/app/assets/javascripts/ckeditor/basepath.js.erb +0 -6
  99. data/app/assets/javascripts/ckeditor/build-config.js +0 -190
  100. data/app/assets/javascripts/ckeditor/ckeditor.js +0 -1331
  101. data/app/assets/javascripts/ckeditor/jquery.js +0 -10
  102. data/app/assets/javascripts/ckeditor/lang/af.js +0 -5
  103. data/app/assets/javascripts/ckeditor/lang/ar.js +0 -5
  104. data/app/assets/javascripts/ckeditor/lang/az.js +0 -5
  105. data/app/assets/javascripts/ckeditor/lang/bg.js +0 -5
  106. data/app/assets/javascripts/ckeditor/lang/bn.js +0 -5
  107. data/app/assets/javascripts/ckeditor/lang/bs.js +0 -5
  108. data/app/assets/javascripts/ckeditor/lang/ca.js +0 -5
  109. data/app/assets/javascripts/ckeditor/lang/cs.js +0 -5
  110. data/app/assets/javascripts/ckeditor/lang/cy.js +0 -5
  111. data/app/assets/javascripts/ckeditor/lang/da.js +0 -5
  112. data/app/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
  113. data/app/assets/javascripts/ckeditor/lang/de.js +0 -5
  114. data/app/assets/javascripts/ckeditor/lang/el.js +0 -5
  115. data/app/assets/javascripts/ckeditor/lang/en-au.js +0 -5
  116. data/app/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
  117. data/app/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
  118. data/app/assets/javascripts/ckeditor/lang/en.js +0 -5
  119. data/app/assets/javascripts/ckeditor/lang/eo.js +0 -5
  120. data/app/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
  121. data/app/assets/javascripts/ckeditor/lang/es.js +0 -5
  122. data/app/assets/javascripts/ckeditor/lang/et.js +0 -5
  123. data/app/assets/javascripts/ckeditor/lang/eu.js +0 -5
  124. data/app/assets/javascripts/ckeditor/lang/fa.js +0 -5
  125. data/app/assets/javascripts/ckeditor/lang/fi.js +0 -5
  126. data/app/assets/javascripts/ckeditor/lang/fo.js +0 -5
  127. data/app/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
  128. data/app/assets/javascripts/ckeditor/lang/fr.js +0 -5
  129. data/app/assets/javascripts/ckeditor/lang/gl.js +0 -5
  130. data/app/assets/javascripts/ckeditor/lang/gu.js +0 -5
  131. data/app/assets/javascripts/ckeditor/lang/he.js +0 -5
  132. data/app/assets/javascripts/ckeditor/lang/hi.js +0 -5
  133. data/app/assets/javascripts/ckeditor/lang/hr.js +0 -5
  134. data/app/assets/javascripts/ckeditor/lang/hu.js +0 -5
  135. data/app/assets/javascripts/ckeditor/lang/id.js +0 -5
  136. data/app/assets/javascripts/ckeditor/lang/is.js +0 -5
  137. data/app/assets/javascripts/ckeditor/lang/it.js +0 -5
  138. data/app/assets/javascripts/ckeditor/lang/ja.js +0 -5
  139. data/app/assets/javascripts/ckeditor/lang/ka.js +0 -5
  140. data/app/assets/javascripts/ckeditor/lang/km.js +0 -5
  141. data/app/assets/javascripts/ckeditor/lang/ko.js +0 -5
  142. data/app/assets/javascripts/ckeditor/lang/ku.js +0 -5
  143. data/app/assets/javascripts/ckeditor/lang/lt.js +0 -5
  144. data/app/assets/javascripts/ckeditor/lang/lv.js +0 -5
  145. data/app/assets/javascripts/ckeditor/lang/mk.js +0 -5
  146. data/app/assets/javascripts/ckeditor/lang/mn.js +0 -5
  147. data/app/assets/javascripts/ckeditor/lang/ms.js +0 -5
  148. data/app/assets/javascripts/ckeditor/lang/nb.js +0 -5
  149. data/app/assets/javascripts/ckeditor/lang/nl.js +0 -5
  150. data/app/assets/javascripts/ckeditor/lang/no.js +0 -5
  151. data/app/assets/javascripts/ckeditor/lang/oc.js +0 -5
  152. data/app/assets/javascripts/ckeditor/lang/pl.js +0 -5
  153. data/app/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
  154. data/app/assets/javascripts/ckeditor/lang/pt.js +0 -5
  155. data/app/assets/javascripts/ckeditor/lang/ro.js +0 -5
  156. data/app/assets/javascripts/ckeditor/lang/ru.js +0 -5
  157. data/app/assets/javascripts/ckeditor/lang/si.js +0 -5
  158. data/app/assets/javascripts/ckeditor/lang/sk.js +0 -5
  159. data/app/assets/javascripts/ckeditor/lang/sl.js +0 -5
  160. data/app/assets/javascripts/ckeditor/lang/sq.js +0 -5
  161. data/app/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
  162. data/app/assets/javascripts/ckeditor/lang/sr.js +0 -5
  163. data/app/assets/javascripts/ckeditor/lang/sv.js +0 -5
  164. data/app/assets/javascripts/ckeditor/lang/th.js +0 -5
  165. data/app/assets/javascripts/ckeditor/lang/tr.js +0 -5
  166. data/app/assets/javascripts/ckeditor/lang/tt.js +0 -5
  167. data/app/assets/javascripts/ckeditor/lang/ug.js +0 -5
  168. data/app/assets/javascripts/ckeditor/lang/uk.js +0 -5
  169. data/app/assets/javascripts/ckeditor/lang/vi.js +0 -5
  170. data/app/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
  171. data/app/assets/javascripts/ckeditor/lang/zh.js +0 -5
  172. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
  173. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
  174. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
  175. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
  176. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
  177. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
  178. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
  179. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
  180. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
  181. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
  182. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -13
  183. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -13
  184. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +0 -11
  185. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
  186. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
  187. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -13
  188. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
  189. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
  190. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
  191. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
  192. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
  193. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
  194. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
  195. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
  196. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
  197. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
  198. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
  199. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
  200. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
  201. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
  202. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
  203. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
  204. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
  205. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
  206. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
  207. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
  208. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
  209. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
  210. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
  211. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
  212. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
  213. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
  214. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
  215. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
  216. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
  217. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
  218. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
  219. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
  220. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -12
  221. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
  222. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
  223. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
  224. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
  225. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -12
  226. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
  227. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
  228. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
  229. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
  230. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
  231. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
  232. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
  233. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
  234. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
  235. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
  236. data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
  237. data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -8
  238. data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -11
  239. data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
  240. data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  241. data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
  242. data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -25
  243. data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
  244. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
  245. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
  246. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
  247. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
  248. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -9
  249. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -21
  250. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
  251. data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
  252. data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  253. data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -44
  254. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
  255. data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -30
  256. data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
  257. data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -55
  258. data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -13
  259. data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
  260. data/app/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
  261. data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
  262. data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -32
  263. data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
  264. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
  265. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
  266. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
  267. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
  268. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
  269. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
  270. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
  271. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
  272. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
  273. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
  274. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
  275. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
  276. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
  277. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
  278. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
  279. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
  280. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
  281. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
  282. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
  283. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
  284. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
  285. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
  286. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
  287. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
  288. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
  289. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
  290. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
  291. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
  292. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
  293. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
  294. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
  295. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
  296. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
  297. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
  298. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
  299. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
  300. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
  301. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
  302. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
  303. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
  304. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
  305. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
  306. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
  307. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +0 -13
  308. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
  309. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
  310. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
  311. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
  312. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
  313. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
  314. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
  315. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
  316. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
  317. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
  318. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
  319. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
  320. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
  321. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
  322. data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
  323. data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
  324. data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -18
  325. data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
  326. data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -7
  327. data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
  328. data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
  329. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
  330. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  331. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -91
  332. data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
  333. data/app/assets/javascripts/ckeditor/styles.js +0 -137
  334. data/app/assets/javascripts/ckeditor-jquery.js +0 -3
  335. data/app/assets/stylesheets/ckeditor/contents.css +0 -208
  336. data/app/assets/stylesheets/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
  337. data/app/assets/stylesheets/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
  338. data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
  339. data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
  340. data/app/assets/stylesheets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
  341. data/app/assets/stylesheets/ckeditor/plugins/tableselection/styles/tableselection.css +0 -36
  342. data/app/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +0 -84
  343. data/app/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  344. data/app/assets/stylesheets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
  345. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog.css +0 -5
  346. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie.css +0 -5
  347. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie8.css +0 -5
  348. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_iequirks.css +0 -5
  349. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor.css +0 -5
  350. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_gecko.css +0 -5
  351. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie.css +0 -5
  352. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie8.css +0 -5
  353. data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_iequirks.css +0 -5
  354. data/app/lib/releaf/responders/access_denied_responder.rb +0 -9
  355. data/app/lib/releaf/responders/error_responder.rb +0 -9
  356. data/app/lib/releaf/responders/page_not_found_responder.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e433968eea67f1a5bf1a38732598a5a75564bd8a0175acb24ff2b6f2b7bbca6
4
- data.tar.gz: a812e881410e8de7d927c99512c46b22174e4689967daf9b7ee0b29a4b8af934
3
+ metadata.gz: faa9d0a6ff3255fb86e0b98bb23aa58ec88acbd010125ff1eb1a39c707454c67
4
+ data.tar.gz: d624883646f5d56b5b9261f9fb8e09f0e2a348235a5aef111725e15e501f0fc0
5
5
  SHA512:
6
- metadata.gz: 76f9fa3b888da36b90f5098ed43728979414f4762823d7d3e1c09113e5ae9e0d7ea0b641e1fd1fc1b20f908be3017866e351d8643b775b22d953a523141cf32b
7
- data.tar.gz: 3c6e17e2949ab440c275d73e92b054a8b40106fd24fec896782c713f1c63c2ff629727c104cc096275f8eaa018f8c3e61c27aac07f1bbe1cb02eaa7e002f0203
6
+ metadata.gz: 2da526978e85e75d245ec0006acd05ede0ef50ee7ab86ac8b2ddc8b7968efadeb93ee1c036c798171542a3beb8d491b30a1011edfc6039f96569423d62218059
7
+ data.tar.gz: 72c8729ab6d1cb96e1d975a7369091e5506f88923c11d5fd2411335d9f5ef334993ac1acef65cfbe945b4a9643078a9a59620f02113ad4d6338364a1b1f1e116
@@ -1,10 +1,4 @@
1
- /**
2
- * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- CKEDITOR.editorConfig = function( config ) {
7
- // Define changes to default configuration here. For example:
8
- // config.language = 'fr';
9
- // config.uiColor = '#AADC6E';
10
- };
1
+ CKEDITOR.editorConfig = function (config){
2
+ config.removePlugins = 'exportpdf'
3
+ true
4
+ }
@@ -7,10 +7,10 @@ module Releaf::ActionController::Exceptions
7
7
  end
8
8
 
9
9
  def page_not_found
10
- respond_with(nil, responder: action_responder(:page_not_found))
10
+ render "releaf/error_pages/page_not_found", status: :not_found, formats: :html
11
11
  end
12
12
 
13
13
  def access_denied
14
- respond_with(nil, responder: action_responder(:access_denied))
14
+ render "releaf/error_pages/forbidden", status: :forbidden, formats: :html
15
15
  end
16
16
  end
@@ -11,8 +11,6 @@ module Releaf::Responders
11
11
  update: Releaf::Responders::AfterSaveResponder,
12
12
  confirm_destroy: Releaf::Responders::ConfirmDestroyResponder,
13
13
  destroy: Releaf::Responders::DestroyResponder,
14
- access_denied: Releaf::Responders::AccessDeniedResponder,
15
- page_not_found: Releaf::Responders::PageNotFoundResponder,
16
14
  }
17
15
  end
18
16
 
@@ -1,4 +1,32 @@
1
- class Releaf::Settings < RailsSettings::Base
1
+ class Releaf::Settings < ActiveRecord::Base
2
+
3
+ self.table_name = table_name_prefix + "settings"
4
+
5
+ class SettingNotFound < RuntimeError; end
6
+
7
+ belongs_to :thing, polymorphic: true, optional: true
8
+
9
+ # get the value field, YAML decoded
10
+ def value
11
+ YAML.load(self[:value], permitted_classes: [DateTime, Time, Date]) if self[:value].present?
12
+ end
13
+
14
+ # set the value field, YAML encoded
15
+ def value=(new_value)
16
+ self[:value] = new_value.to_yaml
17
+ end
18
+
19
+ def rewrite_cache
20
+ Rails.cache.write(cache_key, value)
21
+ end
22
+
23
+ def expire_cache
24
+ Rails.cache.delete(cache_key)
25
+ end
26
+
27
+ def cache_key
28
+ self.class.cache_key(var, thing)
29
+ end
2
30
 
3
31
  scope :registered, -> { where(var: registered_keys, thing_type: nil, thing_id: nil).order(:var) }
4
32
 
@@ -36,4 +64,129 @@ class Releaf::Settings < RailsSettings::Base
36
64
  def self.supported_types
37
65
  [:boolean, :date, :time, :datetime, :integer, :float, :decimal, :email, :text, :textarea, :richtext]
38
66
  end
67
+
68
+ class << self
69
+ def cache_prefix(&block)
70
+ @cache_prefix = block
71
+ end
72
+
73
+ def cache_key(var_name, scope_object)
74
+ scope = ["rails_settings_cached"]
75
+ scope << @cache_prefix.call if @cache_prefix
76
+ scope << "#{scope_object.class.name}-#{scope_object.id}" if scope_object
77
+ scope << var_name.to_s
78
+ scope.join("/")
79
+ end
80
+
81
+ def [](key)
82
+ return super(key) unless rails_initialized?
83
+ val = Rails.cache.fetch(cache_key(key, @object)) do
84
+ super(key)
85
+ end
86
+ val
87
+ end
88
+
89
+ # set a setting value by [] notation
90
+ def []=(var_name, value)
91
+ super
92
+ Rails.cache.write(cache_key(var_name, @object), value)
93
+ value
94
+ end
95
+
96
+ # get or set a variable with the variable as the called method
97
+ # rubocop:disable Style/MethodMissing
98
+ def method_missing(method, *args)
99
+ method_name = method.to_s
100
+ super(method, *args)
101
+ rescue NoMethodError
102
+ # set a value for a variable
103
+ if method_name[-1] == "="
104
+ var_name = method_name.sub("=", "")
105
+ value = args.first
106
+ self[var_name] = value
107
+ else
108
+ # retrieve a value
109
+ self[method_name]
110
+ end
111
+ end
112
+
113
+ # destroy the specified settings record
114
+ def destroy(var_name)
115
+ var_name = var_name.to_s
116
+ obj = object(var_name)
117
+ raise SettingNotFound, "Setting variable \"#{var_name}\" not found" if obj.nil?
118
+
119
+ obj.destroy
120
+ true
121
+ end
122
+
123
+ # retrieve all settings as a hash (optionally starting with a given namespace)
124
+ def get_all(starting_with = nil)
125
+ vars = thing_scoped.select("var, value")
126
+ vars = vars.where("var LIKE '#{starting_with}%'") if starting_with
127
+ result = {}
128
+ vars.each { |record| result[record.var] = record.value }
129
+ result.reverse_merge!(default_settings(starting_with))
130
+ result.with_indifferent_access
131
+ end
132
+
133
+ def where(sql = nil)
134
+ vars = thing_scoped.where(sql) if sql
135
+ vars
136
+ end
137
+
138
+ # get a setting value by [] notation
139
+ def [](var_name)
140
+ val = object(var_name)
141
+ return val.value if val
142
+ end
143
+
144
+ # set a setting value by [] notation
145
+ def []=(var_name, value)
146
+ var_name = var_name.to_s
147
+
148
+ record = object(var_name) || thing_scoped.new(var: var_name)
149
+ record.value = value
150
+ record.save!
151
+
152
+ value
153
+ end
154
+
155
+ def merge!(var_name, hash_value)
156
+ raise ArgumentError unless hash_value.is_a?(Hash)
157
+
158
+ old_value = self[var_name] || {}
159
+ raise TypeError, "Existing value is not a hash, can't merge!" unless old_value.is_a?(Hash)
160
+
161
+ new_value = old_value.merge(hash_value)
162
+ self[var_name] = new_value if new_value != old_value
163
+
164
+ new_value
165
+ end
166
+
167
+ def object(var_name)
168
+ return nil unless table_exists?
169
+ thing_scoped.where(var: var_name.to_s).first
170
+ end
171
+
172
+ def thing_scoped
173
+ unscoped.where("thing_type is NULL and thing_id is NULL")
174
+ end
175
+
176
+ def source(filename)
177
+ Default.source(filename)
178
+ end
179
+
180
+ def rails_initialized?
181
+ Rails.application && Rails.application.initialized?
182
+ end
183
+
184
+ private
185
+
186
+ def default_settings(starting_with = nil)
187
+ return {} unless Default.enabled?
188
+ return Default.instance if starting_with.nil?
189
+ Default.instance.select { |key, _| key.to_s.start_with?(starting_with) }
190
+ end
191
+ end
39
192
  end
@@ -1,8 +1,16 @@
1
1
  module Releaf::Root
2
2
  class SettingsManager
3
+ CAST_MAP = {
4
+ "false" => false,
5
+ "true" => true,
6
+ }
3
7
 
4
8
  def self.read(controller:, key:)
5
- controller.send(:cookies)[key]
9
+ value = controller.send(:cookies)[key]
10
+
11
+ return CAST_MAP[value] if CAST_MAP.key? value
12
+
13
+ value
6
14
  end
7
15
 
8
16
  def self.write(controller:, key:, value:)
data/lib/releaf-core.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'rails-settings-cached'
2
1
  require 'ckeditor_rails'
3
2
  require 'will_paginate'
4
3
  require 'font-awesome-rails'