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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/zaikio/warehouse/material.rb +10 -0
- data/lib/zaikio/warehouse/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: c8e6cd14f506a06aa4f2f6dcfe43452144f0c2ece0063350f55f3c77589b30d8
|
4
|
+
data.tar.gz: 85e0ec8568a905739541b005cd56cf394276eb8812ca06c09bc204f79983eeb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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-
|
12
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|