cats_core 1.5.24 → 1.5.26

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: e90178cd66acd3f96313a3663036ba07bbf157e092e672adc393d840f701cfde
4
- data.tar.gz: 7236c8485554e65bc5058bc600bfe25b38465b5d760823c3e96aec29c37ae951
3
+ metadata.gz: 1c8be1ba8f56a842d768b82e55d12671dac81db7ca6d7c720bec9fd6743f96fd
4
+ data.tar.gz: 58d6e641497d4419d813b8bde9937215143038cfb9cf1d4a54cdf53e89f0a438
5
5
  SHA512:
6
- metadata.gz: 80fff7d2dae7ed8e2d0fe77339bc0dbcd433d1fba6be6083e0c1e3b118c222912a957c0eee129908016a1fd7b25b1f4c4c931b8ef632fe12943d5b5facd620ce
7
- data.tar.gz: '0765604991129318a519ad3960f32a43582f561492972264b027dda9846d87c1255c3009743a3f493386abda67ca9c373184f1d809b06ce5109017a1b96a6da4'
6
+ metadata.gz: d74325e8d1a2ec67aac8c40098fb71ca67336b4d115847cecabec7d577c1394c75689cadbed0c832697806a011e369d8368aefcf4ec49db39b133823c6503ac7
7
+ data.tar.gz: e10a0b3750fdba8f67a2404b9d579739f00b198042798610313a5ddd20a27c7743c5d4b3b99826acf988f91c68133603415c40749e7f79eafeae1759cfda56dd
@@ -5,7 +5,8 @@ module Cats
5
5
 
6
6
  def index
7
7
  super do
8
- StackTransaction.joins({source: :store}, :unit)
8
+ StackTransaction.joins(source: :store)
9
+ .includes(:unit)
9
10
  .where(cats_core_stacks: {cats_core_stores: {warehouse_id: params[:id]}})
10
11
  end
11
12
  end
@@ -0,0 +1,7 @@
1
+ module Cats
2
+ module Core
3
+ class StackTransactionSerializer < ActiveModel::Serializer
4
+ attributes :id, :source_id, :destination_id, :quantity, :transaction_date, :status, :unit_id, :unit_abbreviation
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = "1.5.24".freeze
3
+ VERSION = "1.5.26".freeze
4
4
  end
5
5
  end
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.5.24
4
+ version: 1.5.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: 2023-11-23 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.7'
61
+ version: 2.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.7'
68
+ version: 2.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: noticed
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -428,6 +428,7 @@ files:
428
428
  - app/serializers/cats/core/round_plan_serializer.rb
429
429
  - app/serializers/cats/core/route_serializer.rb
430
430
  - app/serializers/cats/core/stack_serializer.rb
431
+ - app/serializers/cats/core/stack_transaction_serializer.rb
431
432
  - app/serializers/cats/core/store_serializer.rb
432
433
  - app/serializers/cats/core/swap_serializer.rb
433
434
  - app/serializers/cats/core/transporter_serializer.rb