cortex-plugins-core 2.1.0 → 2.1.1
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/lib/cortex/plugins/core/version.rb +1 -1
- data/lib/tasks/cortex/core/media.rake +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37023c83b4d6c1cb96b6239289e51bf73b7a26db
|
|
4
|
+
data.tar.gz: cb56581dbe380f41df79351b9fb01570f373e18e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e165c1b1383346e92973ba07cdd4ce4ade0aeba076d288ccdb6f63380e42de1e8ad49f5c36909df6a9890540e2f1f43b8cc8d92e5e8fb7e47a67fbbcdd478c54
|
|
7
|
+
data.tar.gz: '059e71ef27a688a1adf75350454a6c9770f57b9ada1e69d7f1526aa77b8dd191f6c6c7787ab631d2a76fc607035bd41f0b987b3e1bb2452e124dc7d918e9f564'
|
|
@@ -10,6 +10,7 @@ namespace :cortex do
|
|
|
10
10
|
puts "Creating Media ContentType..."
|
|
11
11
|
media = ContentType.new({
|
|
12
12
|
name: "Media",
|
|
13
|
+
name_id: "media",
|
|
13
14
|
description: "Media for Cortex",
|
|
14
15
|
icon: "collections",
|
|
15
16
|
tenant: example_tenant,
|
|
@@ -21,9 +22,9 @@ namespace :cortex do
|
|
|
21
22
|
puts "Creating Fields..."
|
|
22
23
|
|
|
23
24
|
allowed_asset_content_types = %w(txt css js pdf doc docx ppt pptx csv xls xlsx svg ico png jpg gif bmp)
|
|
24
|
-
fieldTitle = media.fields.new(name: 'Title', field_type: 'text_field_type', validations: { presence: true, uniqueness: true })
|
|
25
|
+
fieldTitle = media.fields.new(name: 'Title', name_id: 'title', field_type: 'text_field_type', validations: { presence: true, uniqueness: true })
|
|
25
26
|
fieldTitle.save
|
|
26
|
-
media.fields.new(name: 'Asset', field_type: 'asset_field_type',
|
|
27
|
+
media.fields.new(name: 'Asset', name_id: 'asset', field_type: 'asset_field_type',
|
|
27
28
|
validations:
|
|
28
29
|
{
|
|
29
30
|
presence: true,
|
|
@@ -87,10 +88,10 @@ namespace :cortex do
|
|
|
87
88
|
svgo: false
|
|
88
89
|
}
|
|
89
90
|
})
|
|
90
|
-
media.fields.new(name: 'Description', field_type: 'text_field_type', validations: {presence: true})
|
|
91
|
-
media.fields.new(name: 'Tags', field_type: 'tag_field_type')
|
|
92
|
-
media.fields.new(name: 'Expiration Date', field_type: 'date_time_field_type')
|
|
93
|
-
media.fields.new(name: 'Alt Tag', field_type: 'text_field_type')
|
|
91
|
+
media.fields.new(name: 'Description', name_id: 'description', field_type: 'text_field_type', validations: {presence: true})
|
|
92
|
+
media.fields.new(name: 'Tags', name_id: 'tags', field_type: 'tag_field_type')
|
|
93
|
+
media.fields.new(name: 'Expiration Date', name_id: 'expiration_date', field_type: 'date_time_field_type')
|
|
94
|
+
media.fields.new(name: 'Alt Tag', name_id: 'alt_tag', field_type: 'text_field_type')
|
|
94
95
|
|
|
95
96
|
media.save!
|
|
96
97
|
|