printaura 0.0.11 → 0.0.12

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: 10467cc54bdf18fdca2b144ba2b0fa224633ec0f
4
- data.tar.gz: 9054555ee71ab1f555fcef909044d2d161b52dd6
3
+ metadata.gz: 7513e51bac6ef79efcff1fb99d67ae9db2be21e0
4
+ data.tar.gz: 29fc4ee50ca10b1a8d2c602a3b035a427a2426b6
5
5
  SHA512:
6
- metadata.gz: 5c97f4c8232490d156e8900aee43177e51dcc4a406ef246e8277af3ec02b59569f1bb90a212dd4d735dc36f9824273d98347ad78511ea208a4897a9087c34580
7
- data.tar.gz: 7074730f253dc34ea5c2b2dd4c76bedd20848d48bf037a7c94a919d3d17a5d9840a3666f9ab4ec7628feec33f26818faeb6cb9638e14b966d379c0cfa3c915a1
6
+ metadata.gz: 019cc16d8e0691bc8213963eaa9dc72f9c89e41323630fa9548bac06622a903183a61e2a532160c546cd6d9ceee27287f7bea2ae0845d41a116854baee28f1f3
7
+ data.tar.gz: b80e27bcd9aebca6aa5745b0dc6a283bd006af255e94c4ea65ba541dbe07e2d1c31ddca3cc6a56371c282be817fbb2b871c569435e370499b106314133d2c84d
@@ -6,21 +6,21 @@ module Printaura
6
6
  attr_accessor :printaura_product_id
7
7
 
8
8
  def self.all
9
- # do i care?
10
9
  Api.viewproducts.each do |prod|
11
10
  puts prod
12
11
  end
13
12
  end
14
13
 
15
14
  def initialize(brand, colors, image_id, mock_image_id, price, app_ids, title, product_id, sku, shopify)
16
- # lol :(
17
15
  store_images = {"0" => {"image_id" => image_id, "default" => "0"}, "1" => {"image_id" => mock_image_id, "default"=>"1"}}
18
16
  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)}
19
17
  if shopify
20
18
  args = args.merge(shopify)
21
19
  end
22
- @shopify_product_id = Api.addproduct(args)["results"]["shopify_id"]
23
- @printaura_product_id = Api.addproduct(args)["results"]["product_id"]
20
+
21
+ result = Api.addproduct(args)
22
+ @shopify_product_id = result["results"]["shopify_id"]
23
+ @printaura_product_id = result["results"]["product_id"]
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Printaura
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - oren mazor