cmor_carousels 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: dfca3dfca194e66a6f4e499539caa3198b80e734b74126cb5574c15198b08ced
|
4
|
+
data.tar.gz: f5a7a828022b6b490b8ca04812553abf7d0a29d34c5b4131f5a206d0326b6685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29c4c5081ca66384a41c031fdf20c273e6f9feceeb64c09d2b3052942924890882dee50a7619b5e55a51c64ab38aae2ef1149bf8102644c218d2780a67c0b2d5
|
7
|
+
data.tar.gz: d1b84606c771f7e101dfe44b700bda6f93ad93678d3645f724721baf0e8baccac07ab569cdee897a5c1945048ef98d348f865e1899edb051fc78d47e97eea0e7
|
@@ -0,0 +1,18 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :cmor_carousels_item_detail, class: Cmor::Carousels::ItemDetail do
|
3
|
+
association :carousel, factory: :cmor_carousels_carousel
|
4
|
+
after(:build) { |resource|
|
5
|
+
assets = resource.carousel.assets.attach(
|
6
|
+
io: File.open(Cmor::Carousels::Engine.root.join(*%w(spec files cmor carousels item_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.carousel.assets.first
|
14
|
+
end
|
15
|
+
}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_carousels
|
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_frontend
|
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
|
@@ -394,6 +394,8 @@ files:
|
|
394
394
|
- lib/cmor_carousels.rb
|
395
395
|
- lib/generators/cmor/carousels/install/install_generator.rb
|
396
396
|
- lib/generators/cmor/carousels/install/templates/initializer.rb
|
397
|
+
- spec/factories/cmor/carousels/carousels.rb
|
398
|
+
- spec/factories/cmor/carousels/item_details.rb
|
397
399
|
- spec/files/cmor/carousels/item_details/example.png
|
398
400
|
homepage: https://github.com/content-management-on-rails
|
399
401
|
licenses:
|