compony 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +3 -3
  4. data/README.md +1397 -33
  5. data/Rakefile +6 -2
  6. data/TODO.md +1 -0
  7. data/VERSION +1 -0
  8. data/app/controllers/compony_controller.rb +3 -1
  9. data/compony.gemspec +7 -7
  10. data/config/locales/fr.yml +33 -0
  11. data/doc/ComponentGenerator.html +231 -0
  12. data/doc/Components.html +105 -0
  13. data/doc/ComponentsGenerator.html +203 -0
  14. data/doc/Compony/Component.html +2098 -0
  15. data/doc/Compony/ComponentMixins/Default/Labelling.html +406 -0
  16. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +539 -0
  17. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +588 -0
  18. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +577 -0
  19. data/doc/Compony/ComponentMixins/Default/Standalone.html +692 -0
  20. data/doc/Compony/ComponentMixins/Default.html +126 -0
  21. data/doc/Compony/ComponentMixins/Resourceful.html +1193 -0
  22. data/doc/Compony/ComponentMixins.html +126 -0
  23. data/doc/Compony/Components/Button.html +293 -0
  24. data/doc/Compony/Components/Destroy.html +384 -0
  25. data/doc/Compony/Components/Edit.html +462 -0
  26. data/doc/Compony/Components/Form.html +1112 -0
  27. data/doc/Compony/Components/New.html +462 -0
  28. data/doc/Compony/Components/WithForm.html +528 -0
  29. data/doc/Compony/Components.html +126 -0
  30. data/doc/Compony/ControllerMixin.html +136 -0
  31. data/doc/Compony/Engine.html +133 -0
  32. data/doc/Compony/MethodAccessibleHash.html +453 -0
  33. data/doc/Compony/ModelFields/Anchormodel.html +383 -0
  34. data/doc/Compony/ModelFields/Association.html +613 -0
  35. data/doc/Compony/ModelFields/Attachment.html +305 -0
  36. data/doc/Compony/ModelFields/Base.html +1066 -0
  37. data/doc/Compony/ModelFields/Boolean.html +232 -0
  38. data/doc/Compony/ModelFields/Color.html +299 -0
  39. data/doc/Compony/ModelFields/Currency.html +232 -0
  40. data/doc/Compony/ModelFields/Date.html +232 -0
  41. data/doc/Compony/ModelFields/Datetime.html +232 -0
  42. data/doc/Compony/ModelFields/Decimal.html +154 -0
  43. data/doc/Compony/ModelFields/Email.html +240 -0
  44. data/doc/Compony/ModelFields/Float.html +154 -0
  45. data/doc/Compony/ModelFields/Integer.html +154 -0
  46. data/doc/Compony/ModelFields/Percentage.html +232 -0
  47. data/doc/Compony/ModelFields/Phone.html +301 -0
  48. data/doc/Compony/ModelFields/RichText.html +232 -0
  49. data/doc/Compony/ModelFields/String.html +154 -0
  50. data/doc/Compony/ModelFields/Text.html +154 -0
  51. data/doc/Compony/ModelFields/Time.html +154 -0
  52. data/doc/Compony/ModelFields/Url.html +240 -0
  53. data/doc/Compony/ModelFields.html +126 -0
  54. data/doc/Compony/ModelMixin.html +524 -0
  55. data/doc/Compony/RequestContext.html +791 -0
  56. data/doc/Compony/Version.html +139 -0
  57. data/doc/Compony/ViewHelpers.html +443 -0
  58. data/doc/Compony.html +2156 -0
  59. data/doc/ComponyController.html +124 -0
  60. data/doc/_index.html +569 -0
  61. data/doc/class_list.html +51 -0
  62. data/doc/css/common.css +1 -0
  63. data/doc/css/full_list.css +58 -0
  64. data/doc/css/style.css +497 -0
  65. data/doc/file.README.html +1565 -0
  66. data/doc/file_list.html +56 -0
  67. data/doc/frames.html +17 -0
  68. data/doc/imgs/intro-example-destroy.png +0 -0
  69. data/doc/imgs/intro-example-edit.png +0 -0
  70. data/doc/imgs/intro-example-index.png +0 -0
  71. data/doc/imgs/intro-example-new.png +0 -0
  72. data/doc/imgs/intro-example-show.png +0 -0
  73. data/doc/index.html +1565 -0
  74. data/doc/js/app.js +314 -0
  75. data/doc/js/full_list.js +216 -0
  76. data/doc/js/jquery.js +4 -0
  77. data/doc/method_list.html +1435 -0
  78. data/doc/resourceful_lifecycle.png +0 -0
  79. data/doc/top-level-namespace.html +112 -0
  80. data/lib/compony/component.rb +2 -1
  81. data/lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb +1 -1
  82. data/lib/compony/component_mixins/default/standalone/standalone_dsl.rb +14 -3
  83. data/lib/compony/component_mixins/default/standalone/verb_dsl.rb +14 -5
  84. data/lib/compony/component_mixins/default/standalone.rb +10 -3
  85. data/lib/compony/components/form.rb +6 -1
  86. data/lib/compony/components/with_form.rb +14 -1
  87. data/lib/compony/model_fields/anchormodel.rb +0 -22
  88. data/lib/compony/model_mixin.rb +12 -2
  89. data/lib/compony/version.rb +1 -7
  90. data/logo.svg +133 -0
  91. metadata +83 -6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Kalbermatter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-05 00:00:00.000000000 Z
12
+ date: 2024-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 0.1.2
146
+ version: 0.1.5
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 0.1.2
153
+ version: 0.1.5
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: cancancan
156
156
  requirement: !ruby/object:Gem::Requirement
@@ -180,13 +180,85 @@ files:
180
180
  - LICENSE
181
181
  - README.md
182
182
  - Rakefile
183
+ - TODO.md
184
+ - VERSION
183
185
  - app/controllers/compony_controller.rb
184
186
  - compony.gemspec
185
187
  - config/locales/de.yml
186
188
  - config/locales/en.yml
189
+ - config/locales/fr.yml
187
190
  - config/routes.rb
191
+ - doc/ComponentGenerator.html
192
+ - doc/Components.html
193
+ - doc/ComponentsGenerator.html
194
+ - doc/Compony.html
195
+ - doc/Compony/Component.html
196
+ - doc/Compony/ComponentMixins.html
197
+ - doc/Compony/ComponentMixins/Default.html
198
+ - doc/Compony/ComponentMixins/Default/Labelling.html
199
+ - doc/Compony/ComponentMixins/Default/Standalone.html
200
+ - doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html
201
+ - doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html
202
+ - doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html
203
+ - doc/Compony/ComponentMixins/Resourceful.html
204
+ - doc/Compony/Components.html
205
+ - doc/Compony/Components/Button.html
206
+ - doc/Compony/Components/Destroy.html
207
+ - doc/Compony/Components/Edit.html
208
+ - doc/Compony/Components/Form.html
209
+ - doc/Compony/Components/New.html
210
+ - doc/Compony/Components/WithForm.html
211
+ - doc/Compony/ControllerMixin.html
212
+ - doc/Compony/Engine.html
213
+ - doc/Compony/MethodAccessibleHash.html
214
+ - doc/Compony/ModelFields.html
215
+ - doc/Compony/ModelFields/Anchormodel.html
216
+ - doc/Compony/ModelFields/Association.html
217
+ - doc/Compony/ModelFields/Attachment.html
218
+ - doc/Compony/ModelFields/Base.html
219
+ - doc/Compony/ModelFields/Boolean.html
220
+ - doc/Compony/ModelFields/Color.html
221
+ - doc/Compony/ModelFields/Currency.html
222
+ - doc/Compony/ModelFields/Date.html
223
+ - doc/Compony/ModelFields/Datetime.html
224
+ - doc/Compony/ModelFields/Decimal.html
225
+ - doc/Compony/ModelFields/Email.html
226
+ - doc/Compony/ModelFields/Float.html
227
+ - doc/Compony/ModelFields/Integer.html
228
+ - doc/Compony/ModelFields/Percentage.html
229
+ - doc/Compony/ModelFields/Phone.html
230
+ - doc/Compony/ModelFields/RichText.html
231
+ - doc/Compony/ModelFields/String.html
232
+ - doc/Compony/ModelFields/Text.html
233
+ - doc/Compony/ModelFields/Time.html
234
+ - doc/Compony/ModelFields/Url.html
235
+ - doc/Compony/ModelMixin.html
236
+ - doc/Compony/RequestContext.html
237
+ - doc/Compony/Version.html
238
+ - doc/Compony/ViewHelpers.html
239
+ - doc/ComponyController.html
240
+ - doc/_index.html
241
+ - doc/class_list.html
242
+ - doc/css/common.css
243
+ - doc/css/full_list.css
244
+ - doc/css/style.css
245
+ - doc/file.README.html
246
+ - doc/file_list.html
247
+ - doc/frames.html
248
+ - doc/imgs/intro-example-destroy.png
249
+ - doc/imgs/intro-example-edit.png
250
+ - doc/imgs/intro-example-index.png
251
+ - doc/imgs/intro-example-new.png
252
+ - doc/imgs/intro-example-show.png
253
+ - doc/index.html
254
+ - doc/js/app.js
255
+ - doc/js/full_list.js
256
+ - doc/js/jquery.js
257
+ - doc/method_list.html
188
258
  - doc/resourceful_lifecycle.graphml
189
259
  - doc/resourceful_lifecycle.pdf
260
+ - doc/resourceful_lifecycle.png
261
+ - doc/top-level-namespace.html
190
262
  - lib/compony.rb
191
263
  - lib/compony/component.rb
192
264
  - lib/compony/component_mixins/default/labelling.rb
@@ -237,6 +309,7 @@ files:
237
309
  - lib/generators/component/templates/new.rb.erb
238
310
  - lib/generators/components/USAGE
239
311
  - lib/generators/components/components_generator.rb
312
+ - logo.svg
240
313
  homepage:
241
314
  licenses: []
242
315
  metadata: {}
@@ -255,8 +328,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
328
  - !ruby/object:Gem::Version
256
329
  version: '0'
257
330
  requirements: []
258
- rubygems_version: 3.5.6
331
+ rubygems_version: 3.5.9
259
332
  signing_key:
260
333
  specification_version: 4
261
- summary: Needs summary
334
+ summary: Compony is a Gem that allows you to write your Rails application in component-style
335
+ fashion. It combines a controller action and route along \ with its view into a
336
+ single Ruby class. This allows writing much DRYer code, using inheritance even in
337
+ views and much easier refactoring for your Rails \ applications, helping you to
338
+ keep the code clean as the application evolves.
262
339
  test_files: []