colissimo_label 0.10.0 → 0.11.0

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: 3a22b61de439cdc82fd0aa84681df72ddb77a9684c2a779ccfff59f26dadad4b
4
- data.tar.gz: f48aa5520d7506e839c1482a9df01c35c37ef5bf5ef2b6e091c1fcdab2e5f219
3
+ metadata.gz: 9b0795676ddd57f1b5503c5180b91adb60234af5d3411a0a7f18fdd0e493d2ec
4
+ data.tar.gz: 3d2035bafc6cb5ace72033aa749bff5d035c54c9a22fcee32ac87d75e07961d6
5
5
  SHA512:
6
- metadata.gz: 060fa43d23c1a77f125b2ec4075032845eb00217c61ba129dc6acff606cd3ebe5728faf6e040f9b7fb99dd87c65bb74aa1642c180cdcf4febca1270f65c15b85
7
- data.tar.gz: f2d2f7aee74e4b54d34d84e471be2cc7a8f7eef09cc01a094defc50f25d412f7a28597edf08ad07100793ed2cff33b0a82d0048cd1c33398db3c5a36b6a6bd2b
6
+ metadata.gz: 4d6f83c49db31c0fc2ebbf74d13669bd234a1847343f161b16c63aa08fa7fce7f0c4f4d9567ee7b33a733865e13525dc59cc26520a411575ea0fdb37a9598a76
7
+ data.tar.gz: 287a401e7c7d8b85b4b801b9daf64604fab30d101b4b4cfe6705642ebde0a402030a79283d6158ca8f718de7df511e5c8b4659360845df79be96d908774b1032
@@ -1,3 +1,7 @@
1
+ ## 0.11.0
2
+
3
+ - Add option to generate label with signature
4
+
1
5
  ## 0.10.0
2
6
 
3
7
  - Add Denmark to mandatory signature countries
data/README.md CHANGED
@@ -138,6 +138,12 @@ parcel_number = ColissimoLabel::GenerateLabel.new(
138
138
  ).perform
139
139
  ```
140
140
 
141
+ You can add the following option to require the signature:
142
+
143
+ ```
144
+ with_signature: true
145
+ ```
146
+
141
147
  For a national address and delivered to a relay point:
142
148
 
143
149
  ```ruby
@@ -14,6 +14,7 @@ class ColissimoLabel::GenerateLabel
14
14
  @pickup_type = options.fetch(:pickup_type, nil)
15
15
  @customs_total_weight = options.fetch(:customs_total_weight, nil)
16
16
  @customs_data = options.fetch(:customs_data, nil)
17
+ @with_signature = options.fetch(:with_signature, false)
17
18
  @errors = []
18
19
  end
19
20
 
@@ -195,6 +196,8 @@ class ColissimoLabel::GenerateLabel
195
196
  'DOS'
196
197
  elsif !@pickup_id.nil? && %w[FR].include?(@destination_country)
197
198
  @pickup_type || 'BPR'
199
+ elsif @with_signature
200
+ 'DOS'
198
201
  else
199
202
  'DOM'
200
203
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColissimoLabel
4
- VERSION = '0.10.0'.freeze
4
+ VERSION = '0.11.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colissimo_label
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FloXcoder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.0.4
185
+ rubygems_version: 3.1.2
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Generate Colissimo label for all countries