printaura 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 830b12d60849853b64712682b60c80e313666b54
4
- data.tar.gz: fbbc521e07fa8c4c463da278bcd8c256906e0f90
3
+ metadata.gz: b2c76c60c051df4033ad8fcda8b6fc1cab474b8f
4
+ data.tar.gz: be5bbe1c43f325e6edffa4925f6348e621a159fa
5
5
  SHA512:
6
- metadata.gz: 1bd25b46448c5575addc297e8a1271f10e8915686635d61c52287c16dbd70d839c5e9d95035933fe70346aa428e4e7050b4c73de00975b36cbc3795895a40f42
7
- data.tar.gz: a2cc098cc077fa1eb3db50091842d7e68aa1a93b37d14386e9262663c115aead7bf3a902475b7309bc8938624ec523deb67203e44b07a91cc9cd803245db98b0
6
+ metadata.gz: 069efe702c5a9d0906ca34c015aaded46b4d0e34c11d83e73bc2142a38951048587c51deca75973a08a3fa2ee616fe7d479067780fe3cbb538f08f246ff18a9c
7
+ data.tar.gz: 921e9a03b87cd2797f1c241809fa2fd8632172a24eae277db4be32819688db8be04f7c40e64f6db4ef8425c5f80b3d447001346a4d4805d19dd68a660c07a91f
@@ -9,9 +9,10 @@ module Printaura
9
9
  end
10
10
  end
11
11
 
12
- def initialize(brand, colors, image_id, price, app_ids, title, product_id, sku, shopify)
12
+ def initialize(brand, colors, image_id, mock_image_id, price, app_ids, title, product_id, sku, shopify)
13
13
  # lol :(
14
- args = {brand_id: brand, colors: Base64.encode64(colors.to_json), front_print: image_id, title: title, description: "", product_price: price, apps: Base64.encode64(app_ids.to_json), product_id: product_id, sku: sku, storeimages: Base64.encode64({"0"=>{"image_id"=> image_id, "default"=>"1"}}.to_json)}
14
+ store_images = {"0" => {"image_id" => image_id, "default" => "0"}, "1" => {"image_id" => mock_image_id, "default"=>"1"}}
15
+ args = {brand_id: brand, colors: Base64.encode64(colors.to_json), front_print: image_id, front_mockup: mock_image_id, title: title, description: "", product_price: price, apps: Base64.encode64(app_ids.to_json), product_id: product_id, sku: sku, storeimages: Base64.encode64(store_images.to_json)}
15
16
  if shopify
16
17
  args = args.merge(shopify)
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Printaura
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: printaura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - oren mazor