kilt-cms 0.5.1 → 0.5.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9d5ad3c7123436f190ffd8cb9c74cba3531a0a0
|
|
4
|
+
data.tar.gz: 597381939db6577f5bc445fb9b265ac915b09de0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70922db389dc9c8c3cb3792e187713ca4638ef0a946e93e6b048c558893fd704fdc8c6139ebfd6c2ecf1f6c3b2f7be49759a87ae32e668898a12fed4ff1d50bf
|
|
7
|
+
data.tar.gz: be42bb51f31c738eba21b1953f5c076d575c76d8551a91c2ab7a35162ea95c24604fbc6e0a0e8130cdedcbb3870eae58cc8ab76f13ddf7338f8bdca0c0e531c8
|
|
@@ -6,7 +6,7 @@ module Kilt
|
|
|
6
6
|
argument :fields, :type => :array, :required => true, :desc => "required field_name:field_type"
|
|
7
7
|
|
|
8
8
|
def generate
|
|
9
|
-
if !Kilt.config.objects[self.object_name.singularize.underscore]
|
|
9
|
+
if !Kilt.config.objects || !Kilt.config.objects[self.object_name.singularize.underscore]
|
|
10
10
|
out = "\n\s\s#{self.object_name.singularize.underscore}:"
|
|
11
11
|
out = "#{out}\n\s\s\s\sfields:"
|
|
12
12
|
self.fields.each do |field|
|
|
@@ -13,28 +13,4 @@ objects:
|
|
|
13
13
|
image: image
|
|
14
14
|
vimeo_video: vimeo
|
|
15
15
|
youtube_video: youtube
|
|
16
|
-
other: file
|
|
17
|
-
drum:
|
|
18
|
-
fields:
|
|
19
|
-
name: text
|
|
20
|
-
weight: number
|
|
21
|
-
description: longtext
|
|
22
|
-
markup: html
|
|
23
|
-
birthday: datetime
|
|
24
|
-
has_stuff: boolean
|
|
25
|
-
image: image
|
|
26
|
-
vimeo_video: vimeo
|
|
27
|
-
youtube_video: youtube
|
|
28
|
-
other: file
|
|
29
|
-
whatever:
|
|
30
|
-
fields:
|
|
31
|
-
name: text
|
|
32
|
-
weight: number
|
|
33
|
-
description: longtext
|
|
34
|
-
markup: html
|
|
35
|
-
birthday: datetime
|
|
36
|
-
has_stuff: boolean
|
|
37
|
-
image: image
|
|
38
|
-
vimeo_video: vimeo
|
|
39
|
-
youtube_video: youtube
|
|
40
|
-
other: file
|
|
16
|
+
other: file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kilt-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ashe Avenue
|
|
@@ -315,6 +315,7 @@ files:
|
|
|
315
315
|
- test/dummy/config/initializers/session_store.rb
|
|
316
316
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
317
317
|
- test/dummy/config/kilt/config.yml
|
|
318
|
+
- test/dummy/config/kilt/creds.yml
|
|
318
319
|
- test/dummy/config/kilt/creds.yml.example
|
|
319
320
|
- test/dummy/config/routes.rb
|
|
320
321
|
- test/dummy/config.ru
|
|
@@ -438,6 +439,7 @@ test_files:
|
|
|
438
439
|
- test/dummy/config/initializers/session_store.rb
|
|
439
440
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
440
441
|
- test/dummy/config/kilt/config.yml
|
|
442
|
+
- test/dummy/config/kilt/creds.yml
|
|
441
443
|
- test/dummy/config/kilt/creds.yml.example
|
|
442
444
|
- test/dummy/config/routes.rb
|
|
443
445
|
- test/dummy/config.ru
|