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 +4 -4
- data/lib/moxiworks_platform/listing.rb +13 -5
- data/lib/moxiworks_platform/resource.rb +2 -2
- data/lib/moxiworks_platform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3fe438b73c550ab34b50f562a7bae4c7d0e2091
|
4
|
+
data.tar.gz: b21715a1053bcf39630c9043a39cb968e5d68fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
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
|
-
|
73
|
-
|
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?
|
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.
|
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-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|