caboose-cms 0.7.75 → 0.7.76

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: 7ae00466f87ad1c9bce32f257456d4c929f1ccca
4
- data.tar.gz: 91dc91a638ee41575379f81af8587776281f6d60
3
+ metadata.gz: 17fb0f79f210b0eadb0f044309e892124507bf4a
4
+ data.tar.gz: 1c9cf6fe2e25747432afe34d0d1d5de6bbfb449b
5
5
  SHA512:
6
- metadata.gz: 7c6c6a3ea331d1745bb6ca6dc3909eb8bf99a156301f2ee86ff89072ba6b4a6b44667c6d79b3ad45af17d829ef8e0af0e798843349b827e0127e7bf3a0772c65
7
- data.tar.gz: 00a89abd1f989d2bcdf6b1110577ce3857bba53d06d19344cd81a617abd07d7ddf5073590b84f6adfa0e7fba5db33c63647de1312046c2543d630d462d2c098f
6
+ metadata.gz: 35304341aa0a95173cb638d10ed14e8ebc5795cc08fbdb3d36a039e6e9fdfb4204d03235ff7994f6fd73cf9621c3845fd91dce7c3ab9965728ebbe1db1dcf827
7
+ data.tar.gz: 7b6f70b9c0af0b09cbf8d484889799e3672b291a89f289663ee6853b474c4e9865b3f61e28135ea0d3d0c8557d20568b7297d8ceff469f0284b8018853323f1a
@@ -144,7 +144,9 @@ module Caboose
144
144
  if li.variant.product.product_images.count > 0 && li.variant.product.product_images.first.url(:tiny)
145
145
  # Caboose.log("image path: #{li.variant.product.product_images.first.url(:tiny)}")
146
146
  # image = ""
147
- image = open("#{li.variant.product.product_images.first.url(:tiny)}")
147
+ url = li.variant.product.product_images.first.url(:tiny)
148
+ url = "http:#{url}" if url.starts_with?('//')
149
+ image = open(url)
148
150
  else
149
151
  image = ""
150
152
  end
@@ -179,8 +181,10 @@ module Caboose
179
181
  if li.variant.product.option3 && li.variant.option3 then options += li.variant.product.option3 + ": " + li.variant.option3 + "\n" end
180
182
  if li.variant.product.product_images.count > 0 && li.variant.product.product_images.first.url(:tiny)
181
183
  # Caboose.log("image path: #{li.variant.product.product_images.first.url(:tiny)}")
182
- # image = ""
183
- image = open("#{li.variant.product.product_images.first.url(:tiny)}")
184
+ # image = ""
185
+ url = li.variant.product.product_images.first.url(:tiny)
186
+ url = "http:#{url}" if url.starts_with?('//')
187
+ image = open(url)
184
188
  else
185
189
  image = ""
186
190
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.75'
2
+ VERSION = '0.7.76'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.75
4
+ version: 0.7.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry