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: 4afa9f9bc9d25825ebe4748ceb6f22b3a4bfd4b77a12c734c50dadd2073dba56
4
- data.tar.gz: 77f23603b975f865f8b992a1afd5bba307a2855bf73e060ca180720b05d36ec2
3
+ metadata.gz: ffdd62d26963c737862ebc018e96c1bb33d9da2bab72bc8c7a84fee254e46825
4
+ data.tar.gz: 1e8fbcd2639989158739ce9f58f816602056aa98d9a2c2eed0dc3df4469a2dce
5
5
  SHA512:
6
- metadata.gz: ca7f5fee78dfb29bd2ae416e750e6be6eed164f8c55f1446f9635d54ca5f3fd8aa24e16036ea30bc3f7cc066639b0655a2ce1d4a3a0436a715520cc330ea7cf2
7
- data.tar.gz: af99001d02955a75e09bdef587bc542441597650357cb33c6014b3f1d2f342d9df8d2f9dec508796129a74db73c586aa1b71ac8f9362f7f9e6974db1334f53a8
6
+ metadata.gz: f92c225b6533820527b0709d4386b464a2a71552c3a34aba1cba6590adc666e06b8dc922a7c940f7e568fb9d3dc9877faf470d7c41b366c4124d3467671f51c5
7
+ data.tar.gz: 489608d753b1da62e617797b5b70995fe7c04bf8e1c00fc9c18fca36f3ee79417a9c47d93b5681589c3380a0f9d6a6b55e724f800156bcca11ada333e6794488
@@ -0,0 +1,7 @@
1
+ FactoryBot.define do
2
+ factory :cmor_showcase_category, class: Cmor::Showcase::Category do
3
+ locale { I18n.locale }
4
+ sequence(:identifier) { |i| "category-#{i}" }
5
+ sequence(:name) { |i| "Category ##{i}" }
6
+ end
7
+ end
@@ -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
@@ -0,0 +1,6 @@
1
+ FactoryBot.define do
2
+ factory :cmor_showcase_item, class: Cmor::Showcase::Item do
3
+ association(:category, factory: :cmor_showcase_category)
4
+ sequence(:name) { |i| "Item ##{i}" }
5
+ end
6
+ 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.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_backend
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
@@ -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: