moxiworks_platform 0.10.3 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f7f485c1f43f9c4c53201340d3a1673f2c95afc
4
- data.tar.gz: 1051cc39e9d2fb715c1762517b8bcc3e724997c1
3
+ metadata.gz: b3fe438b73c550ab34b50f562a7bae4c7d0e2091
4
+ data.tar.gz: b21715a1053bcf39630c9043a39cb968e5d68fde
5
5
  SHA512:
6
- metadata.gz: 8200610adfb7b4258736cbbe776a09b746ffd813abdfaa3e8b3952d01754e0c29b35ddc1adb3d42850005f170de2cb803f5bcc99a33ee244195c7233e27d0b37
7
- data.tar.gz: 96b68c95243e8a2dfc173a0e271636bce9f6bcb887a68a352741d2a88661b0d9a24aa2ad82c07264b1af3909521a932166ae05de58bd7e9b7a4652a770331f20
6
+ metadata.gz: 398d1f63a98060ab5d5cd0e7bce1f958c8b65158aa2345d96f3cb9c0b317dc0aab6eed29f509fc14d6e7a420128f0ef292529baf1e9eb161d6eaa75632e189f4
7
+ data.tar.gz: f11f7d012d05c731ab8f3a9614e0800b2d69fcd2569358ead129096a1b157372e263a378e6bb12f556162ff74eac273f83fdacadc95551cd7a92999d45831ecc
@@ -146,11 +146,19 @@ module MoxiworksPlatform
146
146
  #
147
147
  # @return [Array] array of image Hashes in the format
148
148
  # {
149
- # image_thumb_url: [String] url to thumbail size image (smallest),
150
- # image_small_url: [String] url to small size image (small),
151
- # image_full_url: [String] url to full size image (medium),
152
- # image_gallery_url: [String] url to gallery size image (large),
153
- # image_raw_url: [String] url to raw image (largest)
149
+ # thumb_url: [String] url to thumbail size image (smallest),
150
+ # small_url: [String] url to small size image (small),
151
+ # full_url: [String] url to full size image (medium),
152
+ # gallery_url: [String] url to gallery size image (large),
153
+ # raw_url: [String] url to raw image (largest)
154
+ # title: [String] human readable title of image
155
+ # is_main_listing_image: [Boolean] whether the image is the main image for the listing
156
+ # caption: [String] human readable caption for the image
157
+ # description: [String] human readable description of the image
158
+ # width: [Integer] width of the raw image
159
+ # height: [Integer] height of the raw image
160
+ # mime_type: [String] MIME or media type of the image
161
+ #
154
162
  # }
155
163
  attr_accessor :listing_images
156
164
 
@@ -69,8 +69,8 @@ module MoxiworksPlatform
69
69
  json = JSON.parse(response)
70
70
  MoxiworksPlatform::Session.instance.cookie = response.headers[:set_cookie].first rescue nil
71
71
  return if json.is_a?(Array)
72
- # rescue => e
73
- # raise MoxiworksPlatform::Exception::RemoteRequestFailure, "unable to parse remote response #{e}\n response:\n #{response}"
72
+ rescue => e
73
+ raise MoxiworksPlatform::Exception::RemoteRequestFailure, "unable to parse remote response #{e}\n response:\n #{response}"
74
74
  end
75
75
  message = "unable to perform remote action on Moxi Works platform\n"
76
76
  message << json['messages'].join(',') unless json['messages'].nil?
@@ -1,3 +1,3 @@
1
1
  module MoxiworksPlatform
2
- VERSION = '0.10.3'
2
+ VERSION = '0.10.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxiworks_platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tres Wong-Godfrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler