cafepress_api 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cafepress_api/version.rb +1 -1
- data/lib/cafepress_api.rb +2 -2
- metadata +3 -3
data/lib/cafepress_api.rb
CHANGED
@@ -69,9 +69,9 @@ Or better yet, add the mapping yourself in product_genders.rb and submit it back
|
|
69
69
|
|
70
70
|
image_urls = []
|
71
71
|
product.get_elements("productImage").each do |product_image|
|
72
|
-
if product_image.attributes['productUrl'].include?('
|
72
|
+
if product_image.attributes['productUrl'].include?('_Front')
|
73
73
|
image_urls << {:color_id => product_image.attributes['colorId'], :url => product_image.attributes['productUrl'], :view => FRONT_PRODUCT_VIEW, :size => product_image.attributes['imageSize']}
|
74
|
-
elsif product_image.attributes['productUrl'].include?('
|
74
|
+
elsif product_image.attributes['productUrl'].include?('_Back')
|
75
75
|
image_urls << {:color_id => product_image.attributes['colorId'], :url => product_image.attributes['productUrl'], :view => BACK_PRODUCT_VIEW, :size => product_image.attributes['imageSize']}
|
76
76
|
else
|
77
77
|
warn("\nWARNING: the image url #{product_image.attributes['productUrl']} does not appear to be a front or back image, assuming it is a front image.")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cafepress_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Lee Smith
|