erp_integration 0.27.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 578ad2b73d9cb9cf8908a0a69e53eb4bb01be7440e0a470b9b5eae9df6cae763
|
4
|
+
data.tar.gz: 6e27840b07094204be531330b5cfb2b49a0cbe504c847069ae57b0f5fb37cdc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b10ad0ee4fb41a9ec6822b7f8555707ae53897998016af4db54aabbfdaa86e5abfb0fd616e1bd2d3dccf1d61862bd853ad272754b4328c143c04ab940c757ec
|
7
|
+
data.tar.gz: 9714c5de0b2d6a6472bbc270e537cd606b4540ac3ccef445e9726c8ede862a252b8c65381f1253807078cade47e70f8fdadb4a45cbf4aa11d2bb81c42ed71b2e
|
@@ -32,5 +32,13 @@ module ErpIntegration
|
|
32
32
|
def create_default_package(id)
|
33
33
|
self.class.adapter.create_default_package(id)
|
34
34
|
end
|
35
|
+
|
36
|
+
# Create a package for a {CustomerShipmentReturn}.
|
37
|
+
#
|
38
|
+
# @param id [Integer] The ID of the {CustomerShipmentReturn}.
|
39
|
+
# @param options [Hash] The attributes needed for the new package.
|
40
|
+
def create_package(id, options)
|
41
|
+
self.class.adapter.create_package(id, options)
|
42
|
+
end
|
35
43
|
end
|
36
44
|
end
|
@@ -85,13 +85,26 @@ module ErpIntegration
|
|
85
85
|
# @param args [Array] The list of positional arguments for the missing method.
|
86
86
|
# @param kwargs [Hash] The list of arguments for the missing method.
|
87
87
|
# @param block [Proc] Any block given to the missing method.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
#
|
89
|
+
# rubocop:disable Style/MissingRespondToMissing
|
90
|
+
if RUBY_VERSION < '2.7'
|
91
|
+
def method_missing(method_name, *args, &block)
|
92
|
+
if adapter.respond_to?(method_name)
|
93
|
+
adapter.send(method_name, *args, &block)
|
94
|
+
else
|
95
|
+
super
|
96
|
+
end
|
97
|
+
end
|
98
|
+
else
|
99
|
+
def method_missing(method_name, *args, **kwargs, &block)
|
100
|
+
if adapter.respond_to?(method_name)
|
101
|
+
adapter.send(method_name, *args, **kwargs, &block)
|
102
|
+
else
|
103
|
+
super
|
104
|
+
end
|
93
105
|
end
|
94
106
|
end
|
107
|
+
# rubocop:enable Style/MissingRespondToMissing
|
95
108
|
|
96
109
|
# The `respond_to_missing?` complements the `method_missing` method.
|
97
110
|
# @param method_name [Symbol] The name of the missing method.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|