cortex-plugins-core 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cortex/plugins/core/version.rb +1 -1
- data/lib/tasks/cortex/core/media.rake +11 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c866a93833168f6fc5a61479f8630db4fd79376d
|
4
|
+
data.tar.gz: 53f8bc2d4d0d62bd63dd739b40f7853cfaa7c226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d32258332f0319064b14ad73e31cc7b013e48b95eb0da49d98e543087339ea33bc7f17b08ea89565277edec74949b270171902fa1ea309d2fd9de6f5229bfe9
|
7
|
+
data.tar.gz: 95d75a1fe5487d0e2089a121668ee4bdfa8c5448d253eb5c954050a7132bc1bf137ce213053f370ebd9d8026d099056bed3c9aaa5c4de085328cb4a74524ca88
|
@@ -5,13 +5,16 @@ namespace :cortex do
|
|
5
5
|
namespace :media do
|
6
6
|
desc 'Seed Cortex Media ContentType and Fields'
|
7
7
|
task seed: :environment do
|
8
|
+
example_tenant = Tenant.find_by_name('Example')
|
9
|
+
|
8
10
|
puts "Creating Media ContentType..."
|
9
11
|
media = ContentType.new({
|
10
12
|
name: "Media",
|
11
13
|
description: "Media for Cortex",
|
12
14
|
icon: "collections",
|
13
|
-
|
14
|
-
|
15
|
+
tenant: example_tenant,
|
16
|
+
creator: User.first,
|
17
|
+
contract: Contract.first # TODO: This is obviously bad. This whole file is bad.
|
15
18
|
})
|
16
19
|
media.save!
|
17
20
|
|
@@ -158,13 +161,14 @@ namespace :cortex do
|
|
158
161
|
]
|
159
162
|
}
|
160
163
|
|
161
|
-
media_wizard_decorator = Decorator.new(name: "Wizard", data: wizard_hash)
|
164
|
+
media_wizard_decorator = Decorator.new(name: "Wizard", data: wizard_hash, tenant: example_tenant)
|
162
165
|
media_wizard_decorator.save!
|
163
166
|
|
164
167
|
ContentableDecorator.create!({
|
165
168
|
decorator_id: media_wizard_decorator.id,
|
166
169
|
contentable_id: media.id,
|
167
|
-
contentable_type: 'ContentType'
|
170
|
+
contentable_type: 'ContentType',
|
171
|
+
tenant: example_tenant
|
168
172
|
})
|
169
173
|
|
170
174
|
puts "Creating Index Decorators..."
|
@@ -241,13 +245,14 @@ namespace :cortex do
|
|
241
245
|
]
|
242
246
|
}
|
243
247
|
|
244
|
-
media_index_decorator = Decorator.new(name: "Index", data: index_hash)
|
248
|
+
media_index_decorator = Decorator.new(name: "Index", data: index_hash, tenant: example_tenant)
|
245
249
|
media_index_decorator.save!
|
246
250
|
|
247
251
|
ContentableDecorator.create!({
|
248
252
|
decorator_id: media_index_decorator.id,
|
249
253
|
contentable_id: media.id,
|
250
|
-
contentable_type: 'ContentType'
|
254
|
+
contentable_type: 'ContentType',
|
255
|
+
tenant: example_tenant
|
251
256
|
})
|
252
257
|
end
|
253
258
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cortex-plugins-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CareerBuilder Employer Site & Content Products
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cells
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|