erp_integration 0.24.0 → 0.25.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: 97c1c75b5b15e68c4fd472e18a6c3fc2a4f23e249e968d1e71aeee95f754a331
4
- data.tar.gz: 952602889086f2d727acd5a2fce5e956e9c510a86fac9b0f6f090ec6608a7bc2
3
+ metadata.gz: c712cc4dfcd1f43280c21bd1443004faba4782699f3d0aae9dcbba54ecbed6e0
4
+ data.tar.gz: 24b062f2319f76ab2ef68609ce8608a0cd8901f18221067614023af8dc88b130
5
5
  SHA512:
6
- metadata.gz: fe64267ae5b1f52918f4e212120914dfe5a10f02ee90d7232555301b876262c5a435b51b1bcd0b621315eb1812d496f47a7d64fbcadf761d1b6014e65a0db620
7
- data.tar.gz: aef83df0dacf867cf54447fa22c3187f2584e99769881bec06630664a4a5587401cf7a7b34dece12001219c7bc9e6fffa1a1ed6e4da4986cf62bfd1927d78b55
6
+ metadata.gz: cc31e26866ebec699087586d42163b747335bbd46f0e504f88d78b68ce22bb76c914a26a6a2397e714536d2099d00d8b8f5919176eace0ee5e63a7699d8eabce
7
+ data.tar.gz: 245c31dd21124a52dbbe957307a4fd7e2267bdbde024135e0966f018c82c919828269aabf8de0989962783e9660d100453c3e9a9b58cc941f8ca121c3c2a3ea1
@@ -10,6 +10,12 @@ module ErpIntegration
10
10
 
11
11
  def generate_shipping_label(id)
12
12
  client.put("model/#{model_name}/#{id}/generate_shipping_labels")
13
+ true
14
+ # Workaround: Fulfil api does not return a json when status code is 200 (a.k.a. "Ok")
15
+ # and faraday is having an error when trying to parse it. Let's skip the parse error
16
+ # and move on.
17
+ rescue Faraday::ParsingError
18
+ true
13
19
  end
14
20
 
15
21
  def create_default_package(id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.24.0'
4
+ VERSION = '0.25.0'
5
5
  end
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.24.0
4
+ version: 0.25.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-03-14 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport