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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33a14f8e5c2102a8d81d589e5f270df08cea351c
4
- data.tar.gz: b557a72812bc12cdc069da1ca3da211e669b7c62
3
+ metadata.gz: cc5da835785b9727b148432a3faa73473a838b34
4
+ data.tar.gz: dc5647128e0c75589ff18c545c8120f0a4cef5bc
5
5
  SHA512:
6
- metadata.gz: a65060ed21d67433aa2fb71ac3f031e8e8353f6dc9b8096e9af6054d671d21f51cba017fce93da99b21fee67b55ece5b16b43bd9f298795b78d9a2d1c34c7146
7
- data.tar.gz: b444cbc1d40fe83b7d04b6223083975a9478acb474820e4cd2d802470fe1e3310a5caff3b794021fcd7fecad4b145a50ef74f5ce30246064250bde9674995f4b
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, Product::HEIGHT_UNIT, 'Wysokość'],
421
- [product.width, Elibri::ONIX::Dict::Release_3_0::MeasureType::WIDTH, Product::WIDTH_UNIT, 'Szerokość'],
422
- [product.thickness, Elibri::ONIX::Dict::Release_3_0::MeasureType::THICKNESS, Product::THICKNESS_UNIT, 'Grubość'],
423
- [product.weight, Elibri::ONIX::Dict::Release_3_0::MeasureType::WEIGHT, Product::WEIGHT_UNIT, 'Masa']
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
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbański