item_builder_mwh 0.1.49 → 0.1.51

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: 4c684bd1ca1d60ef042e9ff7b481f1a09103fb086333e132b1df399cf3e4401c
4
- data.tar.gz: 1761355253dbed7f682c225367962d400e440a473973aac1d1a366dc5595f65d
3
+ metadata.gz: 36261c61d1a3fca301bb710f8997033ed87d298b275b629b3f5b6abe3b699f68
4
+ data.tar.gz: 42c4179e347b529e957c17ab220bb66f142bbd75d18cba1d958f692d502b3851
5
5
  SHA512:
6
- metadata.gz: 25f05619f7a6237bf7fb2ebf45ca70cd9a96e7c1963fa5fb3c72993452928d1568e75312b2019d539a71057abeed0bd31564b3f1834a132f9ecf4f245c92424d
7
- data.tar.gz: a0b6f17096b4524dad7cd91cee8ff9b5a626c6d5797324386f0f609f76386cd431d0f2fc1f90d65dda7cff09259f948bb795b4b40cabe11736a32b6487733243
6
+ metadata.gz: 258c45f87a0f8e7d92fd32668bf9d623ba7c306e8749bfd7f498a5ecc3295f73953a5178b9bcd511a4b0befed47011477d40d0897396f45a3cfccc81ff3b09a1
7
+ data.tar.gz: f70f0f48be35a7cb2474daec5d62f4ba3f99b83b1b904d35d8475960f4e49ff995db2cd01a29ac77d7ac7b556f9cf682cc22d1c774d246de255aaac9783aa3d3
@@ -151,7 +151,7 @@ class ItemBuilderMwh
151
151
  end
152
152
 
153
153
  def appropriate_allocated_stock(existing_allocated_stock)
154
- map_store_ids = VariantListing.where(id: existing_allocated_stock.map(&:variant_association_id)).select(:id, :profile_channel_association_id).to_h
154
+ map_store_ids = VariantListing.where(id: existing_allocated_stock.map(&:variant_association_id)).pluck(:id, :profile_channel_association_id).to_h
155
155
  wh_mapping_by_store = wh_mapping_by_store(map_store_ids.values.flatten.uniq)
156
156
  existing_allocated_stock.select do |allocated_stock|
157
157
  wh_mapping_by_store[map_store_ids[allocated_stock.variant_association_id]] == wh_ids&.first
@@ -164,7 +164,7 @@ class ItemBuilderMwh
164
164
  .where(
165
165
  profile_channel_association_id: ids,
166
166
  warehouses: { consignment: false }
167
- ).select(:profile_channel_association_id, :warehouse_id).to_h
167
+ ).pluck(:profile_channel_association_id, :warehouse_id).to_h
168
168
  end
169
169
  end
170
170
  end
@@ -44,7 +44,7 @@ class ItemBuilderMwh
44
44
  id: img.id,
45
45
  local_id: img.local_id,
46
46
  local_url: img.local_url,
47
- url: img.image.image.url(:xlarge, timestamp: false)
47
+ url: CGI::unescape(img.image.image.url(:xlarge, timestamp: false))
48
48
  }
49
49
  end
50
50
  end
@@ -54,7 +54,7 @@ class ItemBuilderMwh
54
54
  id: img.id,
55
55
  local_id: img.local_id,
56
56
  local_url: img.local_url,
57
- url: img.image.image.url
57
+ url: CGI::unescape(img.image.image.url)
58
58
  }
59
59
  end
60
60
  end
@@ -18,7 +18,7 @@ class ItemBuilderMwh
18
18
  id: img.id,
19
19
  local_id: img.local_id,
20
20
  local_url: img.local_url,
21
- url: img.image.image.url
21
+ url: CGI::unescape(img.image.image.url)
22
22
  }
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemBuilderMwh
4
- VERSION = '0.1.49'
4
+ VERSION = '0.1.51'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_builder_mwh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.49
4
+ version: 0.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ivander
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,10 +159,10 @@ files:
159
159
  - lib/item_builder_mwh/version.rb
160
160
  - lib/item_builder_mwh/zalora_quantity_service.rb
161
161
  - lib/item_builder_mwh/zilingo_quantity_service.rb
162
- homepage:
162
+ homepage:
163
163
  licenses: []
164
164
  metadata: {}
165
- post_install_message:
165
+ post_install_message:
166
166
  rdoc_options: []
167
167
  require_paths:
168
168
  - lib
@@ -177,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
- rubygems_version: 3.0.9
181
- signing_key:
180
+ rubygems_version: 3.3.7
181
+ signing_key:
182
182
  specification_version: 4
183
183
  summary: Item Builder Multiwarehouse
184
184
  test_files: []