ckeditor 4.2.4 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (685) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +15 -12
  3. data/README.md +65 -75
  4. data/Rakefile +17 -9
  5. data/app/assets/javascripts/ckeditor/config.js +1 -0
  6. data/app/controllers/ckeditor/application_controller.rb +3 -0
  7. data/app/controllers/ckeditor/attachment_files_controller.rb +2 -0
  8. data/app/controllers/ckeditor/pictures_controller.rb +2 -0
  9. data/app/helpers/ckeditor/application_helper.rb +2 -0
  10. data/app/views/ckeditor/attachment_files/index.html.erb +1 -1
  11. data/config/locales/da.ckeditor.yml +9 -0
  12. data/config/routes.rb +2 -0
  13. data/lib/ckeditor/asset_response.rb +15 -4
  14. data/lib/ckeditor/backend/active_storage.rb +68 -0
  15. data/lib/ckeditor/backend/carrierwave.rb +2 -12
  16. data/lib/ckeditor/backend/dragonfly.rb +2 -0
  17. data/lib/ckeditor/backend/paperclip.rb +2 -15
  18. data/lib/ckeditor/backend/shrine.rb +29 -0
  19. data/lib/ckeditor/helpers/controllers.rb +2 -2
  20. data/lib/ckeditor/helpers/form_builder.rb +2 -2
  21. data/lib/ckeditor/helpers/form_helper.rb +2 -2
  22. data/lib/ckeditor/helpers/view_helper.rb +2 -2
  23. data/lib/ckeditor/hooks/action_policy.rb +41 -0
  24. data/lib/ckeditor/hooks/cancan.rb +4 -1
  25. data/lib/ckeditor/hooks/formtastic.rb +2 -0
  26. data/lib/ckeditor/hooks/pundit.rb +2 -0
  27. data/lib/ckeditor/hooks/simple_form.rb +2 -0
  28. data/lib/ckeditor/http.rb +8 -5
  29. data/lib/ckeditor/orm/active_record.rb +2 -0
  30. data/lib/ckeditor/orm/base.rb +2 -0
  31. data/lib/ckeditor/orm/mongoid.rb +2 -0
  32. data/lib/ckeditor/paginatable.rb +2 -0
  33. data/lib/ckeditor/rails.rb +3 -0
  34. data/lib/ckeditor/text_area.rb +3 -1
  35. data/lib/ckeditor/utils/javascript_code.rb +1 -1
  36. data/lib/ckeditor/utils.rb +1 -39
  37. data/lib/ckeditor/version.rb +4 -2
  38. data/lib/ckeditor.rb +10 -16
  39. data/lib/generators/ckeditor/action_policy_generator.rb +22 -0
  40. data/lib/generators/ckeditor/install_generator.rb +16 -6
  41. data/lib/generators/ckeditor/pundit_policy_generator.rb +2 -0
  42. data/lib/generators/ckeditor/templates/action_policy/attachment_file_policy.rb +18 -0
  43. data/lib/generators/ckeditor/templates/action_policy/picture_policy.rb +18 -0
  44. data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/asset.rb +10 -0
  45. data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/ckeditor/attachment_file.rb +3 -1
  46. data/lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb +13 -0
  47. data/lib/generators/ckeditor/templates/active_record/{refile → active_storage}/migration.rb +10 -8
  48. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/asset.rb +2 -0
  49. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb +2 -0
  50. data/lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb +2 -0
  51. data/lib/generators/ckeditor/templates/active_record/carrierwave/migration.rb +7 -5
  52. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/asset.rb +2 -0
  53. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb +2 -0
  54. data/lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb +2 -0
  55. data/lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb +7 -5
  56. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/asset.rb +2 -0
  57. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb +2 -0
  58. data/lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb +2 -0
  59. data/lib/generators/ckeditor/templates/active_record/paperclip/migration.rb +8 -6
  60. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_attachment_file_uploader.rb +2 -1
  61. data/lib/generators/ckeditor/templates/base/carrierwave/uploaders/ckeditor_picture_uploader.rb +2 -3
  62. data/lib/generators/ckeditor/templates/base/dragonfly/initializer.rb +2 -0
  63. data/lib/generators/ckeditor/templates/base/shrine/initializer.rb +25 -0
  64. data/lib/generators/ckeditor/templates/ckeditor.rb +3 -6
  65. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb +2 -0
  66. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb +2 -0
  67. data/lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb +2 -0
  68. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/asset.rb +2 -0
  69. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb +2 -0
  70. data/lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb +2 -0
  71. data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/asset.rb +8 -0
  72. data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/attachment_file.rb +21 -0
  73. data/lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/picture.rb +51 -0
  74. data/lib/generators/ckeditor/templates/pundit_policy/attachment_file_policy.rb +2 -0
  75. data/lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb +2 -0
  76. data/lib/tasks/ckeditor.rake +2 -0
  77. data/test/controllers/attachment_files_controller_test.rb +17 -15
  78. data/test/controllers/pictures_controller_test.rb +17 -15
  79. data/test/dummy/Rakefile +2 -0
  80. data/test/dummy/app/assets/javascripts/application.js +0 -2
  81. data/test/dummy/app/controllers/application_controller.rb +2 -0
  82. data/test/dummy/app/controllers/posts_controller.rb +2 -0
  83. data/test/dummy/app/helpers/application_helper.rb +2 -0
  84. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  85. data/test/dummy/app/models/post.rb +2 -0
  86. data/test/dummy/app/views/posts/index.html.erb +0 -3
  87. data/test/dummy/app/views/posts/show.html.erb +3 -0
  88. data/test/dummy/config/application.rb +5 -1
  89. data/test/dummy/config/boot.rb +2 -0
  90. data/test/dummy/config/environment.rb +2 -0
  91. data/test/dummy/config/environments/development.rb +2 -0
  92. data/test/dummy/config/environments/production.rb +2 -0
  93. data/test/dummy/config/environments/test.rb +5 -3
  94. data/test/dummy/config/initializers/assets.rb +2 -0
  95. data/test/dummy/config/initializers/backtrace_silencers.rb +2 -0
  96. data/test/dummy/config/initializers/ckeditor.rb +2 -0
  97. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  98. data/test/dummy/config/initializers/inflections.rb +2 -0
  99. data/test/dummy/config/initializers/mime_types.rb +2 -0
  100. data/test/dummy/config/initializers/paperclip.rb +2 -0
  101. data/test/dummy/config/initializers/session_store.rb +2 -0
  102. data/test/dummy/config/initializers/wrap_parameters.rb +2 -0
  103. data/test/dummy/config/routes.rb +2 -0
  104. data/test/dummy/config/storage.yml +3 -0
  105. data/test/dummy/config.ru +2 -0
  106. data/test/dummy/db/migrate/20110623120047_create_posts.rb +5 -3
  107. data/test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb +26 -0
  108. data/test/dummy/log/test.log +539 -0
  109. data/test/dummy/script/rails +2 -0
  110. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-d/-dBqueNlS8WwuPraBl4IkbfQRL93pVKQvYJ-zSKRKxU.cache +2 -0
  111. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-f/-fyTq7_I0HC-1OsK08Hj6mGMvCIifWgY8Qri65a094A.cache +3 -0
  112. data/test/dummy/tmp/cache/assets/sprockets/v3.0/04/04ewZ0c1q_zE-xyp1_tu63iQ08Zc487NAJXCiHxKqCs.cache +3 -0
  113. data/test/dummy/tmp/cache/assets/sprockets/v3.0/05/053vWA3kmu4-6v32aM64Pwcd_LdIf_3lsrDSuGparNE.cache +1 -0
  114. data/test/dummy/tmp/cache/assets/sprockets/v3.0/08/08WCRw3WlsP1fILmwynQ8HaeL3mN5xQV8RsV-OpCR84.cache +1 -0
  115. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0F/0FLX257BoU4j7TvAGAqmKK7M4JK8lPYWt8un9-GElUE.cache +1 -0
  116. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0_/0_RwuQhVhuz2Zj6cyW1Qrg1wmAy9jf_TbrWm30CNHwM.cache +4 -0
  117. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0c/0cpHzwSwJiYcbgcK2pD0vXwKP2VM1owgdYZr4ejiLfI.cache +0 -0
  118. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0v/0vzBAlV2TqPJ14G3w9RBBQaFnUaM4_DAV7_fvNQKK-M.cache +3 -0
  119. data/test/dummy/tmp/cache/assets/sprockets/v3.0/15/15kTYHJ9YGIbASZaM7epQZZNu7Fjx93C9YcSeGbURSM.cache +0 -0
  120. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1L/1LzUbGbE3gxsOFwMWWvg7rbCKWcSXx3ikLrP176lXvw.cache +0 -0
  121. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1s/1sXde7PzLPTWbUz4TxQj1XtFcTUsn-ojYQHOBNmc3eY.cache +0 -0
  122. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2i/2i9A4OM8yFNZvNJjen7ywQCA8YUoxnPoVy2aiXupbCg.cache +4 -0
  123. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2n/2nLwAurhvsqUvixh2bPQw-EUkt5JWr9XHyfoEzEEtBs.cache +1 -0
  124. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2o/2o8J2-5zLYcqYc4HmspjYoHJGOiwjk0oKA7p-WYhU6k.cache +0 -0
  125. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3D/3DzwHWCow-x5X9Wpkg5ZCH3RqQlpZ6G3Qo6hvMYtanc.cache +1 -0
  126. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3d/3dmugBqWzGPHNnc8FEqDvHfFYpKJbAziKxIf7veqCOw.cache +1 -0
  127. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3s/3ss6YahyYEb0qLAV8864wv9pJxbGvaMr2gPjI8FPo_4.cache +3 -0
  128. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4I/4IQZgALzTTT6ZQIK0WwW1zO54x5J1KKPbB-DfiGIb00.cache +3 -0
  129. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4j/4j7x99qNyXvE-LyUyEJ59JT-OaB4CfqjVCaoaRqWxHY.cache +3 -0
  130. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5s/5sf_1So_2TzJhgV9CwZM6iCCfLnz76wdN4yAbVQ3xvg.cache +0 -0
  131. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5w/5wYq7JIx5EMI40F3-Np0vuSwqq5AbsM1M7Z02ubK_Zs.cache +3 -0
  132. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5z/5zzxntCI3GPFcP-dfgOc86Ajp1jgBaj2ESaz4cO9oIc.cache +0 -0
  133. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6G/6GlNQ20eeXzca9VGo0hCliNy33gq2QqzC5_o1IjUrZw.cache +1 -0
  134. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6I/6I3t_d6wk7buUIh3xThJ6H3WZTVnn5V7gIJBIl1jfSY.cache +3 -0
  135. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6J/6JN4ZmYR_lrkbDiMIsrtw6_IGsGkNNJhUgmlVFZFki8.cache +3 -0
  136. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6L/6L0_bpdm_t1xV1LSElTd4EiwZmDbfImqgNOP44oY4Fg.cache +1 -0
  137. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6r/6rRvrDpqz6FBD-NUHBvGh8o1Os4tCO9hjOpM0LcqD6Q.cache +1 -0
  138. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6y/6yLbSHho8x8T9bFbe5z6A6GSXRtIlu6-MMBP51MpuVQ.cache +3 -0
  139. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7B/7BS88BiOyR7L5EgLvnb2cNG_eC7dZP-TaFbT1u14YfI.cache +3 -0
  140. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7L/7LI10ckVJmn25-bsvE-zOANz2by_rfrzndpbz_0M3IA.cache +1 -0
  141. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7M/7MnhqviqKpQp4a6wlaqaGhyHxO_7fumN8XNbgTyefGo.cache +1 -0
  142. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7a/7a_aF8iQYuIK9pnWRrnBM4bGcvaW7B7KGiqxdGPrABE.cache +1 -0
  143. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8d/8dK01tNjVZOkAv12c7NbQ9M95iiLjRUHvn8_vQZFLC8.cache +5 -0
  144. data/test/dummy/tmp/cache/assets/sprockets/v3.0/93/930-vFx7yFTnr3WLd3kATLnNsdxrmPLNDAJlgPMSia8.cache +1 -0
  145. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AK/AK3qK8yEs07-d1XF4nIIK-4r5Bae3biMoXTH-XimcIk.cache +3 -0
  146. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AP/AP8aU7CCks37uIRxKXMzD6WbSYsrqlQVLuhOHYrZM70.cache +3 -0
  147. data/test/dummy/tmp/cache/assets/sprockets/v3.0/B6/B60PzutJO4bVi4HpUZrFVrpcrNiBllTtUuDHmCANe4g.cache +6 -0
  148. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bi/BidoqWHH9nqc490f8yoQGbijq0_eHWA21nVyVDLIKG0.cache +0 -0
  149. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bu/BujNz6G7IUtmYGCIKckBJwkoWo42olu6npeyPUjZK3M.cache +0 -0
  150. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CV/CV7HIa3sfMBoB2Iak0KlcMe2CgrlP3KycILium6_rvg.cache +1 -0
  151. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DF/DFl6sNWFwAG371Exi_W7tO72hRJKBO18TGmgDwRl5T8.cache +1 -0
  152. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +3 -0
  153. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ee/EeJgeYVT_CZY1OzmZRpaZpwSCdpiI_kGLaZyp0Lx0z0.cache +0 -0
  154. data/test/dummy/tmp/cache/assets/sprockets/v3.0/F-/F-mRXZF1KeR-VvdE94qLvfQ7G4tYqETlWPdhw0ktOpE.cache +3 -0
  155. data/test/dummy/tmp/cache/assets/sprockets/v3.0/F4/F4obfNmo-wutrSru1b2HuBT0ru_64CzGsup4A9kP_8w.cache +0 -0
  156. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gh/GhvM2-MuVU_HNVX1clAXt359AJIcJU5n8YI3boG-6RA.cache +3 -0
  157. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Go/GogfiSOr9ALlZL8yRf8sY-qJt52NT1sNItvg2IRbEhQ.cache +1 -0
  158. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gv/GvoRTz1WzfS40w8mlkZuGKYVMryiv7uFPO5AAWbU24c.cache +1 -0
  159. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCF8cWFjuzdewkC9MR_Gcqb67OnqDAwYJp2lSDV8p14.cache +3 -0
  160. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HT/HToXd6N9BdjuaIfhJw4T6kU3K4erf6L5Zs2ueeZEtIc.cache +1 -0
  161. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hp/HpI4DVES2KTfRomEwW8II9vDXyyEe7l_7hImKJVoSsQ.cache +0 -0
  162. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hu/Hu2TRCk8fVVZKSxUqbu8-2aqv5WaFckjbOIYPeVG6rE.cache +1 -0
  163. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwnxC7SnRH6xsVsIU77ajeY3wU3VgmFmYLA67RAkyB0.cache +1 -0
  164. data/test/dummy/tmp/cache/assets/sprockets/v3.0/J-/J-27mU8JDzKZkGLimdmK3wnjKTz2ek_eGRsV6Sx5SfI.cache +0 -0
  165. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JX/JXOdZ4crBS7WZXI04yj4_Kx2Bihs7WfBV5eV7utJkus.cache +5 -0
  166. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jp/JpeAXRxkp45Ez2YpDSX7odrxvwES3hXR1eofCSTDlCA.cache +0 -0
  167. data/test/dummy/tmp/cache/assets/sprockets/v3.0/KD/KDQQKO-9XB9j2jrauksdDASKO3M2EjFlU7YxNsCuTC4.cache +1 -0
  168. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kb/KbtoOF2L9wfndqHkMPAXW-ygqLRoawx6iQOx5qozg44.cache +1 -0
  169. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LA/LA6X678QgeRBLF8c0bPiZP5BJSJIVM6DzB5-SO49W_E.cache +0 -0
  170. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LF/LFI2nxI8wama02WD6drIwzwpfToiO8WBSjaNw0gUxHU.cache +1 -0
  171. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LM/LMkoH8G88hsoVlg2reWs5yn3aTvP3ri6X60VliTesQ0.cache +1 -0
  172. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ls/LsGB6rbumOWBPBSGbvzGm9GnX1N-hluqCr3eCmRVUP8.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lx/LxE1TCMSj5X6GY2HAoIgSCphYVJw3joMIgJy0AladIM.cache +3 -0
  174. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ly/LyU_a18GYQo-r9NjeP0s8quyyhInekhZRIBHJz_jT_A.cache +1 -0
  175. data/test/dummy/tmp/cache/assets/sprockets/v3.0/MV/MVJnuzWbanuxqW14Dc8Y78-M8Wi65wLSlCc8Wq49NZw.cache +1 -0
  176. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mo/MofjNnOqCS7WlmuCoJ8OwcR4P0o6Y7mPtRa-hVz-RWE.cache +1 -0
  177. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N1/N19o30SdBrcqxzPFFb8TfCDRSI2Ufsev3FDMgGjuPIo.cache +0 -0
  178. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ng/Nge8YQeDgbFwrlL8feny1ICqk32DcsNYzcSz0CjcWD4.cache +4 -0
  179. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Nq/NqedKG2c6jsceuP2uhnKqQmoyWVcFM3cmIkRCv0F-PY.cache +0 -0
  180. data/test/dummy/tmp/cache/assets/sprockets/v3.0/On/OnMLw3lNhWehiCR4-8vVkwnE0-ijIqhyFtA5vn4HcGI.cache +5 -0
  181. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ov/Ovk6Og38upK7ebMdnjglXiiIWrBEX5smzQXQ_dEiiEE.cache +1 -0
  182. data/test/dummy/tmp/cache/assets/sprockets/v3.0/P0/P0qk9upwDGzYJ923EAuUTbCuu1ymuoJabO8Qznsp8D4.cache +0 -0
  183. data/test/dummy/tmp/cache/assets/sprockets/v3.0/P7/P7pJR0M3wKV-yEunRosFcJX4QQgWy7ifJMlTKXWCd7E.cache +2 -0
  184. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PL/PLXqKdFjQPq1gG8MxkJDd034AGrOmlP42lNttsKRNVo.cache +1 -0
  185. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PT/PTVUf7xyaFbCSvcQQS6baLxtS8Bhte_NUCiUxGXq3RE.cache +1 -0
  186. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PU/PUCBOw7REdP4zl3q099sKBit47suWaK8rbjNVtLUCkA.cache +1 -0
  187. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q1/Q1mnnVNVktIvFYfFKFv5gBaHJxHrvUhQVS2s-GyXsZg.cache +4 -0
  188. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmfJnJlv-UeE5U5-dy10ddCGxsyEccCwm8rlSfbMQWg.cache +3 -0
  189. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qs/QssGIs6hD9knPyadpRNYFqAEaPjIyBWHLvdLhtj01DQ.cache +1 -0
  190. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qw/Qwsr6MU-j_a5wWaRoGNRGKc5JNIM7xEVY3TbTGmdbd4.cache +2 -0
  191. data/test/dummy/tmp/cache/assets/sprockets/v3.0/R5/R5ng3VLTDnoUI-pznc7CN8O-eOp6uAz37kiabllbgWk.cache +1 -0
  192. data/test/dummy/tmp/cache/assets/sprockets/v3.0/RS/RSQ4sWSaWJyZXl_vfRrU7XEmXaNiQL4fMldJ1_DmOqQ.cache +0 -0
  193. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Rx/RxtO8tM6L0cocpDr1jv2Z4HX8XWqnzTPJjJmA4oFt6U.cache +0 -0
  194. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SJ/SJJOHM7e3gxOVnyy408rn8A376ehBdI69AJIdTdqISM.cache +4 -0
  195. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SO/SO8HufFJWm0rbsJXVsRurZibwFbbCCMMPdp0yjQlqjQ.cache +1 -0
  196. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sk/SkKTg6-wnERrIvPIbEvfEBwo6h01DChWrXsj4QM61vU.cache +0 -0
  197. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sn/SnneONwbfZdkgXIrIsPDnNxDb2aBY83Ea0e7WboKZ0A.cache +1 -0
  198. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TV/TVDhf7ZxMs_Oov5iDATk8se3-2zK8Yvg9-gvrnuGHXc.cache +1 -0
  199. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TZ/TZiQSFmcqgsCteB5wJhqefkgWHVDI18yyz_Og5I19ik.cache +2 -0
  200. data/test/dummy/tmp/cache/assets/sprockets/v3.0/U7/U7Z6P2gy-gFd0rlSilzfYFNlAfmAODBgOU_f7Q0vVvs.cache +1 -0
  201. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ue/UeAZe1xqNjtzc63YDKyd5eqo4OMQ4yfiLlxK9aRvKB8.cache +2 -0
  202. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Uo/UofS0cqKwZpmrXESj48fTq4w4aeea0UszZv_1umJt_I.cache +1 -0
  203. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VK/VK_uz7ZwmPAKPQfL-tCEPIQ0_2o4cY_5QKX_8HldmmM.cache +0 -0
  204. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vk/VkV7pbT1hx8yaop4NiDn1kMR7MwS_VjDYNPHQWQOO7E.cache +3 -0
  205. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WS/WShNZpE9_w8EMfkXTaye8MNmuDHrLltlcwPIptKTCao.cache +0 -0
  206. data/test/dummy/tmp/cache/assets/sprockets/v3.0/W_/W_HCQ-NoqY6LFvWJqI7Dxpauna6rDadRWwPYumXhIIM.cache +1 -0
  207. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xe/XeODfy0gnLbSsviQI9sx8KqYuV7_t_6GfabdB7-NB7s.cache +1 -0
  208. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y8/Y8ekK4ZkAoQpC2Q0MtxNBTkGhYhmBbHMrD6vFMvKsAo.cache +1 -0
  209. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YD/YDL_VgvgExnwrajYeJLrzifB9dktBwDqzNtyzUtCD3Q.cache +0 -0
  210. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YS/YStJFI5718x9-8P5pafLnelgTxmna9x4IbZdhs3YeOk.cache +1 -0
  211. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y_/Y_OlVACK6j5lr-2QVZMaU8cF-Dz1S_T2TZ86vN6PJJw.cache +1 -0
  212. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yb/YbAK65K3suwQEaHCdlXIRDkEuwX9DlYOxixaW07hcg4.cache +4 -0
  213. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ys/YsncDM5rDIeiBNnJwZyWqSu7-fLu8nQPHiSxcKNtRlw.cache +3 -0
  214. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_T/_ThR31O-Iv0N9azSBsaq8YMNCZS0HtNOdVUNhufNXqQ.cache +0 -0
  215. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_W/_WIOqpnSoDe30Uiwc3u9ca1Yf0ygrAdkiz1oenJ9rIc.cache +1 -0
  216. data/test/dummy/tmp/cache/assets/sprockets/v3.0/a9/a9Ndc4oxVRT9YmbyC1t6eAMps_QBsPEyzgfosMs_ckc.cache +1 -0
  217. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ah/ahINRHBr4OBNS6Ev96ytwFu4Lllhejr5UfwHq62_6F8.cache +1 -0
  218. data/test/dummy/tmp/cache/assets/sprockets/v3.0/an/anaBKbCx7jOFT835cgqX0qxCfQWgrUwV8MN48mg136A.cache +1 -0
  219. data/test/dummy/tmp/cache/assets/sprockets/v3.0/b6/b6ctzSonpQ3RSo-USlxPZ2o51cMq7G0j_n2UP5SPK9g.cache +0 -0
  220. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bU/bU2MPAAPSo5Q9uII3DGJLnVmpnQaruoUpBe36In7L_c.cache +1 -0
  221. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bb/bbZFJ3rtnAZP8x3-JUVnid9NsB7Ff1zTuFHxn7iW8Cc.cache +1 -0
  222. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bs/bsTZHkPBfjgJJ2bpQqBSWywtikZk0kwL0nl315LSj34.cache +1 -0
  223. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bz/bzx9c8FLtzNokI1rMWlgCOhK7ZyRZSmpJxAbR40lMUc.cache +5 -0
  224. data/test/dummy/tmp/cache/assets/sprockets/v3.0/c9/c9nQO7jCnRjJKRDITo6nng557fFIp9YwmqA4xlNx-Cc.cache +0 -0
  225. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjaZOYTjEMptRd8RaY0aujOSTeN4Fyo7tRti_SZEERk.cache +0 -0
  226. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dX/dXO4TJtTYlA_7BjfdzdlW__MyZh56Dx5UdjcZomT4ZU.cache +1 -0
  227. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dj/dj0sh0-NeIakN5o7gtB6MzonGSfAE6aSAOGXcquLJVU.cache +0 -0
  228. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dj/djpmLvcEUPPF44GeZjEzf-jWZlc43XiLngR0P6gsQzU.cache +1 -0
  229. data/test/dummy/tmp/cache/assets/sprockets/v3.0/do/donDLRkEPz9EI7K96pZGvNqvQbn-Zt8pg2bFQehKF4Y.cache +0 -0
  230. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eD/eDN9FOZjukdumjpRxy1tDpIQg0sTdzyuhBMUyz7Pz4U.cache +1 -0
  231. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eM/eMVK5ougZydBZd-IFAJzjaqAoDNJDp8Nm0oBdhlOv6s.cache +1 -0
  232. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ee/eeDN6LD9G2ZAgTdcEL9_ZQiXSI6Jzuhv5KbW9Svj88c.cache +0 -0
  233. data/test/dummy/tmp/cache/assets/sprockets/v3.0/f3/f3wGcAzcwR7I9M4vVSdMvKlbHNGKB0OcwcC2rIf_u58.cache +1 -0
  234. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fS/fSgu2am11_zgLAKnTUnylmTiVzFQB77Z-eN62d88XwI.cache +0 -0
  235. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ff/ffM8QR3UUdE3AiPSVMzQK8MNI2C1oOblPKve3hyihoo.cache +0 -0
  236. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fj/fjaG6x1t7euwaWpHAXwTw1pZJtYG75K7QurK7WV67YA.cache +1 -0
  237. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fq/fqTBZznNgZs-NP6pZ74WUtbDbZRAkI4w979R64f5XHg.cache +2 -0
  238. data/test/dummy/tmp/cache/assets/sprockets/v3.0/h8/h8sGT3_wLt8J2pgHahjWvnn0LoMdD11mHQRMfhWVI2k.cache +3 -0
  239. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hI/hIQZbwjIE-fff8Nh4CiPwqWX0PQdtLh17GomAFE85QU.cache +0 -0
  240. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hY/hYGLA_7mx6SXKXIUKMLJHBbim2gPLx9mYGyCqOc0aes.cache +1 -0
  241. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hu/huoCxkTn25xVdE8qEIejwda9aqbGvP59sq280V686Jg.cache +2 -0
  242. data/test/dummy/tmp/cache/assets/sprockets/v3.0/i2/i2U8mHjJazWLJXeYa7Hcm0-KV3SMr1Nf_VQ-wUuMKjY.cache +0 -0
  243. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ir/irDLGExxBttMiQTc_vLJLSI_d7WIDKbcuHBryvJZCJk.cache +1 -0
  244. data/test/dummy/tmp/cache/assets/sprockets/v3.0/j7/j7iaQzvTc-zrBhXlfNVdmYrLxRxmsFmV9jJN5uqqVlA.cache +1 -0
  245. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jC/jCMuwPHJykKL72ahWss8nfPend5gDfz6pffXbVZb0SQ.cache +2 -0
  246. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jG/jG9xx8asJ-QgTwP6NEhmkP5DSyThNsc6uInt9qologY.cache +1 -0
  247. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jL/jLEJNDJIeSEhhThblk5gUv2g-CMijgdeNx095kk9_os.cache +1 -0
  248. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSXrNqbjB2VH3IOyTGrAYSGttB7BoB9bj6-BQSCs_hI.cache +1 -0
  249. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ka/kaNVZlAtVg3t0BmMjOH8ZCHkrezmFy_sME1Hw8Mrfew.cache +1 -0
  250. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kn/kn8Xx6CH8r-3h4p_tbEVHnFaA4j34VRYFr8VmgiqTLQ.cache +0 -0
  251. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kr/krlmMov27lpasITgeAiFvUhUp9yCr-5LWxBeRtMPwfs.cache +1 -0
  252. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lH/lHdb_PeCgraahSNfhufdF5kLuIosrzrYwpcSZXywlPc.cache +3 -0
  253. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lN/lN2qsMU1zXlSuoInbefVqrNTK1V2SEzSN1yqZfU9Ru0.cache +2 -0
  254. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lb/lbnm5U7Gc44KazG1ygxKg-VJZlsxiKs8bCG16FrK7jI.cache +2 -0
  255. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ll/lltp1XFfKQGeq6WKJMN-CriKVEps7jmtmU-XI7EhTUw.cache +3 -0
  256. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mJ/mJFbTtnJshoNhVmVi9S9jG2aUTioPSxms_kGk5nyhKw.cache +3 -0
  257. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mK/mKSHnoDeWz42GN5sMeRKn7fKoZB-2BxxLkob6rAveh4.cache +3 -0
  258. data/test/dummy/tmp/cache/assets/sprockets/v3.0/m_/m__FoNXoU2ztoyz-ek6W7hzQ-6132ydpKlf1xmtDXgg.cache +0 -0
  259. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mx/mxirVMN-incSwDxg8-429kTSg4efU3tISnX6VUojUZU.cache +0 -0
  260. data/test/dummy/tmp/cache/assets/sprockets/v3.0/n8/n8v5QNtmkANjHzhzKlmk3rW9CPcjOcuBF8jLGQUnb28.cache +0 -0
  261. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nn/nnxK8B35jBT31MZrxryKytxAhZVhDWrRxvVO_2NvRw4.cache +1 -0
  262. data/test/dummy/tmp/cache/assets/sprockets/v3.0/o8/o8KD_tJYoRXEbO4jLMzJhtX6pOqnfhiEMRDj5ghHTS4.cache +1 -0
  263. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oG/oGGbOH0hayY6D5txd3QtccbRigWVxB19fvWJP8O54vM.cache +1 -0
  264. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pC/pCfash9WTrrfv9yfQQwyLt9f7SObtMriLlo_QkWE1p8.cache +1 -0
  265. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pS/pSDc64mPPrsJBsMdeoB71e7NlSvg60IUQVxCWg2TDU0.cache +3 -0
  266. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pl/plxe4bdnRdiniGrjkXXUjSoYZ9v7bXVTxBns7IX5LNY.cache +3 -0
  267. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pm/pmHrrifNbYp5V3uylbmaHIXbyDDGVEGvB7xfLPuKwbs.cache +4 -0
  268. data/test/dummy/tmp/cache/assets/sprockets/v3.0/py/py9y20elSXBr1-Fif8v5Z0aLwHfPrkEG34K9pThNoNk.cache +2 -0
  269. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qC/qCimPuombih_K1Y6U-YS-ySAHCUNTvYPZ_N6-DWDl_k.cache +3 -0
  270. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qG/qGjYU5rc4whNqGbZ-Ev-sFFYZDTXZpOhnHRswH81VQI.cache +3 -0
  271. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qY/qYHktjZeTVYyIeVzmSIgG2JV42fyTV0TzIwUkxbYZSQ.cache +0 -0
  272. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qj/qjlULgrZuuzCTNHTNE3IvsI88IhYpf5DLwzbRg7as3U.cache +1 -0
  273. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qo/qoDAyevKyArNmynPNuCh-sSSEpD4jVGF8vBJGSLM42I.cache +3 -0
  274. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qp/qpsGPYK_DEnlbfAV1B10gzf85X2fjUVuKcaShGwFAR8.cache +3 -0
  275. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rr/rrMhNNXPFintjn_ZP5RMFZmX5q_4J2rvzVr516oVuZY.cache +1 -0
  276. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHEfrMxYcpqzAw9Xv5yKd-ImHdYH4dw3LRhAzLtNwbQ.cache +3 -0
  277. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHfCg4WEOfg53iPAv44uwp5mNK6HqvMyWeKmGwAboII.cache +0 -0
  278. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sO/sOkgigzpw9yHTJg1R-bsV_50W9L_p9MTv6CSwUMz_Ps.cache +1 -0
  279. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sP/sPb7jxWOfAHmE_llKwieoJexagI5CQl9F25-09UhQCM.cache +2 -0
  280. data/test/dummy/tmp/cache/assets/sprockets/v3.0/t2/t2AGtm95zgEC1ymTx-cF4Gky6yXKjqMM4BXuQxMYhFU.cache +1 -0
  281. data/test/dummy/tmp/cache/assets/sprockets/v3.0/t3/t3rIl0sKxtbuOdKHOKqe6PtzY-mEAmGMAy0S0te2eyo.cache +0 -0
  282. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tB/tBmy1XTnr--22LM6Zitujx92I1dfh3m1RH3Hhwks3V4.cache +0 -0
  283. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tk/tkYfC9_v7qC9g2yfxRD8SNXVpb9703C5rhHXs3ET7_E.cache +1 -0
  284. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ts/tsSAxcVtdRaxifKEGGehVyZ2rLzQJJ3dc0DXnmPwO8M.cache +0 -0
  285. data/test/dummy/tmp/cache/assets/sprockets/v3.0/u-/u-V0RvPZjM64X8dX6_bn3jtIvQfG75OKy9zuIF6Jtg0.cache +3 -0
  286. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uA/uA7RfNzNOTNRm3jkZG14w8hjSC4pJRn1ZVs0ec_OPMo.cache +2 -0
  287. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uI/uI_EOGimZCd_E1CgRv5ifLYmSxuP0i4sNiF2WXvP3sg.cache +0 -0
  288. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ux/uxR005Y05Jhl50Mw1ufdKt3V984bimlyEX5akB_YAFI.cache +1 -0
  289. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uy/uyyADGu_J8RFP7jMFgLJqNnknx-Oz400wn381wWVZW4.cache +1 -0
  290. data/test/dummy/tmp/cache/assets/sprockets/v3.0/v-/v-gtNgPSykhFBuKgDhi-xeCf3tbEBQUjY1qKPXMISlM.cache +1 -0
  291. data/test/dummy/tmp/cache/assets/sprockets/v3.0/v2/v2naCjkpFPH9c-NwmCJETQoK7DBDYup8o_jydJMBDeY.cache +4 -0
  292. data/test/dummy/tmp/cache/assets/sprockets/v3.0/v3/v3eDSIGmyd0Y1kk1ASc_uFEb7tUqfFdZ3yRZAeZrzcI.cache +0 -0
  293. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vN/vN59miXCuGAyw0iHQg6OmhStV0S1Tz-vGOWUxwN7QOg.cache +1 -0
  294. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vg/vgMKcSF0IQZKKv_x3DrjpksN2pFDWFN7IJhEAmmCZBg.cache +3 -0
  295. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vj/vjuI2fQXa2D6CtQ6q3qr_40P0da4JKryXaWNv7zrA2M.cache +0 -0
  296. data/test/dummy/tmp/cache/assets/sprockets/v3.0/w2/w2WHVIahCX79zlFp_7dfbl6wQPinwISKSTHWngyEnyo.cache +1 -0
  297. data/test/dummy/tmp/cache/assets/sprockets/v3.0/w7/w7fdZ5-Ljpw3oKqBv4nMpR-cYQ9fB7PLoqk2NcUbIWQ.cache +1 -0
  298. data/test/dummy/tmp/cache/assets/sprockets/v3.0/wm/wm0jVVRcI8qC_VsoOfKCp0HHJGnlBOy_FNG3hjMa6Pk.cache +1 -0
  299. data/test/dummy/tmp/cache/assets/sprockets/v3.0/wn/wn3GJ6c-gkr5A6lLAfyeKL98H4FX6r7XKIeUW80gypw.cache +3 -0
  300. data/test/dummy/tmp/cache/assets/sprockets/v3.0/wn/wnvJ74QIdj8tSD10cXmY9KyXCpaQIv0FfZJWw-EudW8.cache +2 -0
  301. data/test/dummy/tmp/cache/assets/sprockets/v3.0/wv/wvWyU7svrHKgHvpxvJLK3vuc7SIlfxCVir2p_VMBMjs.cache +3 -0
  302. data/test/dummy/tmp/cache/assets/sprockets/v3.0/x0/x0wzfxL-nQeWjMAL12L3UiDAYyDTiOg8yp4mdTaZpC8.cache +1 -0
  303. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xP/xPMfTXGxxCCgIip6XsG-paelKjnDzbpAYugLmUfykPs.cache +2 -0
  304. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xR/xRbb3t3bGtgdtnLyv6VZBUPDasllTgN4dsslLL1Ndf0.cache +1 -0
  305. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xh/xhKrbQYzOttXPAV3B8UE0g48dsYPni_9ikA8eccOYIk.cache +1 -0
  306. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xn/xn0zd3HM9eTR0-7a6FgJE6NhOy9SsbF21A3rVbVwROw.cache +1 -0
  307. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yP/yPvoUhaf_yuFaCNJU6ITFYdEzeuSBXWQNLp9bs8nbMc.cache +1 -0
  308. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ym/ymcTn0HULLF6Wenkujvetcm2D24XnhUKoc81dWkMhR8.cache +4 -0
  309. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zD/zDfjs5LeIEuQk6D7sUn8Om3fIIvhvtKmCm8eRfACJgM.cache +0 -0
  310. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zV/zVYsJrJcUbMc1v3v2sP7YsdaBmKpuVVM7oNkvxGJ1JQ.cache +0 -0
  311. data/test/functional/posts_controller_test.rb +18 -16
  312. data/test/generators/install_generator_test.rb +58 -56
  313. data/test/integration/navigation_test.rb +2 -0
  314. data/test/models/attachment_file_test.rb +4 -4
  315. data/test/models/ckeditor_test.rb +3 -21
  316. data/test/models/picture_test.rb +12 -10
  317. data/test/models/utils_test.rb +2 -0
  318. data/test/orm/active_record.rb +11 -1
  319. data/test/orm/mongoid.rb +2 -0
  320. data/test/support/helpers.rb +2 -0
  321. data/test/support/integration_case.rb +2 -0
  322. data/test/test_helper.rb +15 -9
  323. data/test/tmp/app/models/ckeditor/asset.rb +2 -0
  324. data/test/tmp/app/models/ckeditor/attachment_file.rb +2 -0
  325. data/test/tmp/app/models/ckeditor/picture.rb +2 -0
  326. data/test/tmp/config/initializers/ckeditor.rb +4 -7
  327. metadata +472 -432
  328. data/app/assets/javascripts/ckeditor/init.js.erb +0 -8
  329. data/lib/ckeditor/backend/refile.rb +0 -39
  330. data/lib/ckeditor/utils/content_type_detector.rb +0 -38
  331. data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/asset.rb +0 -4
  332. data/lib/generators/ckeditor/templates/active_record/refile/ckeditor/picture.rb +0 -11
  333. data/test/dummy/public/ckeditor_assets/attachments/1/rails.tar.gz +0 -0
  334. data/test/dummy/public/ckeditor_assets/pictures/1/content_rails.png +0 -0
  335. data/test/dummy/public/ckeditor_assets/pictures/1/original_rails.png +0 -0
  336. data/test/dummy/public/ckeditor_assets/pictures/1/thumb_rails.png +0 -0
  337. data/test/dummy/public/uploads/ckeditor/attachments/1/rails.tar.gz +0 -0
  338. data/test/dummy/public/uploads/ckeditor/pictures/1/content_rails.png +0 -0
  339. data/test/dummy/public/uploads/ckeditor/pictures/1/rails.png +0 -0
  340. data/test/dummy/public/uploads/ckeditor/pictures/1/thumb_rails.png +0 -0
  341. data/test/support/raw_post.rb +0 -9
  342. data/vendor/assets/javascripts/ckeditor/CHANGES.md +0 -1304
  343. data/vendor/assets/javascripts/ckeditor/LICENSE.md +0 -1420
  344. data/vendor/assets/javascripts/ckeditor/README.md +0 -39
  345. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +0 -10
  346. data/vendor/assets/javascripts/ckeditor/ckeditor.js +0 -1184
  347. data/vendor/assets/javascripts/ckeditor/config.js +0 -10
  348. data/vendor/assets/javascripts/ckeditor/contents.css +0 -208
  349. data/vendor/assets/javascripts/ckeditor/lang/af.js +0 -5
  350. data/vendor/assets/javascripts/ckeditor/lang/ar.js +0 -5
  351. data/vendor/assets/javascripts/ckeditor/lang/az.js +0 -5
  352. data/vendor/assets/javascripts/ckeditor/lang/bg.js +0 -5
  353. data/vendor/assets/javascripts/ckeditor/lang/bn.js +0 -5
  354. data/vendor/assets/javascripts/ckeditor/lang/bs.js +0 -5
  355. data/vendor/assets/javascripts/ckeditor/lang/ca.js +0 -5
  356. data/vendor/assets/javascripts/ckeditor/lang/cs.js +0 -5
  357. data/vendor/assets/javascripts/ckeditor/lang/cy.js +0 -5
  358. data/vendor/assets/javascripts/ckeditor/lang/da.js +0 -5
  359. data/vendor/assets/javascripts/ckeditor/lang/de-ch.js +0 -5
  360. data/vendor/assets/javascripts/ckeditor/lang/de.js +0 -5
  361. data/vendor/assets/javascripts/ckeditor/lang/el.js +0 -5
  362. data/vendor/assets/javascripts/ckeditor/lang/en-au.js +0 -5
  363. data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +0 -5
  364. data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +0 -5
  365. data/vendor/assets/javascripts/ckeditor/lang/en.js +0 -5
  366. data/vendor/assets/javascripts/ckeditor/lang/eo.js +0 -5
  367. data/vendor/assets/javascripts/ckeditor/lang/es-mx.js +0 -5
  368. data/vendor/assets/javascripts/ckeditor/lang/es.js +0 -5
  369. data/vendor/assets/javascripts/ckeditor/lang/et.js +0 -5
  370. data/vendor/assets/javascripts/ckeditor/lang/eu.js +0 -5
  371. data/vendor/assets/javascripts/ckeditor/lang/fa.js +0 -5
  372. data/vendor/assets/javascripts/ckeditor/lang/fi.js +0 -5
  373. data/vendor/assets/javascripts/ckeditor/lang/fo.js +0 -5
  374. data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +0 -5
  375. data/vendor/assets/javascripts/ckeditor/lang/fr.js +0 -5
  376. data/vendor/assets/javascripts/ckeditor/lang/gl.js +0 -5
  377. data/vendor/assets/javascripts/ckeditor/lang/gu.js +0 -5
  378. data/vendor/assets/javascripts/ckeditor/lang/he.js +0 -5
  379. data/vendor/assets/javascripts/ckeditor/lang/hi.js +0 -5
  380. data/vendor/assets/javascripts/ckeditor/lang/hr.js +0 -5
  381. data/vendor/assets/javascripts/ckeditor/lang/hu.js +0 -5
  382. data/vendor/assets/javascripts/ckeditor/lang/id.js +0 -5
  383. data/vendor/assets/javascripts/ckeditor/lang/is.js +0 -5
  384. data/vendor/assets/javascripts/ckeditor/lang/it.js +0 -5
  385. data/vendor/assets/javascripts/ckeditor/lang/ja.js +0 -5
  386. data/vendor/assets/javascripts/ckeditor/lang/ka.js +0 -5
  387. data/vendor/assets/javascripts/ckeditor/lang/km.js +0 -5
  388. data/vendor/assets/javascripts/ckeditor/lang/ko.js +0 -5
  389. data/vendor/assets/javascripts/ckeditor/lang/ku.js +0 -5
  390. data/vendor/assets/javascripts/ckeditor/lang/lt.js +0 -5
  391. data/vendor/assets/javascripts/ckeditor/lang/lv.js +0 -5
  392. data/vendor/assets/javascripts/ckeditor/lang/mk.js +0 -5
  393. data/vendor/assets/javascripts/ckeditor/lang/mn.js +0 -5
  394. data/vendor/assets/javascripts/ckeditor/lang/ms.js +0 -5
  395. data/vendor/assets/javascripts/ckeditor/lang/nb.js +0 -5
  396. data/vendor/assets/javascripts/ckeditor/lang/nl.js +0 -5
  397. data/vendor/assets/javascripts/ckeditor/lang/no.js +0 -5
  398. data/vendor/assets/javascripts/ckeditor/lang/oc.js +0 -5
  399. data/vendor/assets/javascripts/ckeditor/lang/pl.js +0 -5
  400. data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +0 -5
  401. data/vendor/assets/javascripts/ckeditor/lang/pt.js +0 -5
  402. data/vendor/assets/javascripts/ckeditor/lang/ro.js +0 -5
  403. data/vendor/assets/javascripts/ckeditor/lang/ru.js +0 -5
  404. data/vendor/assets/javascripts/ckeditor/lang/si.js +0 -5
  405. data/vendor/assets/javascripts/ckeditor/lang/sk.js +0 -5
  406. data/vendor/assets/javascripts/ckeditor/lang/sl.js +0 -5
  407. data/vendor/assets/javascripts/ckeditor/lang/sq.js +0 -5
  408. data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +0 -5
  409. data/vendor/assets/javascripts/ckeditor/lang/sr.js +0 -5
  410. data/vendor/assets/javascripts/ckeditor/lang/sv.js +0 -5
  411. data/vendor/assets/javascripts/ckeditor/lang/th.js +0 -5
  412. data/vendor/assets/javascripts/ckeditor/lang/tr.js +0 -5
  413. data/vendor/assets/javascripts/ckeditor/lang/tt.js +0 -5
  414. data/vendor/assets/javascripts/ckeditor/lang/ug.js +0 -5
  415. data/vendor/assets/javascripts/ckeditor/lang/uk.js +0 -5
  416. data/vendor/assets/javascripts/ckeditor/lang/vi.js +0 -5
  417. data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +0 -5
  418. data/vendor/assets/javascripts/ckeditor/lang/zh.js +0 -5
  419. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -10
  420. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -25
  421. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +0 -11
  422. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +0 -11
  423. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +0 -11
  424. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +0 -11
  425. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +0 -13
  426. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +0 -12
  427. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +0 -11
  428. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +0 -11
  429. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +0 -12
  430. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +0 -12
  431. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +0 -12
  432. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -11
  433. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -11
  434. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +0 -12
  435. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +0 -13
  436. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +0 -13
  437. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +0 -11
  438. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +0 -12
  439. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +0 -11
  440. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +0 -11
  441. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +0 -11
  442. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -11
  443. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +0 -13
  444. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +0 -12
  445. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +0 -11
  446. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +0 -11
  447. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +0 -11
  448. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +0 -11
  449. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +0 -12
  450. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +0 -11
  451. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +0 -13
  452. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +0 -9
  453. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +0 -11
  454. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +0 -10
  455. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +0 -11
  456. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +0 -11
  457. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +0 -12
  458. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +0 -11
  459. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +0 -11
  460. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +0 -12
  461. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +0 -12
  462. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +0 -11
  463. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +0 -12
  464. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +0 -13
  465. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -13
  466. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +0 -12
  467. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +0 -11
  468. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -11
  469. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +0 -10
  470. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +0 -11
  471. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +0 -11
  472. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +0 -11
  473. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -11
  474. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +0 -11
  475. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +0 -11
  476. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +0 -11
  477. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +0 -12
  478. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +0 -11
  479. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +0 -12
  480. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +0 -12
  481. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +0 -11
  482. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -9
  483. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +0 -9
  484. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -8
  485. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  486. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  487. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +0 -20
  488. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -14
  489. data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +0 -25
  490. data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/cursors/cursor.svg +0 -14
  491. data/vendor/assets/javascripts/ckeditor/plugins/copyformatting/styles/copyformatting.css +0 -45
  492. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  493. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -9
  494. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -25
  495. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -24
  496. data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  497. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -8
  498. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -9
  499. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -8
  500. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -7
  501. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -9
  502. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -20
  503. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -8
  504. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -11
  505. data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  506. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  507. data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  508. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -10
  509. data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  510. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -44
  511. data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  512. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -8
  513. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -28
  514. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  515. data/vendor/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  516. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -10
  517. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  518. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  519. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  520. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  521. data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  522. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -52
  523. data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -13
  524. data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +0 -20
  525. data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -28
  526. data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -25
  527. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/dialog.css +0 -23
  528. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -32
  529. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
  530. data/vendor/assets/javascripts/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +0 -25
  531. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  532. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  533. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  534. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  535. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  536. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  537. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  538. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  539. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  540. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  541. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  542. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -11
  543. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  544. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  545. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  546. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  547. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  548. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  549. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  550. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  551. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  552. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  553. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  554. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  555. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  556. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  557. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  558. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  559. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png +0 -0
  560. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  561. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.png +0 -0
  562. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  563. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png +0 -0
  564. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  565. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  566. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  567. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  568. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  569. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  570. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  571. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  572. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  573. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  574. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  575. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  576. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  577. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  578. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  579. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  580. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  581. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  582. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  583. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  584. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  585. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  586. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  587. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -20
  588. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/af.js +0 -13
  589. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +0 -13
  590. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/az.js +0 -10
  591. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +0 -13
  592. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +0 -14
  593. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +0 -13
  594. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +0 -14
  595. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/da.js +0 -11
  596. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +0 -13
  597. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +0 -13
  598. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +0 -13
  599. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +0 -13
  600. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +0 -13
  601. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +0 -13
  602. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -13
  603. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +0 -12
  604. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +0 -13
  605. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +0 -13
  606. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +0 -13
  607. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eu.js +0 -13
  608. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +0 -12
  609. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +0 -13
  610. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +0 -10
  611. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +0 -12
  612. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +0 -13
  613. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +0 -12
  614. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +0 -13
  615. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +0 -12
  616. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +0 -13
  617. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +0 -14
  618. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +0 -9
  619. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +0 -13
  620. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ko.js +0 -10
  621. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +0 -13
  622. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lt.js +0 -13
  623. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +0 -13
  624. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +0 -11
  625. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +0 -13
  626. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +0 -11
  627. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/oc.js +0 -12
  628. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +0 -12
  629. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +0 -11
  630. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +0 -13
  631. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -13
  632. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +0 -13
  633. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +0 -13
  634. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +0 -12
  635. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +0 -13
  636. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +0 -11
  637. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +0 -13
  638. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +0 -12
  639. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +0 -13
  640. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +0 -13
  641. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +0 -12
  642. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +0 -14
  643. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +0 -9
  644. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +0 -9
  645. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -14
  646. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -21
  647. data/vendor/assets/javascripts/ckeditor/plugins/tableselection/styles/tableselection.css +0 -32
  648. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -17
  649. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -84
  650. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -10
  651. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -7
  652. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  653. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  654. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  655. data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -28
  656. data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -25
  657. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -66
  658. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  659. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -82
  660. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -92
  661. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -11
  662. data/vendor/assets/javascripts/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css +0 -43
  663. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog.css +0 -5
  664. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie.css +0 -5
  665. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_ie8.css +0 -5
  666. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/dialog_iequirks.css +0 -5
  667. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor.css +0 -5
  668. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_gecko.css +0 -5
  669. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie.css +0 -5
  670. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_ie8.css +0 -5
  671. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/editor_iequirks.css +0 -5
  672. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons.png +0 -0
  673. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  674. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  675. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/close.png +0 -0
  676. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  677. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  678. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  679. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  680. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  681. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  682. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  683. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  684. data/vendor/assets/javascripts/ckeditor/skins/moono-lisa/readme.md +0 -46
  685. data/vendor/assets/javascripts/ckeditor/styles.js +0 -137
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8322d6cb4547b48c4919776004ded1a350c05545
4
- data.tar.gz: 9ab657aaca72e69a847357666e1da8eb46684295
2
+ SHA256:
3
+ metadata.gz: b71ac2d1ebfd0eb53c8e24472f22e603c41c3ae8fc5958e44664211ee8e2b6ed
4
+ data.tar.gz: 8dd8a0c4681b5c76baf6a09d7c4a71426e7fedd9dd5c10e9623af7bd9d4a567d
5
5
  SHA512:
6
- metadata.gz: c0434a28caf6681dc5a769a12f75019e05042611d62b5ceb0d3f3b5703c07bb10de4ed7b254cfa5cf87ba4dd7e42f0659314acc70de7b319951acf0ed615e19a
7
- data.tar.gz: 1842897fba7ae53915db54f91104fa73c71ac1fd2a4390b9fdb72779fa87d858f330ef153c57fbac6a129346c2c1fd3f41d2580222f37c40da05c240457966a1
6
+ metadata.gz: a609bce33d5a52dfab3d630681ffe9f84cf58f39a1fc219606030f9a618a416ba620f9958345afab23cb76e79958ca4c7c3e8aa5cf3a8c1f701d856491b2cf30
7
+ data.tar.gz: d2ebba5c7fe3716a65e4af6595da206f52bdee4913fb6ca961d3ae3dcfb5d838664b86067f1dbb265dbe889c4817a15a78624e93e9b2b9bdf5b63f5858830d87
data/Gemfile CHANGED
@@ -1,36 +1,39 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'http://rubygems.org'
2
4
 
3
5
  gemspec
4
6
 
5
- gem 'rails', '4.2.7'
7
+ gem 'rails', '~> 5.2.4.6'
6
8
 
7
9
  platforms :ruby do
8
- gem 'sqlite3'
9
10
  gem 'sass'
10
-
11
- group :development do
12
- gem 'unicorn', '~> 4.0.1'
13
- end
11
+ gem 'sqlite3', '~> 1.3.6'
12
+ gem 'sprockets', '~> 3.7.2'
14
13
 
15
14
  group :development, :test do
16
- gem 'jquery-rails', '~> 4.0.4'
17
15
  gem 'capybara', '>= 0.4.0'
16
+ gem 'jquery-rails', '~> 4.3.3'
18
17
  gem 'mynyml-redgreen', '~> 0.7.1', require: 'redgreen'
18
+ gem 'rails-controller-testing'
19
+
20
+ gem 'rubocop-rails'
19
21
  end
20
22
 
21
23
  group :active_record do
22
- gem 'paperclip'
23
24
  gem 'carrierwave'
24
25
  gem 'dragonfly'
25
26
  gem 'mini_magick'
26
- gem 'refile', require: 'refile/rails'
27
- gem 'refile-mini_magick'
27
+ gem 'paperclip', '~> 6.1.0'
28
28
  end
29
29
 
30
30
  group :mongoid do
31
- gem 'mongoid', '~> 5.0.0'
32
31
  gem 'bson_ext'
33
- gem 'mongoid-paperclip', require: 'mongoid_paperclip'
34
32
  gem 'carrierwave-mongoid', require: 'carrierwave/mongoid'
33
+ gem 'mongoid', '~> 7.0.2'
34
+ gem 'mongoid-paperclip', require: 'mongoid_paperclip'
35
+ gem 'shrine'
36
+ gem 'shrine-mongoid'
37
+ gem 'image_processing'
35
38
  end
36
39
  end
data/README.md CHANGED
@@ -3,17 +3,16 @@
3
3
  [![Build Status](https://semaphoreci.com/api/v1/igor-galeta/ckeditor/branches/master/shields_badge.svg)](https://semaphoreci.com/igor-galeta/ckeditor)
4
4
  [![Code Climate](https://codeclimate.com/github/galetahub/ckeditor/badges/gpa.svg)](https://codeclimate.com/github/galetahub/ckeditor)
5
5
 
6
- CKEditor is a WYSIWYG text editor designed to simplify web content creation. It brings common word processing features directly to your web pages. Enhance your website experience with our community maintained editor.
7
- [ckeditor.com](http://ckeditor.com/)
6
+ CKEditor is a WYSIWYG text editor designed to simplify web content creation. It brings common word processing features directly to your web pages. Enhance your website experience with our community maintained editor. Currently this gem supports [ckeditor 4](https://ckeditor.com/ckeditor-4/) only.
8
7
 
9
8
  ## Features
10
9
 
11
- * CKEditor version 4.7.1 full (28 Jun 2017)
12
- * Rails 5.0.x, 5.1.x, 4.2.x integration
10
+ * CKEditor version 4.x (https://ckeditor.com/ckeditor-4/)
11
+ * Rails 5.x, 4.2.x integration
13
12
  * Files browser
14
13
  * HTML5 file uploader
15
14
  * Hooks for formtastic and simple_form forms generators
16
- * Integrated with authorization framework CanCan and Pundit
15
+ * Integrated with authorization frameworks [CanCanCan](https://github.com/CanCanCommunity/cancancan) and [Pundit](https://github.com/varvet/pundit)
17
16
 
18
17
  ## Installation
19
18
 
@@ -29,16 +28,16 @@ or if you'd like to use the latest version from Github:
29
28
  gem 'ckeditor', github: 'galetahub/ckeditor'
30
29
  ```
31
30
 
32
- The last version works with Rails 3.2.x is 4.1.3
31
+ Include this inside your `config/initializers/assets.rb`:
33
32
 
34
- ```ruby
35
- gem 'ckeditor', '4.1.3'
33
+ ```
34
+ Rails.application.config.assets.precompile += %w[ckeditor/config.js]
36
35
  ```
37
36
 
38
37
  For file upload support, you must generate the necessary file storage models.
39
38
  The currently supported backends are:
40
39
 
41
- * ActiveRecord (paperclip, carrierwave, dragonfly, refile)
40
+ * ActiveRecord (active_storage, paperclip, carrierwave, dragonfly)
42
41
  * Mongoid (paperclip, carrierwave, dragonfly)
43
42
 
44
43
  ### How to generate models to store uploaded files
@@ -53,22 +52,22 @@ gem 'paperclip'
53
52
  rails generate ckeditor:install --orm=active_record --backend=paperclip
54
53
  ```
55
54
 
56
- #### ActiveRecord + carrierwave
55
+ #### ActiveRecord + active_storage
57
56
 
58
57
  ```
59
- gem 'carrierwave'
60
- gem 'mini_magick'
58
+ gem "mini_magick"
61
59
 
62
- rails generate ckeditor:install --orm=active_record --backend=carrierwave
60
+ rails active_storage:install # if you not install active_storage yet
61
+ rails generate ckeditor:install --orm=active_record --backend=active_storage
63
62
  ```
64
63
 
65
- #### ActiveRecord + refile
64
+ #### ActiveRecord + carrierwave
66
65
 
67
66
  ```
68
- gem 'refile', require: "refile/rails"
69
- gem 'refile-mini_magick'
67
+ gem 'carrierwave'
68
+ gem 'mini_magick'
70
69
 
71
- rails generate ckeditor:install --orm=active_record --backend=refile
70
+ rails generate ckeditor:install --orm=active_record --backend=carrierwave
72
71
  ```
73
72
 
74
73
  #### ActiveRecord + dragonfly
@@ -89,6 +88,10 @@ gem 'mongoid-paperclip', require: 'mongoid_paperclip'
89
88
  rails generate ckeditor:install --orm=mongoid --backend=paperclip
90
89
  ```
91
90
 
91
+ #### Mongoid + active_storage
92
+
93
+ Active Storage support **only** Active Record, see for [more info](https://github.com/rails/rails/issues/31408#issuecomment-351128111)
94
+
92
95
  #### Mongoid + carrierwave
93
96
 
94
97
  ```
@@ -115,14 +118,6 @@ mount Ckeditor::Engine => '/ckeditor'
115
118
 
116
119
  ## Usage
117
120
 
118
- ### Load editor from gem vendor
119
-
120
- Include ckeditor javascripts in your `app/assets/javascripts/application.js`:
121
-
122
- ```
123
- //= require ckeditor/init
124
- ```
125
-
126
121
  ### Load editor via CKEditor CDN
127
122
 
128
123
  Setup editor version to load (more info here http://cdn.ckeditor.com/)
@@ -147,7 +142,7 @@ Precompile ckeditor/config.js:
147
142
  ```ruby
148
143
  # in config/initializers/assets.rb
149
144
 
150
- Rails.application.config.assets.precompile += %w(ckeditor/config.js)
145
+ Rails.application.config.assets.precompile += %w[ckeditor/config.js]
151
146
  ```
152
147
 
153
148
  ### Form helpers
@@ -159,6 +154,13 @@ Rails.application.config.assets.precompile += %w(ckeditor/config.js)
159
154
  = cktext_area :page, :info, cols: 40, ckeditor: { uiColor: '#AADC6E', toolbar: 'mini' }
160
155
  ```
161
156
 
157
+ *It also works with bootstrap-form*
158
+
159
+ ```slim
160
+ = bootstrap_form_for resource do |form|
161
+ = form.cktext_area :text, ckeditor: { language: 'uk'}
162
+ ```
163
+
162
164
  ### Customize ckeditor
163
165
 
164
166
  All ckeditor options can be found [here](http://docs.ckeditor.com/#!/api/CKEDITOR.config)
@@ -184,7 +186,7 @@ CKEDITOR.editorConfig = function (config) {
184
186
  config.toolbar_mini = [
185
187
  ["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
186
188
  ];
187
- config.toolbar = "simple";
189
+ config.toolbar = "mini";
188
190
 
189
191
  // ... rest of the original config.js ...
190
192
  }
@@ -192,44 +194,15 @@ CKEDITOR.editorConfig = function (config) {
192
194
 
193
195
  When overriding the default `config.js` file, you must set all configuration options yourself as the bundled `config.js` will not be loaded. To see the default configuration, run `bundle open ckeditor`, copy `app/assets/javascripts/ckeditor/config.js` into your project and customize it to your needs.
194
196
 
195
- ### Deployment (only if you use ckeditor from gem vendor)
196
-
197
- For Rails 4 and 5, add the following to `config/initializers/assets.rb`:
198
-
199
- ```ruby
200
- Rails.application.config.assets.precompile += %w( ckeditor/* )
201
- ```
197
+ #### Install additional plugins
202
198
 
203
- As of version 4.1.0, non-digested assets of Ckeditor will simply be copied after digested assets were compiled.
204
- For older versions, use gem [non-stupid-digest-assets](https://rubygems.org/gems/non-stupid-digest-assets), to copy non digest assets.
199
+ You should download necessary plugins with all dependencies and extract them in `app/assets/javascripts/ckeditor/plugins/`.
200
+ After that you can include your plugins in `app/assets/javascripts/ckeditor/config.js` in this way:
205
201
 
206
- To reduce the asset precompilation time, you can limit plugins and/or languages to those you need:
207
-
208
- ```ruby
209
- # in config/initializers/ckeditor.rb
210
-
211
- Ckeditor.setup do |config|
212
- config.assets_languages = ['en', 'fr']
213
- config.assets_plugins = ['image', 'smiley']
214
- end
215
- ```
216
-
217
- Note that you have to list your plugins, including all their dependencies.
218
-
219
- ### Include customized CKEDITOR_BASEPATH setting
220
-
221
- Add your app/assets/javascripts/ckeditor/basepath.js.erb like
222
-
223
- ```erb
224
- <%
225
- base_path = ''
226
- if ENV['PROJECT'] =~ /editor/i
227
- base_path << "/#{Rails.root.basename.to_s}/"
228
- end
229
- base_path << Rails.application.config.assets.prefix
230
- base_path << '/ckeditor/'
231
- %>
232
- var CKEDITOR_BASEPATH = '<%= base_path %>';
202
+ ```javascript
203
+ CKEDITOR.editorConfig = function (config) {
204
+ config.extraPlugins = 'eqneditor,autosave,';
205
+ }
233
206
  ```
234
207
 
235
208
  ### AJAX
@@ -256,6 +229,9 @@ jQuery sample:
256
229
  ```
257
230
 
258
231
  ### SimpleForm integration
232
+ Note that the toolbar option should match the case specified in the config. If the config is not found it defaults to all available toolbar items.
233
+
234
+ i.e. config.toolbar_mini becomes {toolbar: 'mini'} in the form.
259
235
 
260
236
  ```slim
261
237
  = form.input :content, as: :ckeditor, input_html: { ckeditor: { toolbar: 'Full' } }
@@ -274,7 +250,7 @@ $(document).on('page:load', ready)
274
250
  ```
275
251
  Make sure the file is loaded from your app/assets/javascripts/application.js
276
252
 
277
- ### CanCan integration
253
+ ### CanCanCan integration
278
254
 
279
255
  To use cancan with Ckeditor, add this to an initializer:
280
256
 
@@ -282,12 +258,12 @@ To use cancan with Ckeditor, add this to an initializer:
282
258
  # in config/initializers/ckeditor.rb
283
259
 
284
260
  Ckeditor.setup do |config|
285
- config.authorize_with :cancan
261
+ config.authorize_with :cancancan
286
262
  end
287
263
  ```
288
264
 
289
265
  At this point, all authorization will fail and no one will be able to access the filebrowser pages.
290
- To grant access, add this to Ability#initialize:
266
+ To grant access, add the following abilities (usually `ability.rb`)
291
267
 
292
268
  ```ruby
293
269
  # Always performed
@@ -298,37 +274,50 @@ can [:read, :create, :destroy], Ckeditor::Picture
298
274
  can [:read, :create, :destroy], Ckeditor::AttachmentFile
299
275
  ```
300
276
 
301
- ### Pundit integration
277
+ ### Pundit or Action Policy Integration
302
278
 
303
- Just like CanCan, you can write this code in your config/initializers/ckeditor.rb file:
279
+ Setup Pundit and Action Policy similar.
280
+ Just like CanCanCan, you can write this code in your config/initializers/ckeditor.rb file:
304
281
 
305
282
  ```ruby
306
283
  Ckeditor.setup do |config|
307
- config.authorize_with :pundit
284
+ config.authorize_with :pundit # or :action_policy
308
285
  end
309
286
  ```
310
287
 
311
288
  Then, generate the policy files for model **Picture** and **AttachmentFile**
312
289
 
313
290
  ```
314
- $ rails g ckeditor:pundit_policy
291
+ $ rails g ckeditor:pundit_policy # or ckeditor:action_policy
315
292
  ```
316
293
  By this command, you will got two files:
317
294
  > app/policies/ckeditor/picture_policy.rb
318
295
  app/policies/ckeditor/attachment_file_policy.rb
319
296
 
320
- By default, only the user that logged in can access the models (with actions *index* and *create*) and only the owner of the asset can **destroy** the resource.
297
+ By default, only the user that logged in can access the models.
321
298
 
322
299
  You can customize these two policy files as you like.
323
300
 
324
301
  ## Engine configuration
325
- * To override the default CKEditor routes create a [config.js](https://github.com/galetahub/ckeditor/blob/master/app/assets/javascripts/ckeditor/config.js) file within the host application at `app/assets/javascripts/ckeditor/config.js`
326
- * To override the default parent controller
302
+
303
+ * To override the default CKEditor routes create a [config.js](https://github.com/galetahub/ckeditor/blob/master/app/assets/javascripts/ckeditor/config.js) file within the host application at `app/assets/javascripts/ckeditor/config.js`
304
+
305
+ * By default, the engine inherits from `ApplicationController`. To override the default parent controller:
327
306
  ```
328
307
  # in config/initializers/ckeditor.rb
329
308
 
330
309
  Ckeditor.setup do |config|
331
- config.parent_controller = 'MyController'
310
+ config.parent_controller = 'MyCKEditorBaseController'
311
+ end
312
+ ```
313
+
314
+ Based on this, if you want to secure CKEditor controller actions and you can't authenticate in ApplicationController, you could do so with a custom controller after configuring the override above, like so:
315
+
316
+ ```
317
+ class MyCKEditorBaseController < ActionController::Base
318
+
319
+ before_action :authenticate_user! # or some other auth/permission logic here, like Pundit
320
+
332
321
  end
333
322
  ```
334
323
 
@@ -350,9 +339,10 @@ en:
350
339
 
351
340
  ```bash
352
341
  $> rake test CKEDITOR_BACKEND=paperclip
342
+ $> rake test CKEDITOR_BACKEND=active_storage
353
343
  $> rake test CKEDITOR_BACKEND=carrierwave
354
- $> rake test CKEDITOR_BACKEND=refile
355
344
  $> rake test CKEDITOR_BACKEND=dragonfly
345
+ $> rake test CKEDITOR_BACKEND=shrine
356
346
  $> rake test CKEDITOR_ORM=mongoid
357
347
 
358
348
  $> rake test:controllers
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
- # encoding: UTF-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'rubygems'
3
4
  begin
4
5
  require 'bundler/setup'
@@ -8,53 +9,60 @@ end
8
9
 
9
10
  require 'rake'
10
11
  require 'rdoc/task'
11
-
12
12
  require 'rake/testtask'
13
13
 
14
+ require 'bundler/gem_tasks'
15
+
16
+ task default: :test
17
+
14
18
  Rake::TestTask.new(:test) do |t|
15
19
  t.libs << 'lib'
16
20
  t.libs << 'test'
17
21
  t.pattern = 'test/**/*_test.rb'
18
22
  t.verbose = false
23
+ t.warning = false
19
24
  end
20
25
 
21
- Rake::TestTask.new("test:controllers") do |t|
26
+ Rake::TestTask.new('test:controllers') do |t|
22
27
  t.libs << 'lib'
23
28
  t.libs << 'test'
24
29
  t.pattern = 'test/controllers/*_test.rb'
25
30
  t.verbose = false
31
+ t.warning = false
26
32
  end
27
33
 
28
- Rake::TestTask.new("test:generators") do |t|
34
+ Rake::TestTask.new('test:generators') do |t|
29
35
  t.libs << 'lib'
30
36
  t.libs << 'test'
31
37
  t.pattern = 'test/generators/*_test.rb'
32
38
  t.verbose = false
39
+ t.warning = false
33
40
  end
34
41
 
35
- Rake::TestTask.new("test:integration") do |t|
42
+ Rake::TestTask.new('test:integration') do |t|
36
43
  t.libs << 'lib'
37
44
  t.libs << 'test'
38
45
  t.pattern = 'test/integration/*_test.rb'
39
46
  t.verbose = false
47
+ t.warning = false
40
48
  end
41
49
 
42
- Rake::TestTask.new("test:models") do |t|
50
+ Rake::TestTask.new('test:models') do |t|
43
51
  t.libs << 'lib'
44
52
  t.libs << 'test'
45
53
  t.pattern = 'test/models/*_test.rb'
46
54
  t.verbose = false
55
+ t.warning = false
47
56
  end
48
57
 
49
- Rake::TestTask.new("test:functional") do |t|
58
+ Rake::TestTask.new('test:functional') do |t|
50
59
  t.libs << 'lib'
51
60
  t.libs << 'test'
52
61
  t.pattern = 'test/functional/*_test.rb'
53
62
  t.verbose = false
63
+ t.warning = false
54
64
  end
55
65
 
56
- task :default => :test
57
-
58
66
  RDoc::Task.new do |rdoc|
59
67
  rdoc.rdoc_dir = 'rdoc'
60
68
  rdoc.title = 'Ckeditor'
@@ -32,6 +32,7 @@ CKEDITOR.editorConfig = function( config )
32
32
  config.filebrowserUploadUrl = "/ckeditor/attachment_files";
33
33
 
34
34
  config.allowedContent = true;
35
+ config.filebrowserUploadMethod = 'form';
35
36
 
36
37
  // Toolbar groups configuration.
37
38
  config.toolbar = [
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize
2
4
  layout Ckeditor.controller_layout
3
5
 
@@ -9,6 +11,7 @@ class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize
9
11
 
10
12
  def respond_with_asset(asset)
11
13
  asset_response = Ckeditor::AssetResponse.new(asset, request)
14
+ asset.data = asset_response.data
12
15
 
13
16
  if asset.save
14
17
  render asset_response.success(config.relative_url_root)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFilesController < Ckeditor::ApplicationController
2
4
  skip_before_action :verify_authenticity_token, only: :create, raise: false
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::PicturesController < Ckeditor::ApplicationController
2
4
  skip_before_action :verify_authenticity_token, only: :create, raise: false
3
5
 
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor::ApplicationHelper
2
4
  end
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
 
8
8
  <div class="fileupload-list">
9
- <%= render partial: 'ckeditor/shared/asset', collection: @attachments %>
9
+ <%= render partial: 'ckeditor/shared/asset', collection: @attachments.scoped %>
10
10
  </div>
11
11
 
12
12
  <% unless @attachments.last_page? %>
@@ -0,0 +1,9 @@
1
+ da:
2
+ ckeditor:
3
+ page_title: "CKEditor Fil Manager"
4
+ confirm_delete: "Slet fil?"
5
+ buttons:
6
+ cancel: "Annuller"
7
+ upload: "Upload"
8
+ delete: "Slet"
9
+ next: "Næste"
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Ckeditor::Engine.routes.draw do
2
4
  resources :pictures, only: [:index, :create, :destroy]
3
5
  resources :attachment_files, only: [:index, :create, :destroy]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'action_view/helpers/tag_helper'
2
4
  require 'action_view/helpers/javascript_helper'
3
5
 
@@ -6,17 +8,19 @@ module Ckeditor
6
8
  include ActionView::Helpers::TagHelper
7
9
  include ActionView::Helpers::JavaScriptHelper
8
10
 
9
- FUNCTION = 'window.parent.CKEDITOR.tools.callFunction'.freeze
10
- JSON_TYPE = 'json'.freeze
11
+ FUNCTION = 'window.parent.CKEDITOR.tools.callFunction'
12
+ JSON_TYPE = 'json'
11
13
 
12
- attr_reader :asset, :params
14
+ attr_reader :asset, :request, :params
13
15
 
14
16
  def initialize(asset, request)
15
17
  @asset = asset
16
18
  @request = request
17
19
  @params = request.params
20
+ end
18
21
 
19
- @asset.data = Ckeditor::Http.normalize_param(file, @request)
22
+ def data
23
+ @data ||= read_data
20
24
  end
21
25
 
22
26
  def json?
@@ -104,5 +108,12 @@ module Ckeditor
104
108
  :default
105
109
  end
106
110
  end
111
+
112
+ def read_data
113
+ data = Ckeditor::Http.normalize_param(file, request)
114
+ return if data.size.zero? || data.original_filename.blank?
115
+
116
+ data
117
+ end
107
118
  end
108
119
  end
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ckeditor
4
+ module Backend
5
+ module ActiveStorage
6
+ def self.included(base)
7
+ base.send(:include, Rails.application.routes.url_helpers)
8
+ base.send(:include, InstanceMethods)
9
+ base.send(:extend, ClassMethods)
10
+ end
11
+
12
+ module ClassMethods
13
+ def self.extended(base)
14
+ base.class_eval do
15
+ before_save :apply_data
16
+ validate do
17
+ if data.nil? || file.nil?
18
+ errors.add(:data, :not_data_present, message: "data must be present")
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ module InstanceMethods
26
+ def url
27
+ rails_blob_path(self.storage_data, only_path: true)
28
+ end
29
+
30
+ def path
31
+ rails_blob_path(self.storage_data, only_path: true)
32
+ end
33
+
34
+ def styles
35
+ end
36
+
37
+ def content_type
38
+ self.storage_data.content_type
39
+ end
40
+ def content_type=(_content_type)
41
+ self.storage_data.content_type = _content_type
42
+ end
43
+ protected
44
+
45
+ def file
46
+ @file ||= storage_data
47
+ end
48
+
49
+ def blob
50
+ @blob ||= ::ActiveStorage::Blob.find(file.attachment.blob_id)
51
+ end
52
+
53
+ def apply_data
54
+ if data.is_a?(Ckeditor::Http::QqFile)
55
+ storage_data.attach(io: data, filename: data.original_filename)
56
+ else
57
+ storage_data.attach(data)
58
+ end
59
+
60
+ self.data_file_name = storage_data.blob.filename
61
+ self.data_content_type = storage_data.blob.content_type
62
+ self.data_file_size = storage_data.blob.byte_size
63
+ end
64
+
65
+ end
66
+ end
67
+ end
68
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'mini_magick'
2
4
 
3
5
  module Ckeditor
@@ -11,7 +13,6 @@ module Ckeditor
11
13
  module ClassMethods
12
14
  def self.extended(base)
13
15
  base.class_eval do
14
- process :extract_content_type
15
16
  process :extract_size
16
17
  end
17
18
  end
@@ -36,21 +37,10 @@ module Ckeditor
36
37
  end
37
38
  end
38
39
 
39
- def extract_content_type
40
- model.data_content_type = Utils::ContentTypeDetector.new(file.path).detect
41
- end
42
-
43
40
  def extract_size
44
41
  model.data_file_size = file.size
45
42
  end
46
43
 
47
- def extract_dimensions
48
- if model.image? && model.has_dimensions?
49
- model.width = magick[:width]
50
- model.height = magick[:height]
51
- end
52
- end
53
-
54
44
  def magick
55
45
  @magick ||= ::MiniMagick::Image.new(current_path)
56
46
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Backend
3
5
  module Dragonfly