rails_admin_content_builder_rails_6 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +134 -0
  7. data/Rakefile +2 -0
  8. data/app/assets/images/cb-image-default.jpg +0 -0
  9. data/app/assets/images/cb-loading.svg +1 -0
  10. data/app/assets/images/cb-snippet-gallery.jpg +0 -0
  11. data/app/assets/images/cb-snippet-gallery.psd +0 -0
  12. data/app/assets/images/cb-snippet-image-text.jpg +0 -0
  13. data/app/assets/images/cb-snippet-image-text.psd +0 -0
  14. data/app/assets/images/cb-snippet-image.jpg +0 -0
  15. data/app/assets/images/cb-snippet-image.psd +0 -0
  16. data/app/assets/images/cb-snippet-quote-text.jpg +0 -0
  17. data/app/assets/images/cb-snippet-quote-text.psd +0 -0
  18. data/app/assets/images/cb-snippet-quote.jpg +0 -0
  19. data/app/assets/images/cb-snippet-quote.psd +0 -0
  20. data/app/assets/images/cb-snippet-relational-text.jpg +0 -0
  21. data/app/assets/images/cb-snippet-relational-text.psd +0 -0
  22. data/app/assets/images/cb-snippet-text-image.jpg +0 -0
  23. data/app/assets/images/cb-snippet-text-image.psd +0 -0
  24. data/app/assets/images/cb-snippet-text-quote.jpg +0 -0
  25. data/app/assets/images/cb-snippet-text-quote.psd +0 -0
  26. data/app/assets/images/cb-snippet-text-relational.jpg +0 -0
  27. data/app/assets/images/cb-snippet-text-relational.psd +0 -0
  28. data/app/assets/images/cb-snippet-text.jpg +0 -0
  29. data/app/assets/images/cb-snippet-text.psd +0 -0
  30. data/app/assets/images/cb-snippet-video.jpg +0 -0
  31. data/app/assets/images/cb-snippet-video.psd +0 -0
  32. data/app/assets/images/cb-video-default.jpg +0 -0
  33. data/app/assets/javascripts/rails_admin/content_builder.js.erb +374 -0
  34. data/app/assets/javascripts/rails_admin/helpers/action_sortable.js +16 -0
  35. data/app/assets/javascripts/rails_admin/helpers/add_event_to_input.js +9 -0
  36. data/app/assets/javascripts/rails_admin/helpers/autocomplete.js.erb +32 -0
  37. data/app/assets/javascripts/rails_admin/helpers/file_select_and_upload.js +31 -0
  38. data/app/assets/javascripts/rails_admin/helpers/file_select_and_upload_gallery.js +43 -0
  39. data/app/assets/javascripts/rails_admin/helpers/generate_id.js +4 -0
  40. data/app/assets/javascripts/rails_admin/helpers/get_image_of_position.js +11 -0
  41. data/app/assets/javascripts/rails_admin/helpers/medium_editor.js +44 -0
  42. data/app/assets/javascripts/rails_admin/helpers/scrool_to.js +8 -0
  43. data/app/assets/javascripts/rails_admin/helpers/youtube_parse.js.erb +11 -0
  44. data/app/assets/stylesheets/rails_admin/content_builder.scss +534 -0
  45. data/app/controllers/rails_admin_content_builder/content_builder_controller.rb +39 -0
  46. data/app/helpers/rails_admin_content_builder/content_builder_helpers.rb +38 -0
  47. data/app/models/application_record.rb +3 -0
  48. data/app/models/rails_admin_content_builder/content_builder.rb +45 -0
  49. data/app/models/rails_admin_content_builder/content_builder_category.rb +12 -0
  50. data/app/models/rails_admin_content_builder/content_builder_image.rb +11 -0
  51. data/app/views/.gitkeep +0 -0
  52. data/app/views/rails_admin/main/content_builder.html.erb +102 -0
  53. data/bin/console +14 -0
  54. data/bin/setup +8 -0
  55. data/config/initializers/assets.rb +14 -0
  56. data/config/locales/content_builder.en.yml +32 -0
  57. data/config/locales/content_builder.pt-BR.yml +32 -0
  58. data/config/routes.rb +9 -0
  59. data/lib/rails_admin_content_builder_rails_6.rb +55 -0
  60. data/lib/rails_admin_content_builder_rails_6/engine.rb +24 -0
  61. data/lib/rails_admin_content_builder_rails_6/generators/rails_admin_content_builder_generator.rb +40 -0
  62. data/lib/rails_admin_content_builder_rails_6/generators/templates/content_builder_image_uploader.rb +90 -0
  63. data/lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_category_migration.rb +10 -0
  64. data/lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_image_migration.rb +10 -0
  65. data/lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_migration.rb +16 -0
  66. data/lib/rails_admin_content_builder_rails_6/generators/templates/rails_admin_content_builder.rb +37 -0
  67. data/lib/rails_admin_content_builder_rails_6/version.rb +3 -0
  68. data/rails_admin_content_builder_rails_6.gemspec +45 -0
  69. data/vendor/assets/stylesheets/rails_admin_content_builder.scss +411 -0
  70. metadata +417 -0
metadata ADDED
@@ -0,0 +1,417 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_admin_content_builder_rails_6
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Giuliano Crivelli
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 6.0.3
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 6.0.3.3
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: 6.0.3
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 6.0.3.3
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails_admin
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 2.0.2
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.2
75
+ - !ruby/object:Gem::Dependency
76
+ name: capybara
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.7'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.7.0
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '2.7'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 2.7.0
95
+ - !ruby/object:Gem::Dependency
96
+ name: launchy
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '2.4'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 2.4.3
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.4'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 2.4.3
115
+ - !ruby/object:Gem::Dependency
116
+ name: shoulda-matchers
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '3.1'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '3.1'
129
+ - !ruby/object:Gem::Dependency
130
+ name: selenium-webdriver
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '2.53'
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 2.53.4
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.53'
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 2.53.4
149
+ - !ruby/object:Gem::Dependency
150
+ name: factory_girl_rails
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '4.7'
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: 4.7.0
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '4.7'
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 4.7.0
169
+ - !ruby/object:Gem::Dependency
170
+ name: faker
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "~>"
174
+ - !ruby/object:Gem::Version
175
+ version: '1.6'
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 1.6.3
179
+ type: :development
180
+ prerelease: false
181
+ version_requirements: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: '1.6'
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: 1.6.3
189
+ - !ruby/object:Gem::Dependency
190
+ name: carrierwave
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: '2.0'
196
+ type: :runtime
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '2.0'
203
+ - !ruby/object:Gem::Dependency
204
+ name: medium-editor-rails
205
+ requirement: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '2.1'
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: 2.1.0
213
+ type: :runtime
214
+ prerelease: false
215
+ version_requirements: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: '2.1'
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 2.1.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: mini_magick
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '4.5'
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: 4.5.1
233
+ type: :runtime
234
+ prerelease: false
235
+ version_requirements: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - "~>"
238
+ - !ruby/object:Gem::Version
239
+ version: '4.5'
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: 4.5.1
243
+ - !ruby/object:Gem::Dependency
244
+ name: friendly_id
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '5.1'
250
+ - - ">="
251
+ - !ruby/object:Gem::Version
252
+ version: 5.1.0
253
+ type: :runtime
254
+ prerelease: false
255
+ version_requirements: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - "~>"
258
+ - !ruby/object:Gem::Version
259
+ version: '5.1'
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: 5.1.0
263
+ - !ruby/object:Gem::Dependency
264
+ name: simple_form
265
+ requirement: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - "~>"
268
+ - !ruby/object:Gem::Version
269
+ version: 5.0.2
270
+ type: :runtime
271
+ prerelease: false
272
+ version_requirements: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - "~>"
275
+ - !ruby/object:Gem::Version
276
+ version: 5.0.2
277
+ - !ruby/object:Gem::Dependency
278
+ name: search_cop
279
+ requirement: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - "~>"
282
+ - !ruby/object:Gem::Version
283
+ version: '1.0'
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: 1.0.6
287
+ type: :runtime
288
+ prerelease: false
289
+ version_requirements: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - "~>"
292
+ - !ruby/object:Gem::Version
293
+ version: '1.0'
294
+ - - ">="
295
+ - !ruby/object:Gem::Version
296
+ version: 1.0.6
297
+ - !ruby/object:Gem::Dependency
298
+ name: rails-html-sanitizer
299
+ requirement: !ruby/object:Gem::Requirement
300
+ requirements:
301
+ - - "~>"
302
+ - !ruby/object:Gem::Version
303
+ version: '1.0'
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: 1.0.0
307
+ type: :runtime
308
+ prerelease: false
309
+ version_requirements: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: '1.0'
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ version: 1.0.0
317
+ description: Easy way for create contents using rails_admin on Rails 6 now with improvements
318
+ and bug fixes
319
+ email:
320
+ - giuliano@agenciaw3.digital
321
+ executables: []
322
+ extensions: []
323
+ extra_rdoc_files: []
324
+ files:
325
+ - ".gitignore"
326
+ - CODE_OF_CONDUCT.md
327
+ - Gemfile
328
+ - LICENSE.txt
329
+ - README.md
330
+ - Rakefile
331
+ - app/assets/images/cb-image-default.jpg
332
+ - app/assets/images/cb-loading.svg
333
+ - app/assets/images/cb-snippet-gallery.jpg
334
+ - app/assets/images/cb-snippet-gallery.psd
335
+ - app/assets/images/cb-snippet-image-text.jpg
336
+ - app/assets/images/cb-snippet-image-text.psd
337
+ - app/assets/images/cb-snippet-image.jpg
338
+ - app/assets/images/cb-snippet-image.psd
339
+ - app/assets/images/cb-snippet-quote-text.jpg
340
+ - app/assets/images/cb-snippet-quote-text.psd
341
+ - app/assets/images/cb-snippet-quote.jpg
342
+ - app/assets/images/cb-snippet-quote.psd
343
+ - app/assets/images/cb-snippet-relational-text.jpg
344
+ - app/assets/images/cb-snippet-relational-text.psd
345
+ - app/assets/images/cb-snippet-text-image.jpg
346
+ - app/assets/images/cb-snippet-text-image.psd
347
+ - app/assets/images/cb-snippet-text-quote.jpg
348
+ - app/assets/images/cb-snippet-text-quote.psd
349
+ - app/assets/images/cb-snippet-text-relational.jpg
350
+ - app/assets/images/cb-snippet-text-relational.psd
351
+ - app/assets/images/cb-snippet-text.jpg
352
+ - app/assets/images/cb-snippet-text.psd
353
+ - app/assets/images/cb-snippet-video.jpg
354
+ - app/assets/images/cb-snippet-video.psd
355
+ - app/assets/images/cb-video-default.jpg
356
+ - app/assets/javascripts/rails_admin/content_builder.js.erb
357
+ - app/assets/javascripts/rails_admin/helpers/action_sortable.js
358
+ - app/assets/javascripts/rails_admin/helpers/add_event_to_input.js
359
+ - app/assets/javascripts/rails_admin/helpers/autocomplete.js.erb
360
+ - app/assets/javascripts/rails_admin/helpers/file_select_and_upload.js
361
+ - app/assets/javascripts/rails_admin/helpers/file_select_and_upload_gallery.js
362
+ - app/assets/javascripts/rails_admin/helpers/generate_id.js
363
+ - app/assets/javascripts/rails_admin/helpers/get_image_of_position.js
364
+ - app/assets/javascripts/rails_admin/helpers/medium_editor.js
365
+ - app/assets/javascripts/rails_admin/helpers/scrool_to.js
366
+ - app/assets/javascripts/rails_admin/helpers/youtube_parse.js.erb
367
+ - app/assets/stylesheets/rails_admin/content_builder.scss
368
+ - app/controllers/rails_admin_content_builder/content_builder_controller.rb
369
+ - app/helpers/rails_admin_content_builder/content_builder_helpers.rb
370
+ - app/models/application_record.rb
371
+ - app/models/rails_admin_content_builder/content_builder.rb
372
+ - app/models/rails_admin_content_builder/content_builder_category.rb
373
+ - app/models/rails_admin_content_builder/content_builder_image.rb
374
+ - app/views/.gitkeep
375
+ - app/views/rails_admin/main/content_builder.html.erb
376
+ - bin/console
377
+ - bin/setup
378
+ - config/initializers/assets.rb
379
+ - config/locales/content_builder.en.yml
380
+ - config/locales/content_builder.pt-BR.yml
381
+ - config/routes.rb
382
+ - lib/rails_admin_content_builder_rails_6.rb
383
+ - lib/rails_admin_content_builder_rails_6/engine.rb
384
+ - lib/rails_admin_content_builder_rails_6/generators/rails_admin_content_builder_generator.rb
385
+ - lib/rails_admin_content_builder_rails_6/generators/templates/content_builder_image_uploader.rb
386
+ - lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_category_migration.rb
387
+ - lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_image_migration.rb
388
+ - lib/rails_admin_content_builder_rails_6/generators/templates/create_content_builder_migration.rb
389
+ - lib/rails_admin_content_builder_rails_6/generators/templates/rails_admin_content_builder.rb
390
+ - lib/rails_admin_content_builder_rails_6/version.rb
391
+ - rails_admin_content_builder_rails_6.gemspec
392
+ - vendor/assets/stylesheets/rails_admin_content_builder.scss
393
+ homepage: https://github.com/thefalked/rails_admin_content_builder_rails_6
394
+ licenses:
395
+ - MIT
396
+ metadata:
397
+ homepage_uri: https://github.com/thefalked/rails_admin_content_builder_rails_6
398
+ post_install_message:
399
+ rdoc_options: []
400
+ require_paths:
401
+ - lib
402
+ required_ruby_version: !ruby/object:Gem::Requirement
403
+ requirements:
404
+ - - ">="
405
+ - !ruby/object:Gem::Version
406
+ version: '0'
407
+ required_rubygems_version: !ruby/object:Gem::Requirement
408
+ requirements:
409
+ - - ">="
410
+ - !ruby/object:Gem::Version
411
+ version: '0'
412
+ requirements: []
413
+ rubygems_version: 3.1.2
414
+ signing_key:
415
+ specification_version: 4
416
+ summary: Easy way for create contents using rails_admin on Rails 6
417
+ test_files: []