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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Backend
3
5
  module Paperclip
@@ -9,9 +11,6 @@ module Ckeditor
9
11
  module ClassMethods
10
12
  def self.extended(base)
11
13
  base.class_eval do
12
- before_validation :extract_content_type
13
- before_create :extract_dimensions
14
-
15
14
  delegate :url, :path, :styles, :content_type, to: :data
16
15
  end
17
16
  end
@@ -27,18 +26,6 @@ module Ckeditor
27
26
  def file
28
27
  @file ||= data.respond_to?(:queued_for_write) ? data.queued_for_write[:original] : data.to_file
29
28
  end
30
-
31
- def extract_dimensions
32
- if image? && has_dimensions?
33
- self.width = geometry.width
34
- self.height = geometry.height
35
- end
36
- end
37
-
38
- def extract_content_type
39
- path = file.nil? ? nil : file.path
40
- self.data_content_type = Utils::ContentTypeDetector.new(path).detect
41
- end
42
29
  end
43
30
  end
44
31
  end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ckeditor
4
+ module Backend
5
+ module Shrine
6
+ def self.included(base)
7
+ base.send(:include, InstanceMethods)
8
+ end
9
+
10
+ module InstanceMethods
11
+ def url
12
+ data_url
13
+ end
14
+
15
+ def data_file_name
16
+ datasource['filename']
17
+ end
18
+
19
+ def data_file_size
20
+ datasource['size']
21
+ end
22
+
23
+ def datasource
24
+ @datasource ||= data&.metadata || {}
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,8 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Helpers
3
5
  module Controllers
4
- extend ActiveSupport::Concern
5
-
6
6
  protected
7
7
 
8
8
  def ckeditor_current_user
@@ -1,8 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Helpers
3
5
  module FormBuilder
4
- extend ActiveSupport::Concern
5
-
6
6
  def cktext_area(method, options = {})
7
7
  @template.cktext_area(@object_name, method, objectify_options(options))
8
8
  end
@@ -1,8 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Helpers
3
5
  module FormHelper
4
- extend ActiveSupport::Concern
5
-
6
6
  def cktext_area(object_name, method, options = {})
7
7
  TextArea.new(self, options).render_instance_tag(object_name, method)
8
8
  end
@@ -1,8 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Helpers
3
5
  module ViewHelper
4
- extend ActiveSupport::Concern
5
-
6
6
  def cktext_area_tag(name, content = nil, options = {})
7
7
  TextArea.new(self, options).render_tag(name, content)
8
8
  end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'action_policy'
4
+
5
+ module Ckeditor
6
+ module Hooks
7
+ # This adapter is for the Action Policy[https://github.com/palkan/action_policy] authorization library.
8
+ # You can create another adapter for different authorization behavior, just be certain it
9
+ # responds to each of the public methods here.
10
+ class ActionPolicyAuthorization
11
+ include Ckeditor::Helpers::Controllers
12
+
13
+ # See the +authorize_with+ config method for where the initialization happens.
14
+ def initialize(controller)
15
+ @controller = controller
16
+ end
17
+
18
+ # This method is called in every controller action and should raise an exception
19
+ # when the authorization fails. The first argument is the name of the controller
20
+ # action as a symbol (:create, :destroy, etc.). The second argument is the actual model
21
+ # instance if it is available.
22
+ def authorize(_action, model_object = nil)
23
+ @controller.authorize!(model_object, context: {user: @controller.ckeditor_current_user})
24
+ end
25
+
26
+ # This method is called primarily from the view to determine whether the given user
27
+ # has access to perform the action on a given model. It should return true when authorized.
28
+ # This takes the same arguments as +authorize+. The difference is that this will
29
+ # return a boolean whereas +authorize+ will raise an exception when not authorized.
30
+ def authorized?(action, model_object = nil)
31
+ if action
32
+ @controller.allowed_to?(:"#{action}?",
33
+ model_object,
34
+ context: {user: @controller.ckeditor_current_user})
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ Ckeditor::AUTHORIZATION_ADAPTERS[:action_policy] = Ckeditor::Hooks::ActionPolicyAuthorization
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'cancan'
2
4
 
