mad_cart 0.0.2 → 0.0.3

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: dc8b21067e4b7be075e8b9208b0d0c2c50b849b1
4
- data.tar.gz: df99eb76c6658c0e7ebf7a2ba3978e28c0f267ba
3
+ metadata.gz: 524f8451e84fc1d8408a15f5556cb80b041b274b
4
+ data.tar.gz: 50a728324c01e34352fdb6f01af1764b5b31fd10
5
5
  SHA512:
6
- metadata.gz: f1f08e0d6530d17a5c0f9986af5d91a98b73a4e931d3795065cdfea8610581ea3eddc1ac9fa292ae355702028839e858f9beb0b2ca859cc0865e0e2e4328002a
7
- data.tar.gz: 3104e98d965312619525aa890c5c64a95b6f69b1f1ec6d2bedef069b323b38fe34f7a82183ec5256f0cd9da1c4b3aea3cdd44fb0008b3cd4485dadb76d67793e
6
+ metadata.gz: 2dba8e7d16677a98031febeaa80fe31ad60590145ff85fa4879c782345cf018c6dc9e2edf88a21331dc2c8e0abd474c0b028769c7016b20f8ed0df684b304dce
7
+ data.tar.gz: ef8c17e8e10083ff12d378d1db12ee8e4040d9684b41949b694c1fd28a4eff477f7e3ea9440f9cb80bae047810036482339e5136f3b1e8dc3a65b3e3d8ee733e
@@ -52,9 +52,10 @@ module MadCart
52
52
  thumbnail = product_images.find { |i| i["is_thumbnail"] }
53
53
  image = product_images.sort_by{|i| i["sort_order"] }.find { |i| i["is_thumbnail"] }
54
54
 
55
- p.merge({
55
+ p.merge({
56
+ :url => connection.build_url("#{p['custom_url']}").to_s,
56
57
  :image_square_url => connection.build_url("/product_images/#{thumbnail['image_file']}").to_s,
57
- :image_url => connection.build_url("/product_images/#{image['image_file']}").to_s,
58
+ :image_url => connection.build_url("/product_images/#{image['image_file']}").to_s
58
59
  })
59
60
  end
60
61
  end
@@ -1,3 +1,3 @@
1
1
  module MadCart
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mad_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Heiligers
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-26 00:00:00.000000000 Z
13
+ date: 2014-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday