grabzit 3.3.0 → 3.3.4
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 +5 -5
- data/lib/grabzit/imageoptions.rb +19 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b008159790031a6b48c83352122969f121af177dc29b54a8ac034aeaff45603c
|
4
|
+
data.tar.gz: c84c76cd66c538b8dbd04225e546647ee065a938130337906bd94b3f70cd42f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d104fd508dd7663e5eaa83f4c993f95512132ed07c2fb382c3dadb3d27707e76cab92c67748053369a754336846ec24564637d296681e4bd1e7e3febdb23ef31
|
7
|
+
data.tar.gz: b98bc6ffcd76cef35caccf9a4bf76e015c8b2db001ef72f138abadf501d32fd52b4374580b9911096b80f2d43d8080f53a0c5feb2e820132c04f8946b8cc7789
|
data/lib/grabzit/imageoptions.rb
CHANGED
@@ -21,7 +21,8 @@ module GrabzIt
|
|
21
21
|
@transparent = false
|
22
22
|
@noAds = false
|
23
23
|
@noCookieNotifications = false
|
24
|
-
@address = nil
|
24
|
+
@address = nil
|
25
|
+
@hd = false
|
25
26
|
end
|
26
27
|
|
27
28
|
# @return [Integer] the width of the browser in pixels
|
@@ -191,7 +192,20 @@ module GrabzIt
|
|
191
192
|
# @return [void]
|
192
193
|
def transparent=(value)
|
193
194
|
@transparent = value
|
194
|
-
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# @return [Boolean] true if the image capture should be in high definition
|
198
|
+
def hd
|
199
|
+
@hd
|
200
|
+
end
|
201
|
+
|
202
|
+
# Set to true if the image capture should be in high definition.
|
203
|
+
#
|
204
|
+
# @param value [Boolean] true if the image should be high definition
|
205
|
+
# @return [void]
|
206
|
+
def hd=(value)
|
207
|
+
@hd = value
|
208
|
+
end
|
195
209
|
|
196
210
|
# @return [Boolean] get if adverts should be automatically hidden
|
197
211
|
def noAds
|
@@ -249,7 +263,7 @@ module GrabzIt
|
|
249
263
|
items.push(GrabzIt::Utility.nil_check(url))
|
250
264
|
end
|
251
265
|
|
252
|
-
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.b_to_str(@transparent),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications))
|
266
|
+
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.b_to_str(@transparent),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.b_to_str(@hd))
|
253
267
|
|
254
268
|
return items.join("|")
|
255
269
|
end
|
@@ -274,8 +288,9 @@ module GrabzIt
|
|
274
288
|
params['post'] = GrabzIt::Utility.nil_check(@post)
|
275
289
|
params['address'] = GrabzIt::Utility.nil_check(@address)
|
276
290
|
params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
|
291
|
+
params['hd'] = GrabzIt::Utility.b_to_str(@hd)
|
277
292
|
|
278
|
-
return params
|
293
|
+
return params
|
279
294
|
end
|
280
295
|
end
|
281
296
|
end
|
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.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GrabzIt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
75
|
-
rubygems_version: 2.4.5.2
|
74
|
+
rubygems_version: 3.0.3
|
76
75
|
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: GrabzIt Ruby Client
|