ecom_core 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55981c8967b5bc6d73d2ee78c31f2b0cdab1fbe48a43151ac23364b4b49c3a2e
4
- data.tar.gz: c92cf858178d5225c806b0f65faf21bb67d819d2397fe564c0306866a950a34b
3
+ metadata.gz: cc33c4120563276cee995e753b7c6e9bdcff0740e9b2e306549abfca286fa8b0
4
+ data.tar.gz: 3cf51d8bf2777ff6a56b4659b404513d85c1aa9289069284ae17f8339c3f0df8
5
5
  SHA512:
6
- metadata.gz: 1f79dd43c005604fed22a80bf4b071f1e07f5cddc8c6de368f96b7e0d06413d15edad31a73792ba353c31b8d7e9dc7c0553fe0a414bf9c065bcdb127f60dba7a
7
- data.tar.gz: 4c4944902306db1e7317deb45cbcd5cdb91c0aa8ef9b12184ef2c9f25fcf1814fbebe6c1b6db6a63c48977e7484ae67fb6b73b2d2a503f30f2cfcaefcf26c1b7
6
+ metadata.gz: 6380cdb381fe5dd76533f94351ee2fddb3be0ef6559c39d883f2e41999c50dd7fd045a9f9b58854e58433c3f5a67924c3f9fed4c24977f5fc1d880be7bf1bb43
7
+ data.tar.gz: ce5cb1bac51e23a63dbc85b77129b1281d847323fae967f5fa9178544f91efeb679047748da472d1139e4396dc2e7d77a1699acc6fd88912dadd97066c98e125
@@ -7,6 +7,7 @@ module Ecom
7
7
 
8
8
  belongs_to :work_product
9
9
  belongs_to :task_template
10
+ belongs_to :work_package, optional: true
10
11
  belongs_to :performer, class_name: 'Ecom::Core::User', optional: true
11
12
  belongs_to :approver, class_name: 'Ecom::Core::User', optional: true
12
13
  belongs_to :supervisor, class_name: 'Ecom::Core::User', optional: true
@@ -6,7 +6,7 @@ module Ecom
6
6
  validates :code, :name, presence: true
7
7
  validates :code, uniqueness: true
8
8
 
9
- has_many :work_products
9
+ has_many :tasks
10
10
  end
11
11
  end
12
12
  end
@@ -26,7 +26,6 @@ module Ecom
26
26
  belongs_to :work_product_template
27
27
  belongs_to :project
28
28
  belongs_to :product_group, optional: true
29
- belongs_to :work_package, optional: true
30
29
  belongs_to :approver, class_name: 'Ecom::Core::User', optional: true
31
30
  belongs_to :supervisor, class_name: 'Ecom::Core::User', optional: true
32
31
  belongs_to :quality_controller, class_name: 'Ecom::Core::User', optional: true
@@ -10,6 +10,10 @@ module Ecom
10
10
  def extension_whitelist
11
11
  %w[jpg jpeg gif png]
12
12
  end
13
+
14
+ def filename
15
+ original_filename
16
+ end
13
17
  end
14
18
  end
15
19
  end
@@ -9,10 +9,6 @@ class CreateEcomCoreWorkProducts < ActiveRecord::Migration[6.0]
9
9
  null: true,
10
10
  index: { name: 'wp_on_pg_indx' },
11
11
  foreign_key: { to_table: :ecom_core_product_groups }
12
- t.references :work_package,
13
- null: true,
14
- index: { name: 'wp_on_wp_indx' },
15
- foreign_key: { to_table: :ecom_core_work_packages }
16
12
  t.references :work_product_template,
17
13
  null: false,
18
14
  index: { name: 'wpt_on_wp_indx' },
@@ -10,6 +10,10 @@ class CreateEcomCoreTasks < ActiveRecord::Migration[6.0]
10
10
  t.string :status, null: false, default: :new
11
11
  t.integer :percent_completed, null: false, default: 0
12
12
  t.string :remark
13
+ t.references :work_package,
14
+ null: true,
15
+ index: { name: 'wp_on_wp_indx' },
16
+ foreign_key: { to_table: :ecom_core_work_packages }
13
17
  t.references :performer,
14
18
  null: true,
15
19
  index: { name: 'tasks_on_performer_indx' },
@@ -1,5 +1,5 @@
1
1
  module Ecom
2
2
  module Core
3
- VERSION = '1.2.25'.freeze
3
+ VERSION = '1.2.26'.freeze
4
4
  end
5
5
  end
@@ -16,5 +16,6 @@ FactoryBot.define do
16
16
  association :quality_controller, factory: :user
17
17
  association :task_template
18
18
  association :work_product
19
+ association :work_package
19
20
  end
20
21
  end
@@ -5,7 +5,6 @@ FactoryBot.define do
5
5
  design_reference_no { FFaker::Guid.guid }
6
6
  dimension { [{ label: 'Length', name: 'length', value: 12 }] }
7
7
  association :product_group
8
- association :work_package
9
8
  association :work_product_template
10
9
  association :project
11
10
  status { Ecom::Core::WorkProduct::NEW }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecom_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.25
4
+ version: 1.2.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-07 00:00:00.000000000 Z
11
+ date: 2020-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm