cmor_files 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 +4 -4
- data/spec/factories/cmor_files_file_details.rb +17 -0
- data/spec/factories/cmor_files_folders.rb +6 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c03359f09f93bbbb4242d6ff7bbc6b29469826814803138cd3a18668e53f0283
|
4
|
+
data.tar.gz: 075d3ff2a8cad0e405722ca40cd1ced55df0c87911f8ded0c5ae832302918826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26edec2be7d27ab232aad4ff3a2e29d85a53485fc8c2da8a0268e0745b60a17d72186ad8702ddb34b54d31f972c2f60f6ce77d691f4446f77cf00157721192a8
|
7
|
+
data.tar.gz: ffc316aab2a66558504a864b456ce57a2685063a29571078f5b380f220fa5b3f98bcfb2f7defe7f24680ee49d7cf32bae2b0b55f6cd1cff0c603d1e367c1430e
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :cmor_files_file_detail, class: 'Cmor::Files::FileDetail' do
|
3
|
+
association :folder, factory: :cmor_files_folder
|
4
|
+
after(:build) { |resource|
|
5
|
+
assets = resource.folder.assets.attach(
|
6
|
+
io: File.open(File.join(Cmor::Files::Engine.root.join(*%w( spec files cmor files 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.folder.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_files
|
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
|
@@ -429,6 +429,8 @@ files:
|
|
429
429
|
- lib/generators/cmor/files/install/templates/initializer.rb
|
430
430
|
- lib/generators/cmor/files/install/templates/routes.source
|
431
431
|
- lib/tasks/cmor_files_tasks.rake
|
432
|
+
- spec/factories/cmor_files_file_details.rb
|
433
|
+
- spec/factories/cmor_files_folders.rb
|
432
434
|
- spec/files/cmor/files/file_details/example.png
|
433
435
|
homepage: https://github.com/content-management-on-rails
|
434
436
|
licenses:
|