grabzit 3.5.3 → 3.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69441e35b5c040ac5be4e771f9d984bb6b29bff4914a93e64ce8973035aea3c4
4
- data.tar.gz: 26678eafcbaa717bfb3944c9e5ba5be280d8c0818263f037c88fd352b33e4b2e
3
+ metadata.gz: 2a8a19888be59015aa66b1794e2bd0ccf7c395272c98e65b7156b4d921b7f8c6
4
+ data.tar.gz: 57d2ac4496d215398896a0e30162c71885e8b29e955a5fedfa9f279484367b24
5
5
  SHA512:
6
- metadata.gz: e75ae31a753d25f5e7205a062b3deab0fbb71cf9277db09e8b5b5113a5e12cb0f52faa70d41a02bc580cc50b5c3cdaf392bc4e5afbc68822d1f5d25ffa9b9a2b
7
- data.tar.gz: 812617ee29f875014791ab34c17d4de73660eca023bea8cd0a5506472d3c8a479d10d78a3bdc83cddbe05b92699c61c7f1f3f7aa5e9f4e126cbc099b6da0b6ff
6
+ metadata.gz: bf4947d9f5b5055806281a167944ab1d83ef3b9d14bb32204393f6d47a9a70cab5e5e88785c871eeaf31657ae59d7c4a50693ac41eef1d78a3d55640cbd31981
7
+ data.tar.gz: 6d735f28a68c328d3187ca76638660380777399e3bc4a4536adc850536e5bcd29e4a9174978bebbb946da5c936fae3d5816e00821eb91530a82ff19e03d1c668
@@ -668,7 +668,7 @@ module GrabzIt
668
668
 
669
669
  # This method will decrypt a encrypted capture, using the key you passed to the encryption key parameter.
670
670
  #
671
- # @param path [String] the encrypted bytes
671
+ # @param data [Array<Byte>] the encrypted bytes
672
672
  # @param key [String] the encryption key
673
673
  # @return [Array<Byte>] an array of decrypted bytes
674
674
  def decrypt(data, key)
@@ -9,6 +9,8 @@ module GrabzIt
9
9
  super()
10
10
  @browserWidth = nil
11
11
  @browserHeight = nil
12
+ @width = nil
13
+ @height = nil
12
14
  @waitForElement = nil
13
15
  @requestAs = 0
14
16
  @customWaterMarkId = nil
@@ -46,6 +48,32 @@ module GrabzIt
46
48
  def browserHeight=(value)
47
49
  @browserHeight = value
48
50
  end
51
+
52
+ # @return [Integer] get the width of the resulting video in pixels
53
+ def width
54
+ @width
55
+ end
56
+
57
+ # Set the width of the resulting video in pixels
58
+ #
59
+ # @param value [Integer] the width
60
+ # @return [void]
61
+ def width=(value)
62
+ @width = value
63
+ end
64
+
65
+ # @return [Integer] get the height of the resulting video in pixels
66
+ def height
67
+ @height
68
+ end
69
+
70
+ # Set the height of the resulting video in pixels
71
+ #
72
+ # @param value [Integer] the height
73
+ # @return [void]
74
+ def height=(value)
75
+ @height = value
76
+ end
49
77
 
50
78
  # @return [String] get the CSS selector of the HTML element in the web page that must be visible before the capture is performed
51
79
  def waitForElement
@@ -212,7 +240,9 @@ module GrabzIt
212
240
  GrabzIt::Utility.b_to_str(@noCookieNotifications),
213
241
  GrabzIt::Utility.nil_check(@clickElement),
214
242
  GrabzIt::Utility.nil_float_check(@framesPerSecond),
215
- GrabzIt::Utility.nil_int_check(@duration))
243
+ GrabzIt::Utility.nil_int_check(@duration),
244
+ GrabzIt::Utility.nil_int_check(@width),
245
+ GrabzIt::Utility.nil_int_check(@height))
216
246
 
217
247
  return items.join("|")
218
248
  end
@@ -233,6 +263,8 @@ module GrabzIt
233
263
  params['start'] = GrabzIt::Utility.nil_int_check(@start)
234
264
  params['fps'] = GrabzIt::Utility.nil_float_check(@framesPerSecond)
235
265
  params['duration'] = GrabzIt::Utility.nil_int_check(@duration)
266
+ params['width'] = GrabzIt::Utility.nil_int_check(@width)
267
+ params['height'] = GrabzIt::Utility.nil_int_check(@height)
236
268
 
237
269
  return params
238
270
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grabzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GrabzIt