cmor_galleries 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: a56a3ad5ad61881a953f1e61d492ed56a33758da2b65a62f942e8409bb49a334
|
4
|
+
data.tar.gz: 64fdee3c7f1e87487c7f974756356bec5524f77612a3e8170620efaa5ede5fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43a5d4f881f2b26e3fc436c10e17fb56837f37a7946ba57a47ceb9b59cae2d90816ef11d2b3ca40cc5375088c3dd8dac3e7d853d5db4dde670ccdc92c4f02af2
|
7
|
+
data.tar.gz: 6348c4ba5161382018bc3db2dde79a791e9d7e24914c4044422ae6bb108cabcc11bad03ea1c6382f19522641572156f157327472ff028e2c84b9a475427132b1
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :cmor_galleries_picture_detail, class: 'Cmor::Galleries::PictureDetail' do
|
3
|
+
association :picture_gallery, factory: :cmor_galleries_picture_gallery
|
4
|
+
after(:build) { |resource|
|
5
|
+
assets = resource.picture_gallery.assets.attach(
|
6
|
+
io: File.open(File.join(Cmor::Galleries::Engine.root.join(*%w( spec files cmor galleries picture_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.picture_gallery.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_galleries
|
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
|
@@ -422,6 +422,8 @@ files:
|
|
422
422
|
- lib/generators/cmor/galleries/install/templates/initializer.rb
|
423
423
|
- lib/generators/cmor/galleries/install/templates/routes.source
|
424
424
|
- lib/tasks/cmor_galleries_tasks.rake
|
425
|
+
- spec/factories/cmor_galleries_picture_details.rb
|
426
|
+
- spec/factories/cmor_galleries_picture_galleries.rb
|
425
427
|
- spec/files/cmor/galleries/picture_details/example.png
|
426
428
|
homepage: https://github.com/content-management-on-rails
|
427
429
|
licenses:
|