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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94cebb14cba585c69240da175861cf9f988b3ef5
4
- data.tar.gz: c08ca77752ae8d36768e3f292287b38a067fe53c
3
+ metadata.gz: 37023c83b4d6c1cb96b6239289e51bf73b7a26db
4
+ data.tar.gz: cb56581dbe380f41df79351b9fb01570f373e18e
5
5
  SHA512:
6
- metadata.gz: 737c74d7227248643d50daf8465392d863d1ef490e8b1346a56115549dcdfa28b066a350e4cc8afaabbcf4f33832751ac185eb14248955073c53f2b7d2af0c62
7
- data.tar.gz: d28804c3678c07474bcc2e4a792c73b6e3f5602343e6115df22756e7d686860b4811da38d3e89dbc5f43d9486448124ff3555383d1edcf504509abd0cd513b8c
6
+ metadata.gz: e165c1b1383346e92973ba07cdd4ce4ade0aeba076d288ccdb6f63380e42de1e8ad49f5c36909df6a9890540e2f1f43b8cc8d92e5e8fb7e47a67fbbcdd478c54
7
+ data.tar.gz: '059e71ef27a688a1adf75350454a6c9770f57b9ada1e69d7f1526aa77b8dd191f6c6c7787ab631d2a76fc607035bd41f0b987b3e1bb2452e124dc7d918e9f564'
@@ -1,7 +1,7 @@
1
1
  module Cortex
2
2
  module Plugins
3
3
  module Core
4
- VERSION = '2.1.0'
4
+ VERSION = '2.1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-plugins-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CareerBuilder Employer Site & Content Products