cats_core 1.2.25 → 1.2.29

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: 4f77886d3ecd05214933544684c4bd9f37165fb8c34ed8a641866e792a993385
4
- data.tar.gz: 3b01c59cc8e1baad2f912313166c3f974212542d8eb3623a8ae0a5a25bcfebc4
3
+ metadata.gz: 88acfd698b11129e941ca058a9fb856745acb440e3f624a6cbcdcf0f1f4304b7
4
+ data.tar.gz: 451c7311e7c447d36729102c1dcb7d5756491eb08bbad88266b72bd52a7f9893
5
5
  SHA512:
6
- metadata.gz: cdb748fff925eca80e12bbe4f1f272535cf70bf40bab98f4b5f08bb1d499ddd542352356d9ea87ec08e657f9cabc74510aa38899b15c01484b40598c0f506a24
7
- data.tar.gz: 3d3375b52e6edffe8cd3d92f5b9476d28b077f4ee611356b7219fd5f5a69cff2d5b0f7f70af22ab5843c33323095bf9b33e59d832151f688a612b0ad68427a9c
6
+ metadata.gz: '096b15bd9fb62182f055d7ddbeee44d5614f0631bdc7f2f93869c26414a60dcede4b3d1971b6787e61fa7eb34ed687086964dd93978ffc6a0cb7c380c7c7b259'
7
+ data.tar.gz: bfc6eb7f162a838f48a4c153faffa9652b25fa951e9d0ad1711fee49044496a499a28f22ca45d5df4cd47739646195301ef118e67b6695ff0e6cfd85fae107a1
@@ -8,6 +8,8 @@ module Cats
8
8
  validates :price, presence: true, numericality: { greater_than: 0 }
9
9
 
10
10
  delegate(:name, to: :route, prefix: true)
11
+ delegate(:contract_no, to: :transport_contract, prefix: false)
12
+ delegate(:name, to: :unit, prefix: true)
11
13
  end
12
14
  end
13
15
  end
@@ -11,6 +11,7 @@ module Cats
11
11
 
12
12
  delegate(:name, to: :route, prefix: true)
13
13
  delegate(:name, to: :unit, prefix: true, allow_nil: true)
14
+ delegate(:reference_no, to: :transport_bid, prefix: true)
14
15
  end
15
16
  end
16
17
  end
@@ -5,7 +5,12 @@ module Cats
5
5
  belongs_to :transporter
6
6
  belongs_to :transport_bid
7
7
 
8
+ validates :contract_no, presence: true, uniqueness: true
8
9
  validates :contract_date, :expires_on, presence: true
10
+
11
+ delegate(:name, to: :region, prefix: true)
12
+ delegate(:name, to: :transporter, prefix: true)
13
+ delegate(:reference_no, to: :transport_bid, prefix: :bid)
9
14
  end
10
15
  end
11
16
  end
@@ -1,6 +1,7 @@
1
1
  class CreateCatsCoreTransportContracts < ActiveRecord::Migration[6.1]
2
2
  def change
3
3
  create_table :cats_core_transport_contracts do |t|
4
+ t.string :contract_no, unique: true
4
5
  t.references :region,
5
6
  null: false,
6
7
  index: { name: 'region_on_tc_indx' },
@@ -16,6 +17,7 @@ class CreateCatsCoreTransportContracts < ActiveRecord::Migration[6.1]
16
17
  t.date :contract_date, null: false
17
18
  t.date :expires_on, null: false
18
19
  t.string :payment_term
20
+ t.boolean :signed, null: false, default: false
19
21
 
20
22
  t.timestamps
21
23
  end
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.25'.freeze
3
+ VERSION = '1.2.29'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :transport_contract, class: 'Cats::Core::TransportContract' do
3
+ contract_no { FFaker::Name.name }
3
4
  region factory: :location
4
5
  transporter
5
6
  transport_bid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.25
4
+ version: 1.2.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -439,7 +439,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
439
439
  requirements:
440
440
  - - ">="
441
441
  - !ruby/object:Gem::Version
442
- version: '0'
442
+ version: 3.0.2
443
443
  required_rubygems_version: !ruby/object:Gem::Requirement
444
444
  requirements:
445
445
  - - ">="