cats_core 1.2.40 → 1.3.3
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/offer_item.rb +2 -0
- data/app/models/cats/core/route.rb +2 -0
- data/app/models/cats/core/tenderer.rb +3 -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/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: cdba57c2bf858a5e13e6b3fbda47480ebde0daab288fe316227c79fb09a25dca
|
4
|
+
data.tar.gz: abd8687cafb652893f8c7acde57e8d44f83a35e0cc60f0cbf38634505ac96b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37408f5b51f9b8fa476432a57eb5424e76f482e533915f5e9810afdc29b62af9e233019bf8ae209837e07cabd3b6b7645cd1892c233713a94e93c5fecce02ec9
|
7
|
+
data.tar.gz: b122ff2735e2f6b2186c38ff01aaf886e5e7317a7a9c956489f481f97991a1e00d9871c00ebe1b1e0013fbe886aeb85bb78ed7274221c21191b1fae2488392a1
|
@@ -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
|
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.
|
4
|
+
version: 1.3.3
|
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
|