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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01b4749c426409136f626da21f0524c3252cb263e885c6295bfdb596d4d475d2
4
- data.tar.gz: a35736f55efe085f2f9c8cc2ff6178290aa40452c44e480258ffc54b02bcadae
3
+ metadata.gz: c03359f09f93bbbb4242d6ff7bbc6b29469826814803138cd3a18668e53f0283
4
+ data.tar.gz: 075d3ff2a8cad0e405722ca40cd1ced55df0c87911f8ded0c5ae832302918826
5
5
  SHA512:
6
- metadata.gz: 10e9f950d420ed6926a07637d5d8669b112a597766995dd5987542a359c5ff0c2880c5a22c8c45d5995a95d37c6236cb5dc1b68c41e270a8b2f0251a30f6d041
7
- data.tar.gz: a372935fc8b53e269447d8b1e8209f9a1f8d8b05fb798a0dadecb853528244aa7aed6d6dc161e59870d8078ebea1bf62dac0e584265633f03d438c43766f57b0
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
@@ -0,0 +1,6 @@
1
+ FactoryBot.define do
2
+ factory :cmor_files_folder, class: 'Cmor::Files::Folder' do
3
+ sequence(:name) { |i| "Folder ##{i}" }
4
+ sequence(:identifier) { |i| "folder-#{i}" }
5
+ end
6
+ 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.52.pre
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.52.pre
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.52.pre
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.52.pre
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.52.pre
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: