zaikio-warehouse 0.2.3 → 0.2.4

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: 875d5cf17ce81095769341f2f64af5dd5bbbe69f5f7d4fa296db221075d2a5e1
4
- data.tar.gz: e31637728832e4fce034a0e675e27b4d81c8195471c4b44fca6c98a38ec4f0e9
3
+ metadata.gz: c8e6cd14f506a06aa4f2f6dcfe43452144f0c2ece0063350f55f3c77589b30d8
4
+ data.tar.gz: 85e0ec8568a905739541b005cd56cf394276eb8812ca06c09bc204f79983eeb9
5
5
  SHA512:
6
- metadata.gz: 8f77cd1cda6f4e0419349781bdd3d59d8ea0f901ea80999fc72d31e5436b8093eb32b48415e44ec032191148eb887917835aa21d52f6f86244179c7ba3e812fe
7
- data.tar.gz: f6e4e665ecbb961105a6800e01fda5a1bf1d0fee9e7ba53ec89f64c03396eef8783997f862814ca9e7813cfb21ee05c9c46407be37f202d13db547facf69a868
6
+ metadata.gz: bac9ee55ef8d820f8adf4154298ce96b9dbcd06164f92d6bea42c1a9b95da58167b42639566dc294dfde74d550a0d039f4eab809166b5a0f8e3b7c60d8209f01
7
+ data.tar.gz: 94c2dfd23e36e72a6231ba1c75e449a171c0624388dd87e4beb677da5bb144ae2829560327b75c36c915f37b0af61bf3fdd55ac6a9647dd1126bdd8a51d2ffb6
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.4] - 2023-03-27
11
+
12
+ - Add `Material#merge(id)` method to support merging
13
+
10
14
  ## [0.2.3] - 2023-03-20
11
15
 
12
16
  - Add an optional `person_id` attribute for `MaterialReservationCancelation`
@@ -34,7 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
38
  - Update and reuse `zaikio-client-helpers` logic to support `Zaikio::Client.with_token`
35
39
  - Initial release
36
40
 
37
- [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.3..HEAD
41
+ [Unreleased]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.4..HEAD
42
+ [0.2.4]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.3..v0.2.4
38
43
  [0.2.3]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.2..v0.2.3
39
44
  [0.2.2]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.1..v0.2.2
40
45
  [0.2.1]: https://github.com/zaikio/zaikio-warehouse-ruby/compare/v0.2.0..v0.2.1
@@ -22,6 +22,16 @@ module Zaikio
22
22
  has_many :material_reservations,
23
23
  uri: "materials/:material_id/material_reservations",
24
24
  class_name: "Zaikio::Warehouse::MaterialReservation"
25
+
26
+ def merge(into_material_or_material_id)
27
+ self.class.request(:post, "#{collection_name}/#{id}/merge_into/#{into_material_or_material_id.to_param}")
28
+ end
29
+
30
+ private
31
+
32
+ def collection_name
33
+ self.class.name.demodulize.underscore.pluralize
34
+ end
25
35
  end
26
36
  end
27
37
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zaikio
4
4
  module Warehouse
5
- VERSION = "0.2.3"
5
+ VERSION = "0.2.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-warehouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-20 00:00:00.000000000 Z
12
+ date: 2023-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport