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,5 +1,7 @@
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
6
  t.string :data_file_name, null: false
5
7
  t.string :data_content_type
@@ -7,8 +9,8 @@ class CreateCkeditorAssets < ActiveRecord::Migration
7
9
  t.string :type, limit: 30
8
10
 
9
11
  # Uncomment it to save images dimensions, if your need it
10
- t.integer :width
11
- t.integer :height
12
+ # t.integer :width
13
+ # t.integer :height
12
14
 
13
15
  t.timestamps null: false
14
16
  end
@@ -16,7 +18,7 @@ class CreateCkeditorAssets < ActiveRecord::Migration
16
18
  add_index :ckeditor_assets, :type
17
19
  end
18
20
 
19
- def self.down
21
+ def down
20
22
  drop_table :ckeditor_assets
21
23
  end
22
24
  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
  include Ckeditor::Backend::Dragonfly
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFile < Ckeditor::Asset
2
4
  validates_property :ext, of: :data, in: attachment_file_types unless attachment_file_types.empty?
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Picture < Ckeditor::Asset
2
4
  validates_property :format, of: :data, in: image_file_types unless image_file_types.empty?
3
5
  validates_property :image?, of: :data, as: true, message: :invalid
@@ -1,5 +1,7 @@
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
6
  t.string :data_uid, null: false
5
7
  t.string :data_name, null: false
@@ -8,8 +10,8 @@ class CreateCkeditorAssets < ActiveRecord::Migration
8
10
  t.string :type, limit: 30
9
11
 
10
12
  # Uncomment these to save image dimensions, if your need them.
11
- t.integer :data_width
12
- t.integer :data_height
13
+ # t.integer :data_width
14
+ # t.integer :data_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
  include Ckeditor::Backend::Paperclip
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFile < Ckeditor::Asset
2
4
  has_attached_file :data,
3
5
  url: '/ckeditor_assets/attachments/:id/:filename',
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Picture < Ckeditor::Asset
2
4
  has_attached_file :data,
3
5
  url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
@@ -1,5 +1,7 @@
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
6
  t.string :data_file_name, null: false
5
7
  t.string :data_content_type
@@ -7,9 +9,9 @@ class CreateCkeditorAssets < ActiveRecord::Migration
7
9
  t.string :data_fingerprint
8
10
  t.string :type, limit: 30
9
11
 
10
- # Uncomment it to save images dimensions, if your need it
11
- t.integer :width
12
- t.integer :height
12
+ # Uncomment it to save images dimensions, if your need it
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,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  require 'carrierwave'
3
4
 
4
5
  class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  class CkeditorPictureUploader < CarrierWave::Uploader::Base
3
4
  include Ckeditor::Backend::CarrierWave
4
5
 
@@ -28,8 +29,6 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
28
29
  # # do something
29
30
  # end
30
31
 
31
- process :extract_dimensions
32
-
33
32
  # Create different versions of your uploaded files:
34
33
  version :thumb do
35
34
  process resize_to_fill: [118, 100]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load Dragonfly if it isn't loaded already.
2
4
  require 'dragonfly'
3
5
 
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'shrine'
4
+ require 'shrine/storage/file_system'
5
+ require 'ckeditor/backend/shrine'
6
+
7
+ # Choose your favorite image processor
8
+ require 'image_processing/mini_magick'
9
+ SHRINE_PICTURE_PROCESSOR = ImageProcessing::MiniMagick
10
+
11
+ # require 'image_processing/vips'
12
+ # SHRINE_PICTURE_PROCESSOR = ImageProcessing::Vips
13
+
14
+ Shrine.storages = {
15
+ cache: Shrine::Storage::FileSystem.new('public', prefix: 'uploads/cache'),
16
+ store: Shrine::Storage::FileSystem.new('public', prefix: 'system')
17
+ }
18
+
19
+ Shrine.plugin :determine_mime_type
20
+ Shrine.plugin :mongoid
21
+ Shrine.plugin :instrumentation
22
+
23
+ Shrine.plugin :validation_helpers
24
+ Shrine.plugin :processing
25
+ Shrine.plugin :versions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Use this hook to configure ckeditor
2
4
  Ckeditor.setup do |config|
3
5
  # ==> ORM configuration
@@ -23,7 +25,7 @@ Ckeditor.setup do |config|
23
25
 
24
26
  # Setup authorization to be run as a before filter
25
27
  # By default: there is no authorization.
26
- # config.authorize_with :cancan
28
+ # config.authorize_with :cancancan
27
29
 
28
30
  # Override parent controller CKEditor inherits from
29
31
  # By default: 'ApplicationController'
@@ -41,11 +43,6 @@ Ckeditor.setup do |config|
41
43
  # By default: nil
42
44
  # config.asset_path = 'http://www.example.com/assets/ckeditor/'
43
45
 
44
- # To reduce the asset precompilation time, you can limit plugins and/or languages to those you need:
45
- # By default: nil (no limit)
46
- # config.assets_languages = ['en', 'uk']
47
- # config.assets_plugins = ['image', 'smiley']
48
-
49
46
  # CKEditor CDN
50
47
  # More info here http://cdn.ckeditor.com/
51
48
  # By default: nil (CDN disabled)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Asset
2
4
  include Ckeditor::Orm::Mongoid::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
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Asset
2
4
  include Ckeditor::Orm::Mongoid::AssetBase
3
5
  include Mongoid::Paperclip
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFile < Ckeditor::Asset
2
4
  has_mongoid_attached_file :data,
3
5
  url: '/ckeditor_assets/attachments/:id/:filename',
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::Picture < Ckeditor::Asset
2
4
  has_mongoid_attached_file :data,
3
5
  url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Ckeditor::Asset
4
+ include Ckeditor::Orm::Mongoid::AssetBase
5
+ include Ckeditor::Backend::Shrine
6
+
7
+ field :data_data, type: Hash
8
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ckeditor
4
+ class AttachmentFileUploader < Shrine
5
+ plugin :validation_helpers
6
+
7
+ Attacher.validate do
8
+ validate_max_size 100.megabytes
9
+ end
10
+ end
11
+
12
+ class AttachmentFile < Ckeditor::Asset
13
+ include AttachmentFileUploader.attachment(:data)
14
+
15
+ validates :data, presence: true
16
+
17
+ def url_thumb
18
+ @url_thumb ||= Ckeditor::Utils.filethumb(filename)
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ module Ckeditor
3
+ class PictureUploader < Shrine
4
+ plugin :determine_mime_type
5
+ plugin :validation_helpers
6
+ plugin :processing
7
+ plugin :versions
8
+
9
+ Attacher.validate do
10
+ validate_mime_type_inclusion %w[image/jpeg image/gif image/png]
11
+ validate_max_size 2.megabytes
12
+ end
13
+
14
+ process(:store) do |io, _context|
15
+ # return the hash of processed files
16
+ {}.tap do |versions|
17
+ io.download do |original|
18
+ pipeline = SHRINE_PICTURE_PROCESSOR.source(original)
19
+
20
+ versions[:content] = pipeline.resize_to_limit!(800, 800)
21
+ versions[:thumb] = pipeline.resize_to_limit!(118, 100)
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ class Picture < Ckeditor::Asset
28
+ include PictureUploader.attachment(:data)
29
+
30
+ validates :data, presence: true
31
+
32
+ def url_content
33
+ data_url(:content)
34
+ end
35
+
36
+ def url_thumb
37
+ data_url(:thumb)
38
+ end
39
+
40
+ def path
41
+ data[:thumb].storage.path(data[:thumb].id)
42
+ end
43
+
44
+ def datasource
45
+ @datasource ||= HashWithIndifferentAccess
46
+ .new(data)
47
+ .fetch(:thumb, OpenStruct.new(metadata: {}))
48
+ .metadata
49
+ end
50
+ end
51
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::AttachmentFilePolicy
2
4
  attr_reader :user, :attachment
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Ckeditor::PicturePolicy
2
4
  attr_reader :user, :picture
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
 
3
5
  namespace :ckeditor do
@@ -1,10 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class AttachmentFilesControllerTest < ActionController::TestCase
4
6
  tests Ckeditor::AttachmentFilesController
5
7
 
6
- include RawPost
7
-
8
8
  def setup
9
9
  @attachment = fixture_file_upload('files/rails.tar.gz', 'application/x-gzip')
10
10
  @routes = Ckeditor::Engine.routes
@@ -14,48 +14,50 @@ class AttachmentFilesControllerTest < ActionController::TestCase
14
14
  Ckeditor::AttachmentFile.destroy_all
15
15
  end
16
16
 
17
- test "index action" do
17
+ test 'index action' do
18
18
  get :index
19
19
 
20
20
  assert_equal 200, @response.status
21
- assert_template "ckeditor/attachment_files/index"
21
+ assert_template 'ckeditor/attachment_files/index'
22
22
  end
23
23
 
24
- test "create action via filebrowser" do
24
+ test 'create action via filebrowser' do
25
25
  assert_difference 'Ckeditor::AttachmentFile.count' do
26
- post :create, :qqfile => @attachment
26
+ post :create, params: { qqfile: @attachment }
27
27
  end
28
28
 
29
29
  assert_equal 200, @response.status
30
30
  end
31
31
 
32
- test "create action via CKEditor upload form" do
32
+ test 'create action via CKEditor upload form' do
33
33
  assert_difference 'Ckeditor::AttachmentFile.count' do
34
- post :create, :upload => @attachment, :CKEditor => 'ckeditor_field'
34
+ post :create, params: { upload: @attachment, CKEditor: 'ckeditor_field' }
35
35
  end
36
36
 
37
37
  assert_equal 200, @response.status
38
38
  end
39
39
 
40
- test "create action via html5 upload" do
40
+ test 'create action via html5 upload' do
41
+ params = { qqfile: @attachment.original_filename }
42
+
41
43
  assert_difference 'Ckeditor::AttachmentFile.count' do
42
- raw_post :create, { :qqfile => @attachment.original_filename }, @attachment.read
44
+ post :create, params: params, body: @attachment.read
43
45
  end
44
46
 
45
47
  assert_equal 200, @response.status
46
48
  end
47
49
 
48
- test "invalid params for create action" do
50
+ test 'invalid params for create action' do
49
51
  assert_no_difference 'Ckeditor::AttachmentFile.count' do
50
- post :create, :qqfile => nil, :format => :html
52
+ post :create, params: { qqfile: nil, format: :html }
51
53
  end
52
54
  end
53
55
 
54
- test "destroy action via filebrowser" do
55
- @attachment_file = Ckeditor::AttachmentFile.create :data => @attachment
56
+ test 'destroy action via filebrowser' do
57
+ @attachment_file = Ckeditor::AttachmentFile.create data: @attachment
56
58
 
57
59
  assert_difference 'Ckeditor::AttachmentFile.count', -1 do
58
- delete :destroy, :id => @attachment_file.id
60
+ delete :destroy, params: { id: @attachment_file.id }
59
61
  end
60
62
 
61
63
  assert_equal 302, @response.status
@@ -1,10 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class PicturesControllerTest < ActionController::TestCase
4
6
  tests Ckeditor::PicturesController
5
7
 
6
- include RawPost
7
-
8
8
  def setup
9
9
  @image = fixture_file_upload('files/rails.png', 'image/png')
10
10
  @routes = Ckeditor::Engine.routes
@@ -14,48 +14,50 @@ class PicturesControllerTest < ActionController::TestCase
14
14
  Ckeditor::Picture.destroy_all
15
15
  end
16
16
 
17
- test "index action" do
17
+ test 'index action' do
18
18
  get :index
19
19
 
20
20
  assert_equal 200, @response.status
21
- assert_template "ckeditor/pictures/index"
21
+ assert_template 'ckeditor/pictures/index'
22
22
  end
23
23
 
24
- test "create action via filebrowser" do
24
+ test 'create action via filebrowser' do
25
25
  assert_difference 'Ckeditor::Picture.count' do
26
- post :create, :qqfile => @image
26
+ post :create, params: { qqfile: @image }
27
27
  end
28
28
 
29
29
  assert_equal 200, @response.status
30
30
  end
31
31
 
32
- test "create action via CKEditor upload form" do
32
+ test 'create action via CKEditor upload form' do
33
33
  assert_difference 'Ckeditor::Picture.count' do
34
- post :create, :upload => @image, :CKEditor => 'ckeditor_field'
34
+ post :create, params: { upload: @image, CKEditor: 'ckeditor_field' }
35
35
  end
36
36
 
37
37
  assert_equal 200, @response.status
38
38
  end
39
39
 
40
- test "create action via html5 upload" do
40
+ test 'create action via html5 upload' do
41
+ params = { qqfile: @image.original_filename }
42
+
41
43
  assert_difference 'Ckeditor::Picture.count' do
42
- raw_post :create, { :qqfile => @image.original_filename }, @image.read, "image/png"
44
+ post :create, params: params, body: @image.read
43
45
  end
44
46
 
45
47
  assert_equal 200, @response.status
46
48
  end
47
49
 
48
- test "invalid params for create action" do
50
+ test 'invalid params for create action' do
49
51
  assert_no_difference 'Ckeditor::Picture.count' do
50
- post :create, :qqfile => nil, :format => :html
52
+ post :create, params: { qqfile: nil, format: :html }
51
53
  end
52
54
  end
53
55
 
54
- test "destroy action via filebrowser" do
55
- @picture = Ckeditor::Picture.create :data => @image
56
+ test 'destroy action via filebrowser' do
57
+ @picture = Ckeditor::Picture.create data: @image
56
58
 
57
59
  assert_difference 'Ckeditor::Picture.count', -1 do
58
- delete :destroy, :id => @picture.id
60
+ delete :destroy, params: { id: @picture.id }
59
61
  end
60
62
 
61
63
  assert_equal 302, @response.status
data/test/dummy/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env rake
2
+ # frozen_string_literal: true
3
+
2
4
  # Add your own tasks in files placed in lib/tasks ending in .rake,
3
5
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
6
 
@@ -6,5 +6,3 @@
6
6
  //
7
7
  //= require jquery
8
8
  //= require jquery_ujs
9
-
10
- //= require ckeditor/init
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class ApplicationController < ActionController::Base
2
4
  protect_from_forgery
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class PostsController < ApplicationController
2
4
  # GET /posts
3
5
  # GET /posts.xml
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ApplicationHelper
2
4
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PostsHelper
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  case CKEDITOR_ORM
2
4
 
3
5
  when :active_record
@@ -22,6 +22,3 @@
22
22
 
23
23
  <h2>Text area test</h2>
24
24
  <%= cktext_area_tag("test_area", "Ckeditor") %>
25
-
26
- <h2>Text area test with options</h2>
27
- <%= cktext_area_tag("content", "Ckeditor", :cols => 10, :rows => 20, :ckeditor => {:toolbar => 'Easy'}) %>
@@ -3,3 +3,6 @@
3
3
 
4
4
  <%= link_to 'Edit', edit_post_path(@post) %> |
5
5
  <%= link_to 'Back', posts_path %>
6
+
7
+ <h2>Text area test with options</h2>
8
+ <%= cktext_area_tag("content", "Ckeditor", :cols => 10, :rows => 20, :ckeditor => {:toolbar => 'Easy'}) %>
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require File.expand_path('../boot', __FILE__)
2
4
 
3
5
  require "rails"
@@ -10,7 +12,8 @@ require "action_controller/railtie"
10
12
  require "action_view/railtie"
11
13
  require "sprockets/railtie"
12
14
  require "rails/test_unit/railtie"
13
-
15
+ require "active_storage/engine"
16
+ require "active_job/railtie"
14
17
  # Require the gems listed in Gemfile, including any gems
15
18
  # you've limited to :test, :development, or :production.
16
19
  Bundler.require(*Rails.groups)
@@ -59,5 +62,6 @@ module Dummy
59
62
 
60
63
  # Version of your assets, change this if you want to expire all your assets
61
64
  config.assets.version = '1.0'
65
+ config.active_storage.service = :local
62
66
  end
63
67
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load the rails application
2
4
  require File.expand_path('../application', __FILE__)
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Dummy::Application.configure do
2
4
  # Settings specified here will take precedence over those in config/application.rb
3
5