3
5
  module Ckeditor
4
6
  module Hooks
5
- # This adapter is for the CanCan[https://github.com/ryanb/cancan] authorization library.
7
+ # This adapter is for the CanCanCan[https://github.com/CanCanCommunity/cancancan] authorization library.
6
8
  # You can create another adapter for different authorization behavior, just be certain it
7
9
  # responds to each of the public methods here.
8
10
  class CanCanAuthorization
@@ -45,3 +47,4 @@ module Ckeditor
45
47
  end
46
48
 
47
49
  Ckeditor::AUTHORIZATION_ADAPTERS[:cancan] = Ckeditor::Hooks::CanCanAuthorization
50
+ Ckeditor::AUTHORIZATION_ADAPTERS[:cancancan] = Ckeditor::Hooks::CanCanAuthorization
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'formtastic'
2
4
 
3
5
  class CkeditorInput
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'pundit'
2
4
 
3
5
  module Ckeditor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simple_form'
2
4
 
3
5
  module Ckeditor
data/lib/ckeditor/http.rb CHANGED
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'digest/sha1'
3
4
 
4
5
  module Ckeditor
@@ -41,16 +42,16 @@ module Ckeditor
41
42
  class QqFile < ::Tempfile
42
43
  attr_reader :original_filename
43
44
 
44
- def initialize(filename, request, tmpdir = Dir.tmpdir)
45
+ def initialize(filename, request)
45
46
  @original_filename = filename
46
47
  @request = request
47
48
 
48
- super(Digest::SHA1.hexdigest(filename), tmpdir)
49
- binmode
49
+ super(Digest::SHA1.hexdigest(filename))
50
50
  fetch
51
51
  end
52
52
 
53
53
  def fetch
54
+ binmode
54
55
  write(body)
55
56
  rewind
56
57
  self
@@ -72,12 +73,14 @@ module Ckeditor
72
73
  # Convert nested Hash to HashWithIndifferentAccess and replace
73
74
  # file upload hash with UploadedFile objects
74
75
  def self.normalize_param(*args)
75
- value = args.first
76
+ value = args.compact.first
76
77
 
77
78
  if value.is_a?(Hash) && value.key?(:tempfile)
78
79
  UploadedFile.new(value)
79
80
  elsif value.is_a?(String)
80
81
  QqFile.new(*args)
82
+ elsif value.is_a?(ActionDispatch::Request)
83
+ value.params['upload']
81
84
  else
82
85
  value
83
86
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'ckeditor/orm/base'
2
4
 
3
5
  module Ckeditor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Orm
3
5
  module Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'orm_adapter/adapters/mongoid'
2
4
  require 'ckeditor/orm/base'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  # Simple paginate relation
3
5
  class Paginatable
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  class Engine < ::Rails::Engine
3
5
  isolate_namespace Ckeditor
@@ -24,6 +26,7 @@ module Ckeditor
24
26
 
25
27
  require 'ckeditor/hooks/cancan' if Object.const_defined?('CanCan')
26
28
  require 'ckeditor/hooks/pundit' if Object.const_defined?('Pundit')
29
+ require 'ckeditor/hooks/action_policy' if Object.const_defined?('ActionPolicy')
27
30
  end
28
31
 
29
32
  rake_tasks do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'action_view/helpers/tag_helper'
3
5
  require 'action_view/helpers/form_tag_helper'
@@ -40,7 +42,7 @@ module Ckeditor
40
42
  end
41
43
 
42
44
  def output_buffer
43
- @output_buffer ||= ActiveSupport::SafeBuffer.new
45
+ @output_buffer ||= ActionView::OutputBuffer.new
44
46
  end
45
47
 
46
48
  def build_tag(object_name, method)
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Ckeditor
4
4
  module Utils
@@ -1,11 +1,10 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  require 'active_support/json/encoding'
4
4
 
5
5
  module Ckeditor
6
6
  module Utils
7
7
  autoload :JavascriptCode, 'ckeditor/utils/javascript_code'
8
- autoload :ContentTypeDetector, 'ckeditor/utils/content_type_detector'
9
8
 
10
9
  class << self
11
10
  def escape_single_quotes(str)
@@ -72,43 +71,6 @@ module Ckeditor
72
71
  false
73
72
  end
74
73
  end
75
-
76
- def select_assets(path, relative_path)
77
- relative_folder = Ckeditor.root_path.join(relative_path)
78
- folder = relative_folder.join(path)
79
- extensions = '*.{js,css,png,gif,jpg,html}'
80
- languages = (Ckeditor.assets_languages || [])
81
-
82
- # Files at root
83
- files = Dir[folder.join(extensions)]
84
-
85
- # Filter plugins
86
- if Ckeditor.assets_plugins.nil?
87
- files += Dir[folder.join('plugins', '**', extensions)]
88
- else
89
- Ckeditor.assets_plugins.each do |plugin|
90
- files += Dir[folder.join('plugins', plugin, '**', extensions)]
91
- end
92
- end
93
-
94
- # Other folders
95
- Dir[folder.join('*/')].each do |subfolder|
96
- path = Pathname.new(subfolder)
97
- next if ['plugins'].include?(path.basename.to_s)
98
- files += Dir[path.join('**', extensions)]
99
- end
100
-
101
- files.inject([]) do |items, name|
102
- file = Pathname.new(name)
103
- base = file.basename('.*').to_s
104
-
105
- if !name.include?('/lang/') || languages.include?(base)
106
- items << file.relative_path_from(relative_folder).to_s
107
- end
108
-
109
- items
110
- end
111
- end
112
74
  end
113
75
  end
114
76
  end
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ckeditor
2
4
  module Version
3
- GEM = '4.2.4'.freeze
4
- EDITOR = '4.7.1'.freeze
5
+ GEM = '5.1.1'
6
+ EDITOR = '4.11.3'
5
7
  end
6
8
  end
data/lib/ckeditor.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'orm_adapter'
2
4
  require 'pathname'
3
5
 
@@ -19,13 +21,15 @@ module Ckeditor
19
21
  autoload :SimpleFormBuilder, 'ckeditor/hooks/simple_form'
20
22
  autoload :CanCanAuthorization, 'ckeditor/hooks/cancan'
21
23
  autoload :PunditAuthorization, 'ckeditor/hooks/pundit'
24
+ autoload :ActionPolicyAuthorization, 'ckeditor/hooks/action_policy'
22
25
  end
23
26
 
24
27
  module Backend
28
+ autoload :ActiveStorage, 'ckeditor/backend/active_storage'
25
29
  autoload :Paperclip, 'ckeditor/backend/paperclip'
26
30
  autoload :CarrierWave, 'ckeditor/backend/carrierwave'
27
31
  autoload :Dragonfly, 'ckeditor/backend/dragonfly'
28
- autoload :Refile, 'ckeditor/backend/refile'
32
+ autoload :Shrine, 'ckeditor/backend/shrine'
29
33
  end
30
34
 
31
35
  IMAGE_TYPES = %w[image/jpeg image/png image/gif image/jpg image/pjpeg image/tiff image/x-png].freeze
@@ -69,15 +73,9 @@ module Ckeditor
69
73
  mattr_accessor :default_per_page
70
74
  @@default_per_page = 24
71
75
 
72
- # Asset restrictions
73
- mattr_accessor :assets_languages
74
- mattr_accessor :assets_plugins
75
- @@assets_languages = nil
76
- @@assets_plugins = nil
77
-
78
76
  # CKEditor CDN
79
77
  mattr_accessor :cdn_url
80
- @@cdn_url = nil
78
+ @@cdn_url = '//cdn.ckeditor.com/4.11.3/standard/ckeditor.js'
81
79
 
82
80
  # Url to ckeditor config, used when CDN enabled
83
81
  mattr_accessor :js_config_url
@@ -123,11 +121,7 @@ module Ckeditor
123
121
 
124
122
  # All css and js files from ckeditor folder
125
123
  def self.assets
126
- @assets ||= if Ckeditor.cdn_enabled?
127
- ['ckeditor/config.js']
128
- else
129
- Utils.select_assets('ckeditor', 'vendor/assets/javascripts') << 'ckeditor/init.js'
130
- end
124
+ @assets ||= Ckeditor.cdn_enabled? ? ['ckeditor/config.js'] : []
131
125
  end
132
126
 
133
127
  def self.assets=(value)
@@ -201,11 +195,11 @@ module Ckeditor
201
195
  # end
202
196
  #
203
197
  # To use an authorization adapter, pass the name of the adapter. For example,
204
- # to use with CanCan[https://github.com/ryanb/cancan], pass it like this.
198
+ # to use with CanCanCan[https://github.com/CanCanCommunity/cancancan], pass it like this.
205
199
  #
206
- # @example CanCan
200
+ # @example CanCanCan
207
201
  # Ckeditor.setup do |config|
208
- # config.authorize_with :cancan
202
+ # config.authorize_with :cancancan
209
203
  # end
210
204
  #
211
205
  def self.authorize_with(*args, &block)
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/generators'
4
+
5
+ module Ckeditor
6
+ module Generators
7
+ class ActionPolicyGenerator < Rails::Generators::Base
8
+ desc 'Generates policy files for Action Policy'
9
+
10
+ def self.source_root
11
+ @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
12
+ end
13
+
14
+ # copy configuration
15
+ def copy_policy_files
16
+ [:picture, :attachment_file].each do |model_name|
17
+ template "action_policy/#{model_name}_policy.rb", "app/policies/ckeditor/#{model_name}_policy.rb"
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails/generators'
2
4
  require 'rails/generators/migration'
3
5
 
@@ -13,14 +15,14 @@ module Ckeditor
13
15
  desc: 'Backend processor for upload support'
14
16
 
15
17
  class_option :backend, type: :string, default: 'paperclip',
16
- desc: 'paperclip (default), carrierwave, refile or dragonfly'
18
+ desc: 'paperclip (default), active_storage, carrierwave or dragonfly'
17
19
 
18
20
  def self.source_root
19
21
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
20
22
  end
21
23
 
22
24
  def self.next_migration_number(_dirname)
23
- Time.now.strftime('%Y%m%d%H%M%S')
25
+ Time.now.utc.strftime('%Y%m%d%H%M%S')
24
26
  end
25
27
 
26
28
  # copy configuration
@@ -30,6 +32,10 @@ module Ckeditor
30
32
  if backend_dragonfly?
31
33
  template 'base/dragonfly/initializer.rb', 'config/initializers/ckeditor_dragonfly.rb'
32
34
  end
35
+
36
+ if backend_shrine?
37
+ template 'base/shrine/initializer.rb', 'config/initializers/ckeditor_shrine.rb'
38
+ end
33
39
  end
34
40
 
35
41
  def mount_engine
@@ -52,10 +58,10 @@ module Ckeditor
52
58
  end
53
59
 
54
60
  def create_ckeditor_migration
55
- if ['active_record'].include?(orm)
56
- migration_template "#{generator_dir}/migration.rb",
57
- File.join('db/migrate', 'create_ckeditor_assets.rb')
58
- end
61
+ return unless ['active_record'].include?(orm)
62
+
63
+ migration_template "#{generator_dir}/migration.rb",
64
+ File.join('db/migrate', 'create_ckeditor_assets.rb')
59
65
  end
60
66
 
61
67
  protected
@@ -68,6 +74,10 @@ module Ckeditor
68
74
  backend == 'dragonfly'
69
75
  end
70
76
 
77
+ def backend_shrine?
78
+ backend == 'shrine'
79
+ end
80
+
71
81
  def ckeditor_dir
72
82
  'ckeditor'
73
83
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails/generators'
2
4
 
3
5
  module Ckeditor
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ckeditor::AttachmentFilePolicy < ApplicationPolicy
4
+ # See https://actionpolicy.evilmartians.io/#/writing_policies
5
+ #
6
+
7
+ def index?
8
+ user.present?
9
+ end
10
+
11
+ def create?
12
+ user.present?
13
+ end
14
+
15
+ def destroy?
16
+ user.present?
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ckeditor::PicturePolicy < ApplicationPolicy
4
+ # See https://actionpolicy.evilmartians.io/#/writing_policies
5
+ #
6
+
7
+ def index?
8
+ user.present?
9
+ end
10
+
11
+ def create?
12
+ user.present?
13
+ end
14
+
15
+ def destroy?
16
+ user.present?
17
+ end
18
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ckeditor::Asset < ActiveRecord::Base
4
+ include Ckeditor::Orm::ActiveRecord::AssetBase
5
+ include Ckeditor::Backend::ActiveStorage
6
+
7
+ attr_accessor :data
8
+
9
+ has_one_attached :storage_data
10
+ end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFile < Ckeditor::Asset
2
- attachment :data, extension: attachment_file_types
4
+ # for validation, see https://github.com/igorkasyanchuk/active_storage_validations
3
5
 
4
6
  def url_thumb
5
7
  @url_thumb ||= Ckeditor::Utils.filethumb(filename)
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ckeditor::Picture < Ckeditor::Asset
4
+ # for validation, see https://github.com/igorkasyanchuk/active_storage_validations
5
+
6
+ def url_content
7
+ rails_representation_url(storage_data.variant(resize: '800>').processed, only_path: true)
8
+ end
9
+
10
+ def url_thumb
11
+ rails_representation_url(storage_data.variant(resize: '118x100').processed, only_path: true)
12
+ end
13
+ end
@@ -1,15 +1,17 @@
1
- class CreateCkeditorAssets < ActiveRecord::Migration
2
- def self.up
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCkeditorAssets < ActiveRecord::Migration[5.2]
4
+ def up
3
5
  create_table :ckeditor_assets do |t|
4
- t.string :data_id, null: false
5
- t.string :data_filename, null: false
6
- t.integer :data_size
6
+ t.string :data_file_name, null: false
7
7
  t.string :data_content_type
8
+ t.integer :data_file_size
9
+ t.string :data_fingerprint
8
10
  t.string :type, limit: 30
9
11
 
10
12
  # Uncomment it to save images dimensions, if your need it
11
- t.integer :width
12
- t.integer :height
13
+ # t.integer :width
14
+ # t.integer :height
13
15
 
14
16
  t.timestamps null: false
15
17
  end
@@ -17,7 +19,7 @@ class CreateCkeditorAssets < ActiveRecord::Migration
17
19
  add_index :ckeditor_assets, :type
18
20
  end
19
21
 
20
- def self.down
22
+ def down
21
23
  drop_table :ckeditor_assets
22
24
  end
23
25
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Asset < ActiveRecord::Base
2
4
  include Ckeditor::Orm::ActiveRecord::AssetBase
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFile < Ckeditor::Asset
2
4
  mount_uploader :data, CkeditorAttachmentFileUploader, mount_on: :data_file_name
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Picture < Ckeditor::Asset
2
4
  mount_uploader :data, CkeditorPictureUploader, mount_on: :data_file_name
3
5