cmor_showcase 0.0.52.pre → 0.0.53.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: ffdd62d26963c737862ebc018e96c1bb33d9da2bab72bc8c7a84fee254e46825
|
4
|
+
data.tar.gz: 1e8fbcd2639989158739ce9f58f816602056aa98d9a2c2eed0dc3df4469a2dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f92c225b6533820527b0709d4386b464a2a71552c3a34aba1cba6590adc666e06b8dc922a7c940f7e568fb9d3dc9877faf470d7c41b366c4124d3467671f51c5
|
7
|
+
data.tar.gz: 489608d753b1da62e617797b5b70995fe7c04bf8e1c00fc9c18fca36f3ee79417a9c47d93b5681589c3380a0f9d6a6b55e724f800156bcca11ada333e6794488
|
@@ -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,7 +1,7 @@
|
|
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.53.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.53.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.53.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.53.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.53.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:
|