grabzit 3.0.2 → 3.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 +8 -8
- data/lib/grabzit/client.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjUxZTBjMDE2Y2MxM2E1ZWVjNDg5ZmRiMDk2MTNjNmQ0MTRhODFkOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWE1NmQ2ZGM5MGI3YTM4NmRjN2VjOGFkYjNjNmFmYzk4MWI5YWMwYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjYzNjM5YmNhZmUyODhmOTMyOTU0NTE0YjI4YTZjOWY4MzIzYWU0ZWUyZWIw
|
10
|
+
Yzk2N2VkZDFiY2E2NTE1M2ZkMzlhNWU4ZTI0NGRlNTlmYjg0MTNiZDI1Mzgy
|
11
|
+
ZWIzNDBlYTc0NmIyNjVkMDU3OWFiZWEzYTk0NDAwM2IwNzE3N2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2U0OWVlMjRhYTA1NTNkM2JjNzNhZmI3MzIwODYzN2Y1MTBkYjVjYmQ5NDY5
|
14
|
+
ZGFhNzE3NmYyNGM4MmFjYzRmYWE2NzE3ZGU1MWNkODBjMjgxNzZjYzI0ZThh
|
15
|
+
MGEyNjMzMTZkOGFiMTc2ZmRhZTA5OTI0NzFmZjk0NjFmNjIyN2Q=
|
data/lib/grabzit/client.rb
CHANGED
@@ -199,7 +199,7 @@ module GrabzIt
|
|
199
199
|
# @raise [RuntimeError] if the GrabzIt service reports an error with the request it will be raised as a RuntimeError
|
200
200
|
def save(callBackURL = nil)
|
201
201
|
if @request == nil
|
202
|
-
raise GrabzItException.new("No
|
202
|
+
raise GrabzItException.new("No parameters have been set.", GrabzItException::PARAMETER_MISSING_PARAMETERS)
|
203
203
|
end
|
204
204
|
|
205
205
|
sig = encode(@request.options()._getSignatureString(@applicationSecret, callBackURL, @request.getTargetUrl()))
|
@@ -239,12 +239,12 @@ module GrabzIt
|
|
239
239
|
status = get_status(id)
|
240
240
|
|
241
241
|
if !status.cached && !status.processing
|
242
|
-
raise GrabzItException.new("The
|
242
|
+
raise GrabzItException.new("The capture did not complete with the error: " + status.message, GrabzItException::RENDERING_ERROR)
|
243
243
|
break
|
244
244
|
elsif status.cached
|
245
245
|
result = get_result(id)
|
246
246
|
if !result
|
247
|
-
raise GrabzItException.new("The
|
247
|
+
raise GrabzItException.new("The capture could not be found on GrabzIt.", GrabzItException::RENDERING_MISSING_SCREENSHOT)
|
248
248
|
break
|
249
249
|
end
|
250
250
|
|
@@ -421,11 +421,11 @@ module GrabzIt
|
|
421
421
|
post_body << "\r\n--"+boundary+"\r\n"
|
422
422
|
|
423
423
|
post_body << "Content-Disposition: form-data; name=\"key\"\r\n\r\n"
|
424
|
-
post_body <<
|
424
|
+
post_body << GrabzIt::Utility.nil_check(@applicationKey)
|
425
425
|
post_body << "\r\n--"+boundary+"\r\n"
|
426
426
|
|
427
427
|
post_body << "Content-Disposition: form-data; name=\"identifier\"\r\n\r\n"
|
428
|
-
post_body <<
|
428
|
+
post_body << GrabzIt::Utility.nil_check(identifier)
|
429
429
|
post_body << "\r\n--"+boundary+"\r\n"
|
430
430
|
|
431
431
|
post_body << "Content-Disposition: form-data; name=\"xpos\"\r\n\r\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grabzit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GrabzIt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|