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: 9d697b5810a2977b73a3c56d1bd9b399c5ddfc41
4
- data.tar.gz: ec2098c0c2826afe4563f690d73dfb3b6688e690
3
+ metadata.gz: e9d5ad3c7123436f190ffd8cb9c74cba3531a0a0
4
+ data.tar.gz: 597381939db6577f5bc445fb9b265ac915b09de0
5
5
  SHA512:
6
- metadata.gz: 359a420f92a7b9cb48f5a41095ca75eefebab4041af2a18819c86fb8c67a01bcd9694cc1d28bf990d3818fe589d86751e901e2c3a8260a1795e418fd3e19294f
7
- data.tar.gz: 878825baa35a41360c3b12b1a899637b85712030c31fc91de4dbbc9db01313e93627a2c0c0de3c7853f784ad8cf4888cff1b1afb04092df5f00aacd6b77695f2
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
@@ -0,0 +1,4 @@
1
+ db:
2
+ host: db.labs.asheavenue.com
3
+ port: 28015
4
+ db: kilt
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.1
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