deliveries 0.3.1 → 0.3.3

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: 722f7e2f87a1066c05cde809502b9b6d967046893fcb87e8c1a1409840c039f5
4
- data.tar.gz: 9d27f01af8de8e2d8b17553b3066ae0cabdac0d3e5d3a45892251e81decd65aa
3
+ metadata.gz: ba2e39ae0b06a76579bfc7a307349e04e37a3ea8fe042bc6507f616f4c3d130c
4
+ data.tar.gz: fb095cefd928d32463559ece7a1a48b1ef7932965094a27efb33ee7223dd7a87
5
5
  SHA512:
6
- metadata.gz: 6c2e379b47f9499484147b878851c4ab935f7cbbfcf23eb2624b05d5438d4016e363586e2bed09cbadba55faa72c5942d416459b184f5f8cbc2e6b12648d9c87
7
- data.tar.gz: ab0445d3c2af3fe97db2cdd00c3b54a88f5008459efc274bfbacdce0cf445a350961aa774b5d317f496c2a2bd20c208e660895d27ae3f242be8c787dec9766f4
6
+ metadata.gz: bfe834accdc7b8ae7a2b5929240ce3536f10c895554caecc99edb2c1289f8593981dfd1504ab178908f2112316fd2cf85384916ea20e903ead27e5e13794d36f
7
+ data.tar.gz: 9661c3076ca1a3a681bd525801fd089232b473a1c2daf69c0a3d301afb77b85c35f9e0326efd862d73fb74e234f860ab47c6c974b7bf427c238693a6933f1cae
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.3] - 2024-03-22
10
+ ### Fixed
11
+ - Prefix delivery location with country code in Mondial Relay Dual.
12
+
13
+ ## [0.3.2] - 2023-09-14
14
+ ### Fixed
15
+ - Add follow_redirect to MondialRelay module API call
16
+
9
17
  ## [0.3.1] - 2023-01-13
10
18
  ### Fixed
11
19
  - Inpost week hours
@@ -29,7 +37,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
29
37
  ## [0.1.0] - 2021-09-27
30
38
  🎉 First release!
31
39
 
32
- [Unreleased]: https://github.com/ecommerce-ventures/deliveries/compare/v0.3.1...HEAD
40
+ [Unreleased]: https://github.com/ecommerce-ventures/deliveries/compare/v0.3.3...HEAD
41
+ [0.3.3]: https://github.com/ecommerce-ventures/deliveries/compare/v0.3.2...v0.3.3
42
+ [0.3.2]: https://github.com/ecommerce-ventures/deliveries/compare/v0.3.1...v0.3.2
33
43
  [0.3.1]: https://github.com/ecommerce-ventures/deliveries/compare/v0.3.0...v0.3.1
34
44
  [0.3.0]: https://github.com/ecommerce-ventures/deliveries/compare/v0.2.1...v0.3.0
35
45
  [0.2.1]: https://github.com/ecommerce-ventures/deliveries/compare/v0.2.0...v0.2.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deliveries (0.3.1)
4
+ deliveries (0.3.3)
5
5
  activesupport (>= 5.2.0)
6
6
  hexapdf
7
7
  httparty
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (6.1.7)
15
+ activesupport (6.1.7.7)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
@@ -27,44 +27,44 @@ GEM
27
27
  builder (3.2.4)
28
28
  byebug (11.1.3)
29
29
  cmdparse (3.0.7)
30
- concurrent-ruby (1.1.10)
30
+ concurrent-ruby (1.2.3)
31
31
  crack (0.4.5)
32
32
  rexml
33
- date (3.3.3)
33
+ date (3.3.4)
34
34
  diff-lcs (1.4.4)
35
- geom2d (0.3.1)
35
+ geom2d (0.4.1)
36
36
  gyoku (1.4.0)
37
37
  builder (>= 2.1.2)
38
38
  rexml (~> 3.0)
39
39
  hashdiff (1.0.1)
40
- hexapdf (0.28.0)
40
+ hexapdf (0.36.0)
41
41
  cmdparse (~> 3.0, >= 3.0.3)
42
- geom2d (~> 0.3)
42
+ geom2d (~> 0.4, >= 0.4.1)
43
43
  openssl (>= 2.2.1)
44
44
  httparty (0.21.0)
45
45
  mini_mime (>= 1.0.0)
46
46
  multi_xml (>= 0.5.2)
47
47
  httpi (3.0.1)
48
48
  rack
49
- i18n (1.12.0)
49
+ i18n (1.14.4)
50
50
  concurrent-ruby (~> 1.0)
51
- mail (2.8.0.1)
51
+ mail (2.8.1)
52
52
  mini_mime (>= 0.1.1)
53
53
  net-imap
54
54
  net-pop
55
55
  net-smtp
56
56
  mini_magick (4.12.0)
57
- mini_mime (1.1.2)
58
- minitest (5.17.0)
57
+ mini_mime (1.1.5)
58
+ minitest (5.22.3)
59
59
  multi_xml (0.6.0)
60
- net-imap (0.3.4)
60
+ net-imap (0.3.7)
61
61
  date
62
62
  net-protocol
63
63
  net-pop (0.1.2)
64
64
  net-protocol
65
- net-protocol (0.2.1)
65
+ net-protocol (0.2.2)
66
66
  timeout
67
- net-smtp (0.3.3)
67
+ net-smtp (0.4.0.1)
68
68
  net-protocol
69
69
  nokogiri (1.13.10-x86_64-linux)
70
70
  racc (~> 1.4)
@@ -74,8 +74,8 @@ GEM
74
74
  parser (3.0.2.0)
75
75
  ast (~> 2.4.1)
76
76
  public_suffix (4.0.6)
77
- racc (1.6.2)
78
- rack (3.0.3)
77
+ racc (1.7.3)
78
+ rack (3.0.10)
79
79
  rainbow (3.0.0)
80
80
  rake (13.0.6)
81
81
  regexp_parser (2.1.1)
@@ -114,19 +114,19 @@ GEM
114
114
  nokogiri (>= 1.8.1)
115
115
  nori (~> 2.4)
116
116
  wasabi (~> 3.4)
117
- timeout (0.3.1)
118
- tzinfo (2.0.5)
117
+ timeout (0.4.1)
118
+ tzinfo (2.0.6)
119
119
  concurrent-ruby (~> 1.0)
120
120
  unicode-display_width (1.8.0)
121
121
  wasabi (3.8.0)
122
122
  addressable
123
123
  httpi (~> 3.0)
124
124
  nokogiri (>= 1.4.2)
125
- webmock (3.14.0)
125
+ webmock (3.19.1)
126
126
  addressable (>= 2.8.0)
127
127
  crack (>= 0.3.2)
128
128
  hashdiff (>= 0.4.0, < 2.0.0)
129
- zeitwerk (2.6.6)
129
+ zeitwerk (2.6.13)
130
130
 
131
131
  PLATFORMS
132
132
  x86_64-linux
@@ -25,9 +25,12 @@ module Deliveries
25
25
  module_function
26
26
 
27
27
  def api_client
28
- Savon.client wsdl: WSDL_ENDPOINT,
29
- logger: Deliveries.logger,
30
- log: Deliveries.debug
28
+ Savon.client(
29
+ wsdl: WSDL_ENDPOINT,
30
+ logger: Deliveries.logger,
31
+ log: Deliveries.debug,
32
+ follow_redirects: true
33
+ )
31
34
  end
32
35
 
33
36
  def get_collection_points(country:, postcode:)
@@ -61,7 +61,7 @@ module Deliveries
61
61
  if collection_point
62
62
  {
63
63
  mode: '24R',
64
- location: collection_point.point_id
64
+ location: "#{receiver.country.upcase}-#{collection_point.point_id}"
65
65
  }
66
66
  else
67
67
  home_delivery_mode = MondialRelayDual.config("countries.#{receiver.country.downcase}.home_delivery_mode") || 'HOM'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deliveries
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deliveries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fran Vega
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-01-13 00:00:00.000000000 Z
14
+ date: 2024-03-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport