compony 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/Gemfile.lock +3 -3
- data/README.md +1397 -33
- data/Rakefile +6 -2
- data/TODO.md +1 -0
- data/VERSION +1 -0
- data/app/controllers/compony_controller.rb +3 -1
- data/compony.gemspec +7 -7
- data/config/locales/fr.yml +33 -0
- data/doc/ComponentGenerator.html +231 -0
- data/doc/Components.html +105 -0
- data/doc/ComponentsGenerator.html +203 -0
- data/doc/Compony/Component.html +2098 -0
- data/doc/Compony/ComponentMixins/Default/Labelling.html +406 -0
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +539 -0
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +588 -0
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +577 -0
- data/doc/Compony/ComponentMixins/Default/Standalone.html +692 -0
- data/doc/Compony/ComponentMixins/Default.html +126 -0
- data/doc/Compony/ComponentMixins/Resourceful.html +1193 -0
- data/doc/Compony/ComponentMixins.html +126 -0
- data/doc/Compony/Components/Button.html +293 -0
- data/doc/Compony/Components/Destroy.html +384 -0
- data/doc/Compony/Components/Edit.html +462 -0
- data/doc/Compony/Components/Form.html +1112 -0
- data/doc/Compony/Components/New.html +462 -0
- data/doc/Compony/Components/WithForm.html +528 -0
- data/doc/Compony/Components.html +126 -0
- data/doc/Compony/ControllerMixin.html +136 -0
- data/doc/Compony/Engine.html +133 -0
- data/doc/Compony/MethodAccessibleHash.html +453 -0
- data/doc/Compony/ModelFields/Anchormodel.html +383 -0
- data/doc/Compony/ModelFields/Association.html +613 -0
- data/doc/Compony/ModelFields/Attachment.html +305 -0
- data/doc/Compony/ModelFields/Base.html +1066 -0
- data/doc/Compony/ModelFields/Boolean.html +232 -0
- data/doc/Compony/ModelFields/Color.html +299 -0
- data/doc/Compony/ModelFields/Currency.html +232 -0
- data/doc/Compony/ModelFields/Date.html +232 -0
- data/doc/Compony/ModelFields/Datetime.html +232 -0
- data/doc/Compony/ModelFields/Decimal.html +154 -0
- data/doc/Compony/ModelFields/Email.html +240 -0
- data/doc/Compony/ModelFields/Float.html +154 -0
- data/doc/Compony/ModelFields/Integer.html +154 -0
- data/doc/Compony/ModelFields/Percentage.html +232 -0
- data/doc/Compony/ModelFields/Phone.html +301 -0
- data/doc/Compony/ModelFields/RichText.html +232 -0
- data/doc/Compony/ModelFields/String.html +154 -0
- data/doc/Compony/ModelFields/Text.html +154 -0
- data/doc/Compony/ModelFields/Time.html +154 -0
- data/doc/Compony/ModelFields/Url.html +240 -0
- data/doc/Compony/ModelFields.html +126 -0
- data/doc/Compony/ModelMixin.html +524 -0
- data/doc/Compony/RequestContext.html +791 -0
- data/doc/Compony/Version.html +139 -0
- data/doc/Compony/ViewHelpers.html +443 -0
- data/doc/Compony.html +2156 -0
- data/doc/ComponyController.html +124 -0
- data/doc/_index.html +569 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +497 -0
- data/doc/file.README.html +1565 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/imgs/intro-example-destroy.png +0 -0
- data/doc/imgs/intro-example-edit.png +0 -0
- data/doc/imgs/intro-example-index.png +0 -0
- data/doc/imgs/intro-example-new.png +0 -0
- data/doc/imgs/intro-example-show.png +0 -0
- data/doc/index.html +1565 -0
- data/doc/js/app.js +314 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1435 -0
- data/doc/resourceful_lifecycle.png +0 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/compony/component.rb +2 -1
- data/lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb +1 -1
- data/lib/compony/component_mixins/default/standalone/standalone_dsl.rb +14 -3
- data/lib/compony/component_mixins/default/standalone/verb_dsl.rb +14 -5
- data/lib/compony/component_mixins/default/standalone.rb +10 -3
- data/lib/compony/components/form.rb +6 -1
- data/lib/compony/components/with_form.rb +14 -1
- data/lib/compony/model_fields/anchormodel.rb +0 -22
- data/lib/compony/model_mixin.rb +12 -2
- data/lib/compony/version.rb +1 -7
- data/logo.svg +133 -0
- 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.
|
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:
|
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.
|
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.
|
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.
|
331
|
+
rubygems_version: 3.5.9
|
259
332
|
signing_key:
|
260
333
|
specification_version: 4
|
261
|
-
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: []
|