erp_integration 0.28.0 → 0.29.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf3408610da80818f0ce97230f8969a56d27bbc940b1a154e0f5328b457f87e1
|
4
|
+
data.tar.gz: 842f37b9fe483b374cebec70f4b06f9f8396feeb76cfa2d3c25ae9f13678f814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2514bd61eda5782b4c9466b7d7352f1fe3410e141031b41e0ae3b80512e625b72033fccc6a62c20c37858ebec5d20d61dc488a8739878d175eac3f6901afc13
|
7
|
+
data.tar.gz: ad29de78e2530d8ba5b3d78febbf522c01a3884fcb9b6fe4a6aa5355ef92e7f2a770810210a3cc65ab146ab76f8f0d29bd8e4073850c086ff14b50db980437c8
|
@@ -120,8 +120,6 @@ module ErpIntegration
|
|
120
120
|
# @param options [Hash] The attributes needed for the return.
|
121
121
|
def return!(id, options)
|
122
122
|
client.put("model/sale.sale/#{id}/return_order", options)
|
123
|
-
rescue ErpIntegration::HttpError::BadRequest
|
124
|
-
false
|
125
123
|
end
|
126
124
|
end
|
127
125
|
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.29.0
|
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-
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|