composite_content 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -0
  3. data/.rubocop.yml +43 -0
  4. data/CHANGELOG.md +5 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +239 -0
  7. data/LICENSE +13 -0
  8. data/README.md +112 -0
  9. data/Rakefile +17 -0
  10. data/composite_content.gemspec +47 -0
  11. data/config/locales/en.yml +10 -0
  12. data/config/locales/fr.yml +10 -0
  13. data/db/migrate/20220807184334_create_composite_content_slots.rb +17 -0
  14. data/db/migrate/20220807185808_create_composite_content_blocks.rb +14 -0
  15. data/db/migrate/20220807191353_create_composite_content_headings.rb +12 -0
  16. data/db/migrate/20220807191402_create_composite_content_quotes.rb +12 -0
  17. data/db/migrate/20220807191410_create_composite_content_texts.rb +11 -0
  18. data/gemfiles/rails-6.1.x.gemfile +14 -0
  19. data/lib/composite_content/action_view.rb +84 -0
  20. data/lib/composite_content/active_record.rb +45 -0
  21. data/lib/composite_content/block.rb +11 -0
  22. data/lib/composite_content/blocks/heading.rb +21 -0
  23. data/lib/composite_content/blocks/quote.rb +12 -0
  24. data/lib/composite_content/blocks/text.rb +12 -0
  25. data/lib/composite_content/blocks.rb +11 -0
  26. data/lib/composite_content/engine.rb +50 -0
  27. data/lib/composite_content/model/base.rb +13 -0
  28. data/lib/composite_content/model/blockable.rb +21 -0
  29. data/lib/composite_content/model/builder/base.rb +47 -0
  30. data/lib/composite_content/model/builder/block.rb +36 -0
  31. data/lib/composite_content/model/builder/slot.rb +31 -0
  32. data/lib/composite_content/model/builder.rb +13 -0
  33. data/lib/composite_content/model.rb +11 -0
  34. data/lib/composite_content/slot.rb +55 -0
  35. data/lib/composite_content/version.rb +5 -0
  36. data/lib/composite_content.rb +14 -0
  37. data/lib/generators/composite_content/install_generator.rb +20 -0
  38. data/lib/generators/composite_content/templates/block/_form.html.erb +13 -0
  39. data/lib/generators/composite_content/templates/blocks/heading/_form.html.erb +9 -0
  40. data/lib/generators/composite_content/templates/blocks/heading/_show.html.erb +1 -0
  41. data/lib/generators/composite_content/templates/blocks/quote/_form.html.erb +9 -0
  42. data/lib/generators/composite_content/templates/blocks/quote/_show.html.erb +7 -0
  43. data/lib/generators/composite_content/templates/blocks/text/_form.html.erb +4 -0
  44. data/lib/generators/composite_content/templates/blocks/text/_show.html.erb +1 -0
  45. data/lib/generators/composite_content/templates/slot/_form.html.erb +13 -0
  46. metadata +275 -0
metadata ADDED
@@ -0,0 +1,275 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: composite_content
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Gaël-Ian Havard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active_model_validations_reflection
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: acts_as_list
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.4
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: cocooned
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.4.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 6.1.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 6.1.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '13.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '13.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.10'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.10'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-performance
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rake
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop-rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: shoulda-matchers
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '5.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '5.0'
195
+ description: Build complex contents for your ActiveRecord models in a controllable
196
+ way.
197
+ email:
198
+ - gael-ian@notus.sh
199
+ executables: []
200
+ extensions: []
201
+ extra_rdoc_files: []
202
+ files:
203
+ - ".rspec"
204
+ - ".rubocop.yml"
205
+ - CHANGELOG.md
206
+ - Gemfile
207
+ - Gemfile.lock
208
+ - LICENSE
209
+ - README.md
210
+ - Rakefile
211
+ - composite_content.gemspec
212
+ - config/locales/en.yml
213
+ - config/locales/fr.yml
214
+ - db/migrate/20220807184334_create_composite_content_slots.rb
215
+ - db/migrate/20220807185808_create_composite_content_blocks.rb
216
+ - db/migrate/20220807191353_create_composite_content_headings.rb
217
+ - db/migrate/20220807191402_create_composite_content_quotes.rb
218
+ - db/migrate/20220807191410_create_composite_content_texts.rb
219
+ - gemfiles/rails-6.1.x.gemfile
220
+ - lib/composite_content.rb
221
+ - lib/composite_content/action_view.rb
222
+ - lib/composite_content/active_record.rb
223
+ - lib/composite_content/block.rb
224
+ - lib/composite_content/blocks.rb
225
+ - lib/composite_content/blocks/heading.rb
226
+ - lib/composite_content/blocks/quote.rb
227
+ - lib/composite_content/blocks/text.rb
228
+ - lib/composite_content/engine.rb
229
+ - lib/composite_content/model.rb
230
+ - lib/composite_content/model/base.rb
231
+ - lib/composite_content/model/blockable.rb
232
+ - lib/composite_content/model/builder.rb
233
+ - lib/composite_content/model/builder/base.rb
234
+ - lib/composite_content/model/builder/block.rb
235
+ - lib/composite_content/model/builder/slot.rb
236
+ - lib/composite_content/slot.rb
237
+ - lib/composite_content/version.rb
238
+ - lib/generators/composite_content/install_generator.rb
239
+ - lib/generators/composite_content/templates/block/_form.html.erb
240
+ - lib/generators/composite_content/templates/blocks/heading/_form.html.erb
241
+ - lib/generators/composite_content/templates/blocks/heading/_show.html.erb
242
+ - lib/generators/composite_content/templates/blocks/quote/_form.html.erb
243
+ - lib/generators/composite_content/templates/blocks/quote/_show.html.erb
244
+ - lib/generators/composite_content/templates/blocks/text/_form.html.erb
245
+ - lib/generators/composite_content/templates/blocks/text/_show.html.erb
246
+ - lib/generators/composite_content/templates/slot/_form.html.erb
247
+ homepage: https://github.com/notus-sh/composite_content
248
+ licenses:
249
+ - Apache-2.0
250
+ metadata:
251
+ homepage_uri: https://github.com/notus-sh/composite_content
252
+ source_code_uri: https://github.com/notus-sh/composite_content
253
+ changelog_uri: https://github.com/notus-sh/composite_content/CHANGELOG.md
254
+ allowed_push_host: https://rubygems.org
255
+ rubygems_mfa_required: 'true'
256
+ post_install_message:
257
+ rdoc_options: []
258
+ require_paths:
259
+ - lib
260
+ required_ruby_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: 2.6.0
265
+ required_rubygems_version: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - ">="
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ requirements: []
271
+ rubygems_version: 3.3.7
272
+ signing_key:
273
+ specification_version: 4
274
+ summary: Add composite content capacities to your ActiveRecord models.
275
+ test_files: []