compony 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +21 -0
- data/VERSION +1 -1
- data/compony.gemspec +3 -3
- data/config/locales/de.yml +13 -0
- data/config/locales/en.yml +13 -0
- data/config/locales/fr.yml +14 -1
- data/doc/ComponentGenerator.html +16 -4
- data/doc/Components.html +3 -3
- data/doc/ComponentsGenerator.html +3 -3
- data/doc/Compony/Component.html +4 -4
- data/doc/Compony/ComponentMixins/Default/Labelling.html +3 -3
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +3 -3
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +3 -3
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +3 -3
- data/doc/Compony/ComponentMixins/Default/Standalone.html +3 -3
- data/doc/Compony/ComponentMixins/Default.html +3 -3
- data/doc/Compony/ComponentMixins/Resourceful.html +4 -4
- data/doc/Compony/ComponentMixins.html +3 -3
- data/doc/Compony/Components/Button.html +3 -3
- data/doc/Compony/Components/Destroy.html +3 -3
- data/doc/Compony/Components/Edit.html +3 -3
- data/doc/Compony/Components/Form.html +3 -3
- data/doc/Compony/Components/Index.html +172 -0
- data/doc/Compony/Components/List.html +2731 -0
- data/doc/Compony/Components/New.html +3 -3
- data/doc/Compony/Components/Show.html +740 -0
- data/doc/Compony/Components/WithForm.html +3 -3
- data/doc/Compony/Components.html +5 -5
- data/doc/Compony/ControllerMixin.html +3 -3
- data/doc/Compony/Engine.html +3 -3
- data/doc/Compony/MethodAccessibleHash.html +3 -3
- data/doc/Compony/ModelFields/Anchormodel.html +136 -4
- data/doc/Compony/ModelFields/Association.html +4 -4
- data/doc/Compony/ModelFields/Attachment.html +4 -4
- data/doc/Compony/ModelFields/Base.html +143 -13
- data/doc/Compony/ModelFields/Boolean.html +136 -4
- data/doc/Compony/ModelFields/Color.html +4 -4
- data/doc/Compony/ModelFields/Currency.html +4 -4
- data/doc/Compony/ModelFields/Date.html +4 -4
- data/doc/Compony/ModelFields/Datetime.html +4 -4
- data/doc/Compony/ModelFields/Decimal.html +4 -4
- data/doc/Compony/ModelFields/Email.html +4 -4
- data/doc/Compony/ModelFields/Float.html +4 -4
- data/doc/Compony/ModelFields/Integer.html +83 -5
- data/doc/Compony/ModelFields/Percentage.html +4 -4
- data/doc/Compony/ModelFields/Phone.html +4 -4
- data/doc/Compony/ModelFields/RichText.html +4 -4
- data/doc/Compony/ModelFields/String.html +4 -4
- data/doc/Compony/ModelFields/Text.html +4 -4
- data/doc/Compony/ModelFields/Time.html +4 -4
- data/doc/Compony/ModelFields/Url.html +4 -4
- data/doc/Compony/ModelFields.html +3 -3
- data/doc/Compony/ModelMixin.html +26 -26
- data/doc/Compony/NaturalOrdering.html +3 -3
- data/doc/Compony/RequestContext.html +3 -3
- data/doc/Compony/Version.html +3 -3
- data/doc/Compony/ViewHelpers.html +3 -3
- data/doc/Compony.html +4 -4
- data/doc/ComponyController.html +3 -3
- data/doc/_index.html +25 -4
- data/doc/class_list.html +3 -6
- data/doc/css/full_list.css +3 -3
- data/doc/css/style.css +0 -6
- data/doc/file.README.html +37 -10
- data/doc/file_list.html +2 -5
- data/doc/frames.html +5 -10
- data/doc/index.html +37 -10
- data/doc/js/app.js +264 -294
- data/doc/js/full_list.js +4 -30
- data/doc/method_list.html +423 -114
- data/doc/top-level-namespace.html +3 -3
- data/lib/compony/components/index.rb +33 -0
- data/lib/compony/components/list.rb +418 -0
- data/lib/compony/components/show.rb +116 -0
- data/lib/compony/model_fields/anchormodel.rb +13 -0
- data/lib/compony/model_fields/base.rb +12 -0
- data/lib/compony/model_fields/boolean.rb +13 -0
- data/lib/compony/model_fields/integer.rb +3 -0
- data/lib/compony/model_mixin.rb +5 -0
- data/lib/compony.rb +3 -0
- data/lib/generators/component/component_generator.rb +6 -0
- data/lib/generators/component/templates/index.rb.erb +2 -0
- data/lib/generators/component/templates/list.rb.erb +7 -0
- data/lib/generators/component/templates/show.rb.erb +2 -0
- metadata +10 -1
@@ -18,6 +18,12 @@ class ComponentGenerator < Rails::Generators::NamedBase
|
|
18
18
|
end
|
19
19
|
# If a Compony component with the specified name exists, inherit from that
|
20
20
|
case @comp_cst
|
21
|
+
when 'Index'
|
22
|
+
template 'index.rb.erb', "app/components/#{@family}/#{@comp}.rb"
|
23
|
+
when 'List'
|
24
|
+
template 'list.rb.erb', "app/components/#{@family}/#{@comp}.rb"
|
25
|
+
when 'Show'
|
26
|
+
template 'show.rb.erb', "app/components/#{@family}/#{@comp}.rb"
|
21
27
|
when 'Destroy'
|
22
28
|
template 'destroy.rb.erb', "app/components/#{@family}/#{@comp}.rb"
|
23
29
|
when 'Edit'
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Kalbermatter
|
@@ -203,7 +203,10 @@ files:
|
|
203
203
|
- doc/Compony/Components/Destroy.html
|
204
204
|
- doc/Compony/Components/Edit.html
|
205
205
|
- doc/Compony/Components/Form.html
|
206
|
+
- doc/Compony/Components/Index.html
|
207
|
+
- doc/Compony/Components/List.html
|
206
208
|
- doc/Compony/Components/New.html
|
209
|
+
- doc/Compony/Components/Show.html
|
207
210
|
- doc/Compony/Components/WithForm.html
|
208
211
|
- doc/Compony/ControllerMixin.html
|
209
212
|
- doc/Compony/Engine.html
|
@@ -269,7 +272,10 @@ files:
|
|
269
272
|
- lib/compony/components/destroy.rb
|
270
273
|
- lib/compony/components/edit.rb
|
271
274
|
- lib/compony/components/form.rb
|
275
|
+
- lib/compony/components/index.rb
|
276
|
+
- lib/compony/components/list.rb
|
272
277
|
- lib/compony/components/new.rb
|
278
|
+
- lib/compony/components/show.rb
|
273
279
|
- lib/compony/components/with_form.rb
|
274
280
|
- lib/compony/controller_mixin.rb
|
275
281
|
- lib/compony/engine.rb
|
@@ -305,7 +311,10 @@ files:
|
|
305
311
|
- lib/generators/component/templates/destroy.rb.erb
|
306
312
|
- lib/generators/component/templates/edit.rb.erb
|
307
313
|
- lib/generators/component/templates/form.rb.erb
|
314
|
+
- lib/generators/component/templates/index.rb.erb
|
315
|
+
- lib/generators/component/templates/list.rb.erb
|
308
316
|
- lib/generators/component/templates/new.rb.erb
|
317
|
+
- lib/generators/component/templates/show.rb.erb
|
309
318
|
- lib/generators/component/templates/with_base_component.rb.erb
|
310
319
|
- lib/generators/components/USAGE
|
311
320
|
- lib/generators/components/components_generator.rb
|