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.
- checksums.yaml +4 -4
- data/app/assets/config/releaf_core_manifest.js +3 -0
- data/app/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/images/ckeditor/plugins/icons.png +0 -0
- data/app/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/app/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/envelope.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/heart.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/kiss.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/images/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/icons.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/close.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- data/app/assets/images/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- data/app/assets/javascripts/ckeditor-jquery.js +3 -0
- data/app/assets/javascripts/ckeditor/CHANGES.md +1637 -0
- data/app/assets/javascripts/ckeditor/LICENSE.md +1420 -0
- data/app/assets/javascripts/ckeditor/README.md +39 -0
- data/app/assets/javascripts/ckeditor/basepath.js.erb +6 -0
- data/app/assets/javascripts/ckeditor/build-config.js +190 -0
- data/app/assets/javascripts/ckeditor/ckeditor.js +1331 -0
- data/app/assets/javascripts/ckeditor/config.js +10 -0
- data/app/assets/javascripts/ckeditor/jquery.js +10 -0
- data/app/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/az.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/de-ch.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/es-mx.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/id.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/oc.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/si.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sq.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/tt.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/app/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +25 -0
- data/app/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +24 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +44 -0
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +30 -0
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +55 -0
- data/app/assets/javascripts/ckeditor/plugins/preview/preview.html +13 -0
- data/app/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +20 -0
- data/app/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/app/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
- data/app/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +32 -0
- data/app/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +91 -0
- data/app/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/app/assets/javascripts/ckeditor/styles.js +137 -0
- data/app/assets/javascripts/releaf/include/remote_validator.js +1 -1
- data/app/assets/javascripts/releaf/include/store_settings.js +2 -2
- data/app/assets/javascripts/releaf/include/url_builder.js +130 -130
- data/app/assets/stylesheets/ckeditor/contents.css +208 -0
- data/app/assets/stylesheets/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- data/app/assets/stylesheets/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
- data/app/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/app/assets/stylesheets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- data/app/assets/stylesheets/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
- data/app/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/app/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/app/assets/stylesheets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +43 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- data/app/assets/stylesheets/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- data/app/builders/releaf/builders.rb +4 -1
- data/app/builders/releaf/builders/form_builder/associations.rb +1 -1
- data/app/builders/releaf/builders/page/layout_builder.rb +1 -1
- data/app/builders/releaf/builders/pagination_builder.rb +1 -1
- data/app/controllers/releaf/action_controller.rb +2 -2
- data/app/controllers/releaf/root_controller.rb +9 -7
- data/app/lib/releaf/search.rb +5 -18
- data/app/models/releaf/settings.rb +1 -1
- data/app/views/releaf/action/create_releaf_richtext_attachment.haml +2 -1
- data/lib/generators/dummy/install_generator.rb +2 -1
- data/lib/generators/dummy/templates/assets/config/manifest.js +3 -0
- data/lib/generators/dummy/templates/controllers/application_controller.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_authors.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_banner_groups.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_banner_pages.rb +2 -2
- data/lib/generators/dummy/templates/migrations/create_banners.rb +2 -2
- data/lib/generators/dummy/templates/migrations/create_book_sequels.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_books.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_bundles.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_chapters.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_home_pages.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_node_extra_fields.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_other_nodes.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_publishers.rb +1 -1
- data/lib/generators/dummy/templates/migrations/create_text_pages.rb +1 -1
- data/lib/generators/dummy/templates/models/author.rb +1 -1
- data/lib/generators/dummy/templates/models/banner.rb +1 -1
- data/lib/generators/dummy/templates/models/banner_group.rb +1 -1
- data/lib/generators/dummy/templates/models/book.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_nodes.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_permissions.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_richtext_attachments.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_settings.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_translations.rb +1 -1
- data/lib/generators/releaf/templates/migrations/create_releaf_users.rb +1 -1
- data/lib/releaf/engine.rb +2 -3
- data/spec/builders/releaf/builders/association_reflector_spec.rb +1 -1
- data/spec/builders/releaf/builders/base_spec.rb +1 -1
- data/spec/builders/releaf/builders/collection_spec.rb +1 -1
- data/spec/builders/releaf/builders/confirm_destroy_dialog_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/confirm_dialog_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/edit_builder_spec.rb +4 -4
- data/spec/builders/releaf/builders/form_builder/associations_spec.rb +1 -1
- data/spec/builders/releaf/builders/form_builder/date_fields_spec.rb +1 -1
- data/spec/builders/releaf/builders/form_builder/i18n_fields_spec.rb +1 -1
- data/spec/builders/releaf/builders/form_builder/label_spec.rb +1 -1
- data/spec/builders/releaf/builders/form_builder/number_fields_spec.rb +1 -1
- data/spec/builders/releaf/builders/form_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/index_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/page/header_builder_spec.rb +3 -2
- data/spec/builders/releaf/builders/page/layout_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/page/menu_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/pagination_builder_spec.rb +9 -9
- data/spec/builders/releaf/builders/resource_dialog_spec.rb +1 -1
- data/spec/builders/releaf/builders/resource_view_spec.rb +1 -1
- data/spec/builders/releaf/builders/table_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/toolbox_builder_spec.rb +1 -1
- data/spec/builders/releaf/builders/toolbox_spec.rb +1 -1
- data/spec/builders/releaf/builders/view_spec.rb +1 -1
- data/spec/builders/releaf/builders_spec.rb +10 -0
- data/spec/builders/releaf/settings/form_builder_spec.rb +1 -1
- data/spec/builders/releaf/settings/table_builder_spec.rb +1 -1
- data/spec/controllers/concerns/releaf/richtext_attachments_spec.rb +2 -2
- data/spec/controllers/releaf/action_controller_spec.rb +25 -25
- data/spec/controllers/releaf/root_controller_spec.rb +3 -2
- data/spec/controllers/releaf/settings_controller_spec.rb +2 -2
- data/spec/error_hash_builder_spec.rb +1 -1
- data/spec/features/ajaxbox_spec.rb +3 -3
- data/spec/features/breadcrumbs_spec.rb +2 -2
- data/spec/features/edit_actions_spec.rb +4 -4
- data/spec/features/index_actions_spec.rb +5 -4
- data/spec/features/richtext_spec.rb +1 -1
- data/spec/features/search_spec.rb +5 -5
- data/spec/features/settings_spec.rb +3 -3
- data/spec/lib/releaf/responders_spec.rb +1 -0
- data/spec/lib/validation_error_codes_spec.rb +7 -7
- data/spec/misc/factories_spec.rb +1 -1
- data/spec/models/settings_spec.rb +12 -8
- 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
|
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){
|
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
|
-
|
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){
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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(
|
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 {
|
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(:
|
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
|
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
|
-
|
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 =
|
335
|
-
|
336
|
-
|
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
|
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
|
-
|
357
|
-
|
358
|
-
|
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)
|