aboutyou-sdk 0.0.31 → 0.0.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTk0NmMzZTNkYmYyYjVmM2U1MmIyNTUwNjQ0OGY5N2ZmZjc2MjhlYQ==
4
+ MDRhYzQ0MzI4MWY3N2FjOTc3MDQxMWZhN2E3YmU3MzE4N2M3MzZhNQ==
5
5
  data.tar.gz: !binary |-
6
- YmIzNGJiZGQ2OTNiM2M2MzI1OTk2OGM1ODkwMDkxNWRhZDQwMDc4Ng==
6
+ YWQ4ODIyZTAyNWNlYTFhNDJlZDNjN2I4Y2VlYzA0YmZjZmY2NTc3NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGVjNzEwZDZhNGFkMDI3ODJjNWNmZWMyNWJhYzc4MWZjZjc0ZjU1ZGNlNTI3
10
- ZGNjNzYxZmMxY2Y1NWI1M2Y2MDhjNzg5NjA5NTE4ZTEyMzA4NDBlODZhNWE3
11
- MzZkYmFmMjY4OWM1ZjI3NjYxMmZiYmY1Y2IxOWIwOTcxMWZjYWY=
9
+ N2UyYWZkYWM4NjFjMzcxM2VlMzdiMGUwYTA1NDdjNmY5ZDY3NTIyZmQ1ZjU2
10
+ NjQwY2Y3NWNjZGEzNmJkMzBlZjBkMzY3MDRjMDFmYmM4NGQ1MDYzOGRjNDcz
11
+ OWVlNmVlMTM2Y2ZkODRkOTVhZWZjZWNlY2ZmYThiYmU4Mjc3MjE=
12
12
  data.tar.gz: !binary |-
13
- MzlhOWQ4YzNjOWFkZTk1ZTBlOGE0NTQ0OTZhNzBiNTMwMzQ3ODg0YzNhZDA2
14
- MjE5NWQ4ZDk1NTdlYmYxNmEzOGU3MTcxYzA0NjE5ZmNiY2UwNGNiNDk3MDQ2
15
- YWJmNmYzOTc3NGJiOWNmOTk4ZjIxMWRiMGM4ZWQyMDJlYjExZTM=
13
+ OTdhYTUyY2JjMjIxYWM1MDA2OTY3OWIyODUwYWJmYTQyODZhN2I1YTVlZGQ5
14
+ MGI5Nzg3ODk5M2UyYjU3MzMxOTQzZTZhNTgwMThkOGQzYmZmNDQ4ZWE0MGQy
15
+ ZmY4ZGZhNjU2YzE5NTg2MDNhYzBkYTJhMDUwNTU3MGE0N2IxYjU=
@@ -557,8 +557,7 @@ module AboutYou
557
557
  ###
558
558
  def variants_by_ean(ean)
559
559
  variants = []
560
-
561
- variants.each do |_key, variant|
560
+ self.variants.each do |_key, variant|
562
561
  variants.push(variant) if variant.ean == ean
563
562
  end
564
563
 
@@ -25,7 +25,6 @@ module AboutYou
25
25
  variants_result = new
26
26
  variants_result.variants = {}
27
27
  variants_result.errors = errors
28
-
29
28
  # no variant was found
30
29
  return variants_result if
31
30
  product_search_result == false || variants.count == 0
@@ -56,4 +56,7 @@ get "/docExampleSpellCorrection" do
56
56
  end
57
57
  get "/docExampleGettingStarted" do
58
58
  erb :docExampleGettingStarted
59
+ end
60
+ get "/docExampleVariantsByIds" do
61
+ erb :docExampleVariantsByIds
59
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aboutyou-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferenc Beutel