cmor_showcase 0.0.52.pre → 0.0.57.pre
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4499411a424f14db767b74ef7527802be274c9dccf3b37865048392b25c4ff34
|
4
|
+
data.tar.gz: 78bba2b012b1aa8d86cf3ac7e6f3ef6bda919ca6f0d5d5f350dcd438a5d92eb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b91d792a95329d6f1ff6a7a71e1a351d28f6197a312c489a108e11d6a28182130f538466b6b4545bccae363b8cf7bea4c9c7b34b1754721bdc41e445d70128
|
7
|
+
data.tar.gz: f043bf3372cc10a262bcb11706d978c58277b9f9cfb3f15bc16913bc1f0500ae1b71a15cf41324a52d7b8f859a17300b03d800fc73bd2b2672cc548e56a1b261
|
@@ -17,6 +17,6 @@
|
|
17
17
|
= link_to(main_app.url_for(resource.asset), class: 'btn btn-xs btn-responsive btn-primary') do
|
18
18
|
%i.fas.fa-download
|
19
19
|
%span.btn-text= t('.download')
|
20
|
-
= link_to([resource], id: "#{dom_id(resource)}-destroy", class: 'btn btn-xs btn-responsive btn-danger', method: :delete, data: { confirm:
|
20
|
+
= link_to([resource], id: "#{dom_id(resource)}-destroy", class: 'btn btn-xs btn-responsive btn-danger', method: :delete, data: { confirm: t('rao.component.collection_table.destroy_confirmation') }) do
|
21
21
|
%i.fas.fa-fire
|
22
22
|
%span.btn-text= t('.destroy')
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :cmor_showcase_file_detail, class: 'Cmor::Showcase::FileDetail' do
|
3
|
+
association :item, factory: :cmor_showcase_item
|
4
|
+
after(:build) { |resource|
|
5
|
+
assets = resource.item.assets.attach(
|
6
|
+
io: File.open(File.join(Cmor::Showcase::Engine.root.join(*%w( spec files cmor showcase file_details example.png)))),
|
7
|
+
filename: 'example.png',
|
8
|
+
content_type: 'image/png'
|
9
|
+
)
|
10
|
+
if Rails.version < "6.0.0"
|
11
|
+
resource.asset = assets.first
|
12
|
+
else
|
13
|
+
resource.asset = resource.item.assets.first
|
14
|
+
end
|
15
|
+
}
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_showcase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.57.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.57.pre
|
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: 0.0.
|
40
|
+
version: 0.0.57.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_backend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.57.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.57.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,6 +454,9 @@ files:
|
|
454
454
|
- lib/generators/cmor/showcase/install/templates/initializer.rb
|
455
455
|
- lib/generators/cmor/showcase/install/templates/routes.source
|
456
456
|
- lib/tasks/cmor/showcase_tasks.rake
|
457
|
+
- spec/factories/cmor_showcase_categories.rb
|
458
|
+
- spec/factories/cmor_showcase_file_details.rb
|
459
|
+
- spec/factories/cmor_showcase_item.rb
|
457
460
|
- spec/files/cmor/showcase/file_details/example.png
|
458
461
|
homepage: https://github.com/content-management-on-rails
|
459
462
|
licenses:
|
@@ -475,7 +478,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
475
478
|
- !ruby/object:Gem::Version
|
476
479
|
version: 1.3.1
|
477
480
|
requirements: []
|
478
|
-
rubygems_version: 3.1.
|
481
|
+
rubygems_version: 3.1.4
|
479
482
|
signing_key:
|
480
483
|
specification_version: 4
|
481
484
|
summary: Cmor::Showcase Module.
|