cats_core 1.3.0 → 1.3.1

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: 023c32016bdf9ca32dc84e1b1742df1baa1a3ed44748115551c8d2ca493d01e2
4
- data.tar.gz: 912fd8caf76f4543c5c611aa6f5845914c4f03cd08eab74ba3ee8355f3be3ee4
3
+ metadata.gz: 6d4aec729abe0584f124c74a2a86fbcfa0d068b6c5b968a847a4a040595e19a8
4
+ data.tar.gz: 8b880262cb1ffcb7f92d1e7f2de5039feafac1805f3d9434122abd448c5dc6ea
5
5
  SHA512:
6
- metadata.gz: 6066a9c4cf2a68e1c352afa61f6e8d592723e57dc8f0786e65c697743863b9d200cee5bd0f41f06012cef1d73f368c58940fa1e5d15c42d8a78234426f8a3cd2
7
- data.tar.gz: 57f4fb61c65e1dcad1815d76f23234f7b58a38f0678ceb60f72b561bec5ac03c014e8a5c5ba7bf8c161fcfae2664865eb96cf1e0d3c29dd56f97caa5c8af5336
6
+ metadata.gz: 07e042748a002c29d571ec68788ac3ae3369569b41aa60affafeaa0236270bb28a64f5aebb0a48a43eb52b14beb0483b8d72b14f92649d1856b8b77496b53075
7
+ data.tar.gz: 387e10b63ecdc87555742a4aad7f505324aa06d569bdf7a7358efc57820886674dd0983673f9fefc5304ed697be276baefef5f63e7961f35134c3d0181f407a6
@@ -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
 
@@ -10,6 +10,10 @@ module Cats
10
10
  validates :transport_plan_item_id, uniqueness: true
11
11
 
12
12
  delegate(:reference_no, to: :transport_bid, prefix: true)
13
+
14
+ def route
15
+ transport_plan_item.route.name
16
+ end
13
17
  end
14
18
  end
15
19
  end
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.