grabzit 3.2.9.2 → 3.2.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grabzit/docxoptions.rb +32 -1
- data/lib/grabzit/exception.rb +1 -0
- data/lib/grabzit/imageoptions.rb +31 -1
- data/lib/grabzit/pdfoptions.rb +31 -1
- data/lib/grabzit/tableoptions.rb +16 -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: 2b82627011969eb5c6140dcb1b69c7b5d6a0aeea
|
4
|
+
data.tar.gz: 03b36ec5a77c62f52fd240c071654f2d85c5ade9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ae5931affeee30111f01b037427858f3b80e756cb76f1f700183d07820b1e299432cf199e6c3c9fd988b42a61bc0cfda17e6fd7498a2c813044ca075310edd
|
7
|
+
data.tar.gz: 56e96b8fe447cb40d7691aeab2841e6614f7bf69097796a7d59f7fb67653c734399e8384c472894d0511a83a90df19109f322b60b7b1e683c89530c3fcc1d24c
|
data/lib/grabzit/docxoptions.rb
CHANGED
@@ -29,6 +29,8 @@ module GrabzIt
|
|
29
29
|
@templateId = nil
|
30
30
|
@targetElement = nil
|
31
31
|
@mergeId = nil
|
32
|
+
@noCookieNotifications = false
|
33
|
+
@address = nil
|
32
34
|
end
|
33
35
|
|
34
36
|
# @return [Boolean] true if the background images of the web page should be included in the DOCX
|
@@ -318,6 +320,33 @@ module GrabzIt
|
|
318
320
|
def noAds=(value)
|
319
321
|
@noAds = value
|
320
322
|
end
|
323
|
+
|
324
|
+
|
325
|
+
# @return [Boolean] get if cookie notifications should be automatically hidden
|
326
|
+
def noCookieNotifications
|
327
|
+
@noCookieNotifications
|
328
|
+
end
|
329
|
+
|
330
|
+
# Set to true if cookie notifications should be automatically hidden
|
331
|
+
#
|
332
|
+
# @param value [Boolean] hide cookie notifications
|
333
|
+
# @return [void]
|
334
|
+
def noCookieNotifications=(value)
|
335
|
+
@noCookieNotifications = value
|
336
|
+
end
|
337
|
+
|
338
|
+
# @return [String] get the URL to execute the HTML code in
|
339
|
+
def address
|
340
|
+
@address
|
341
|
+
end
|
342
|
+
|
343
|
+
# Set the URL to execute the HTML code in
|
344
|
+
#
|
345
|
+
# @param value [String] the address
|
346
|
+
# @return [void]
|
347
|
+
def address=(value)
|
348
|
+
@address = value
|
349
|
+
end
|
321
350
|
|
322
351
|
# Define a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force
|
323
352
|
# GrabzIt to perform a HTTP post.
|
@@ -344,7 +373,7 @@ module GrabzIt
|
|
344
373
|
items.push(GrabzIt::Utility.nil_check(url))
|
345
374
|
end
|
346
375
|
|
347
|
-
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.b_to_str(@includeImages),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),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.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId))
|
376
|
+
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.b_to_str(@includeImages),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),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.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications))
|
348
377
|
return items.join("|")
|
349
378
|
end
|
350
379
|
|
@@ -375,6 +404,8 @@ module GrabzIt
|
|
375
404
|
params['height'] = GrabzIt::Utility.nil_int_check(@height)
|
376
405
|
params['tvars'] = GrabzIt::Utility.nil_check(@templateVariables)
|
377
406
|
params['mergeid'] = GrabzIt::Utility.nil_check(@mergeId)
|
407
|
+
params['address'] = GrabzIt::Utility.nil_check(@address)
|
408
|
+
params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
|
378
409
|
|
379
410
|
return params;
|
380
411
|
end
|
data/lib/grabzit/exception.rb
CHANGED
data/lib/grabzit/imageoptions.rb
CHANGED
@@ -20,6 +20,8 @@ module GrabzIt
|
|
20
20
|
@quality = -1
|
21
21
|
@transparent = false
|
22
22
|
@noAds = false
|
23
|
+
@noCookieNotifications = false
|
24
|
+
@address = nil
|
23
25
|
end
|
24
26
|
|
25
27
|
# @return [Integer] the width of the browser in pixels
|
@@ -204,6 +206,32 @@ module GrabzIt
|
|
204
206
|
@noAds = value
|
205
207
|
end
|
206
208
|
|
209
|
+
# @return [Boolean] get if cookie notifications should be automatically hidden
|
210
|
+
def noCookieNotifications
|
211
|
+
@noCookieNotifications
|
212
|
+
end
|
213
|
+
|
214
|
+
# Set to true if cookie notifications should be automatically hidden
|
215
|
+
#
|
216
|
+
# @param value [Boolean] hide cookie notifications
|
217
|
+
# @return [void]
|
218
|
+
def noCookieNotifications=(value)
|
219
|
+
@noCookieNotifications = value
|
220
|
+
end
|
221
|
+
|
222
|
+
# @return [String] get the URL to execute the HTML code in
|
223
|
+
def address
|
224
|
+
@address
|
225
|
+
end
|
226
|
+
|
227
|
+
# Set the URL to execute the HTML code in
|
228
|
+
#
|
229
|
+
# @param value [String] the address
|
230
|
+
# @return [void]
|
231
|
+
def address=(value)
|
232
|
+
@address = value
|
233
|
+
end
|
234
|
+
|
207
235
|
# Define a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force
|
208
236
|
# GrabzIt to perform a HTTP post.
|
209
237
|
#
|
@@ -221,7 +249,7 @@ module GrabzIt
|
|
221
249
|
items.push(GrabzIt::Utility.nil_check(url))
|
222
250
|
end
|
223
251
|
|
224
|
-
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))
|
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))
|
225
253
|
|
226
254
|
return items.join("|")
|
227
255
|
end
|
@@ -244,6 +272,8 @@ module GrabzIt
|
|
244
272
|
params['transparent'] = GrabzIt::Utility.b_to_str(@transparent)
|
245
273
|
params['noads'] = GrabzIt::Utility.b_to_str(@noAds)
|
246
274
|
params['post'] = GrabzIt::Utility.nil_check(@post)
|
275
|
+
params['address'] = GrabzIt::Utility.nil_check(@address)
|
276
|
+
params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
|
247
277
|
|
248
278
|
return params
|
249
279
|
end
|
data/lib/grabzit/pdfoptions.rb
CHANGED
@@ -31,6 +31,8 @@ module GrabzIt
|
|
31
31
|
@width = nil
|
32
32
|
@height = nil
|
33
33
|
@mergeId = nil
|
34
|
+
@noCookieNotifications = false
|
35
|
+
@address = nil
|
34
36
|
end
|
35
37
|
|
36
38
|
# @return [Boolean] true if the background of the web page should be included in the PDF
|
@@ -347,6 +349,32 @@ module GrabzIt
|
|
347
349
|
@noAds = value
|
348
350
|
end
|
349
351
|
|
352
|
+
# @return [Boolean] get if cookie notifications should be automatically hidden
|
353
|
+
def noCookieNotifications
|
354
|
+
@noCookieNotifications
|
355
|
+
end
|
356
|
+
|
357
|
+
# Set to true if cookie notifications should be automatically hidden
|
358
|
+
#
|
359
|
+
# @param value [Boolean] hide cookie notifications
|
360
|
+
# @return [void]
|
361
|
+
def noCookieNotifications=(value)
|
362
|
+
@noCookieNotifications = value
|
363
|
+
end
|
364
|
+
|
365
|
+
# @return [String] get the URL to execute the HTML code in
|
366
|
+
def address
|
367
|
+
@address
|
368
|
+
end
|
369
|
+
|
370
|
+
# Set the URL to execute the HTML code in
|
371
|
+
#
|
372
|
+
# @param value [String] the address
|
373
|
+
# @return [void]
|
374
|
+
def address=(value)
|
375
|
+
@address = value
|
376
|
+
end
|
377
|
+
|
350
378
|
# Define a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force
|
351
379
|
# GrabzIt to perform a HTTP post.
|
352
380
|
#
|
@@ -372,7 +400,7 @@ module GrabzIt
|
|
372
400
|
items.push(GrabzIt::Utility.nil_check(url))
|
373
401
|
end
|
374
402
|
|
375
|
-
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.b_to_str(@includeOutline),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_check(@coverURL),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId))
|
403
|
+
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.b_to_str(@includeOutline),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_check(@coverURL),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications))
|
376
404
|
|
377
405
|
return items.join("|")
|
378
406
|
end
|
@@ -406,6 +434,8 @@ module GrabzIt
|
|
406
434
|
params['height'] = GrabzIt::Utility.nil_int_check(@height)
|
407
435
|
params['tvars'] = GrabzIt::Utility.nil_check(@templateVariables)
|
408
436
|
params['mergeid'] = GrabzIt::Utility.nil_check(@mergeId)
|
437
|
+
params['address'] = GrabzIt::Utility.nil_check(@address)
|
438
|
+
params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
|
409
439
|
|
410
440
|
return params;
|
411
441
|
end
|
data/lib/grabzit/tableoptions.rb
CHANGED
@@ -13,6 +13,7 @@ module GrabzIt
|
|
13
13
|
@includeAllTables = false
|
14
14
|
@targetElement = nil
|
15
15
|
@requestAs = 0
|
16
|
+
@address = nil
|
16
17
|
end
|
17
18
|
|
18
19
|
# @return [Integer] the index of the table to be converted
|
@@ -93,6 +94,19 @@ module GrabzIt
|
|
93
94
|
@requestAs = value
|
94
95
|
end
|
95
96
|
|
97
|
+
# @return [String] get the URL to execute the HTML code in
|
98
|
+
def address
|
99
|
+
@address
|
100
|
+
end
|
101
|
+
|
102
|
+
# Set the URL to execute the HTML code in
|
103
|
+
#
|
104
|
+
# @param value [String] the address
|
105
|
+
# @return [void]
|
106
|
+
def address=(value)
|
107
|
+
@address = value
|
108
|
+
end
|
109
|
+
|
96
110
|
# Define a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force
|
97
111
|
# GrabzIt to perform a HTTP post.
|
98
112
|
#
|
@@ -110,7 +124,7 @@ module GrabzIt
|
|
110
124
|
items.push(GrabzIt::Utility.nil_check(url))
|
111
125
|
end
|
112
126
|
|
113
|
-
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@tableNumberToInclude),GrabzIt::Utility.b_to_str(@includeAllTables),GrabzIt::Utility.b_to_str(@includeHeaderNames),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy))
|
127
|
+
items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@tableNumberToInclude),GrabzIt::Utility.b_to_str(@includeAllTables),GrabzIt::Utility.b_to_str(@includeHeaderNames),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address))
|
114
128
|
|
115
129
|
return items.join("|")
|
116
130
|
end
|
@@ -125,6 +139,7 @@ module GrabzIt
|
|
125
139
|
params['target'] = GrabzIt::Utility.nil_check(@targetElement)
|
126
140
|
params['requestmobileversion'] = GrabzIt::Utility.nil_int_check(@requestAs)
|
127
141
|
params['post'] = GrabzIt::Utility.nil_check(@post)
|
142
|
+
params['address'] = GrabzIt::Utility.nil_check(@address)
|
128
143
|
|
129
144
|
return params
|
130
145
|
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.2.9.
|
4
|
+
version: 3.2.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GrabzIt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|