elibri_onix_generator 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elibri_onix_generator.rb +4 -4
- data/lib/elibri_onix_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc5da835785b9727b148432a3faa73473a838b34
|
4
|
+
data.tar.gz: dc5647128e0c75589ff18c545c8120f0a4cef5bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8896927ef6ca2b2a0bdc1cb79619599cfd89f5f4257234c679a79242741f2c9f20227546677e9f215a294c35de9d6bc1fa338b9829a79622e311087865f539
|
7
|
+
data.tar.gz: a65bae86f1d81e4f51f6eaa20891905991704dfe3084cdb6b9c583d0b9d76a148c207aabe445997354b5ad0ebacff0b76864b0c925ce037d6a094f609c230bda
|
@@ -417,10 +417,10 @@ module Elibri
|
|
417
417
|
# W przypadku map eksportujemy również jej skalę w tagu <MapScale>
|
418
418
|
def export_measurement!(product)
|
419
419
|
if product.respond_to?(:kind_of_measurable?) && product.kind_of_measurable?
|
420
|
-
[[product.height, Elibri::ONIX::Dict::Release_3_0::MeasureType::HEIGHT,
|
421
|
-
[product.width, Elibri::ONIX::Dict::Release_3_0::MeasureType::WIDTH,
|
422
|
-
[product.thickness, Elibri::ONIX::Dict::Release_3_0::MeasureType::THICKNESS,
|
423
|
-
[product.weight, Elibri::ONIX::Dict::Release_3_0::MeasureType::WEIGHT,
|
420
|
+
[[product.height, Elibri::ONIX::Dict::Release_3_0::MeasureType::HEIGHT, 'mm', 'Wysokość'],
|
421
|
+
[product.width, Elibri::ONIX::Dict::Release_3_0::MeasureType::WIDTH, 'mm', 'Szerokość'],
|
422
|
+
[product.thickness, Elibri::ONIX::Dict::Release_3_0::MeasureType::THICKNESS, 'mm', 'Grubość'],
|
423
|
+
[product.weight, Elibri::ONIX::Dict::Release_3_0::MeasureType::WEIGHT, 'gr', 'Masa']
|
424
424
|
].each do |value, measure_type_code, unit_code, name|
|
425
425
|
if value
|
426
426
|
tag(:Measure) do
|