cats_core 1.3.0 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cats/core/routes_controller.rb +5 -0
- data/app/models/cats/core/gift_certificate.rb +1 -1
- data/app/models/cats/core/offer_item.rb +2 -0
- data/app/models/cats/core/route.rb +2 -0
- data/app/models/cats/core/transport_bid.rb +1 -0
- data/app/models/cats/core/transport_bid_item.rb +4 -0
- data/app/serializers/cats/core/route_serializer.rb +1 -1
- data/config/routes.rb +2 -0
- data/db/migrate/20210717032602_create_cats_core_gift_certificates.rb +2 -2
- data/lib/cats/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c44a1c208dbd4626ab5eb07ff44c2282e62d37f9ed2023f192de81f948db2b1b
|
4
|
+
data.tar.gz: aaad5e4d7d06b00d6277b60abd7b04e398e01122599f225c99fdfe2d777ddad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adde6b14c19da6ea4f651351f42249804a5fe4404293f9a7f80e860c3e11527821016859372307a0b4be13d2b007ffdc5171efd87bdb8a397567db468f12acd8
|
7
|
+
data.tar.gz: f28db6afdbab5f01ad463293132d697bbb94870b841833fb795ff6af0a771ca6bf61bc75df9c3067495001055bb50ecb5749ec9dcbaa8e3f9619d4f28f1553dc
|
@@ -8,6 +8,8 @@ module Cats
|
|
8
8
|
validates :rank, numericality: { greater_than: 0 }, allow_nil: true
|
9
9
|
validate :validate_rank_is_set_for_winner
|
10
10
|
|
11
|
+
delegate(:route, to: :transport_bid_item)
|
12
|
+
|
11
13
|
def mark_as_winner(rank)
|
12
14
|
raise(StandardError, 'Offer item already marked as winner.') if winner
|
13
15
|
|
data/config/routes.rb
CHANGED
@@ -66,6 +66,8 @@ Cats::Core::Engine.routes.draw do
|
|
66
66
|
end
|
67
67
|
resources :currencies, except: %i[destroy]
|
68
68
|
resources :unit_of_measures, except: %i[destroy]
|
69
|
+
|
70
|
+
post '/routes/filter', controller: :routes, action: :filter
|
69
71
|
resources :routes, except: %i[destroy]
|
70
72
|
|
71
73
|
post '/dispatch_plans/filter', controller: :dispatch_plans, action: :filter
|
@@ -5,10 +5,10 @@ class CreateCatsCoreGiftCertificates < ActiveRecord::Migration[6.1]
|
|
5
5
|
t.date :gift_date, null: false
|
6
6
|
|
7
7
|
t.references :donation,
|
8
|
-
null:
|
8
|
+
null: true,
|
9
9
|
index: { name: 'gc_on_donation_indx' },
|
10
10
|
foreign_key: { to_table: :cats_core_donations }
|
11
|
-
|
11
|
+
|
12
12
|
t.string :vessel
|
13
13
|
t.string :port
|
14
14
|
t.string :customs_declaration_no
|
data/lib/cats/core/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|