grabzit 3.5.5 → 3.5.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/grabzit/htmloptions.rb +17 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df792693d263dcc1b31d91efdf5f9f525ee841606d2eccd42ad22b6ba164b8bf
4
- data.tar.gz: 3444e66ad75242f483cb70a432f8598a6cff04fa00171922942c22d9bc4f9282
3
+ metadata.gz: e1484676d666a8e9cae4448b2005b1be6d9b4f42b2d07d63e127aef3dabe2fa4
4
+ data.tar.gz: 39e284516c8cb45281b35c23ef488aa3047c1e8939db8313ccf276f703c28c9b
5
5
  SHA512:
6
- metadata.gz: c68b013f321fdf1b0450bc16e0d87f12a49b487a3d84bf98963cc18649b9fa8eaf60d8890ac261d03fe7a75d62296a41cf57d4d8311145d31ddd2f7c3943d795
7
- data.tar.gz: 61c79394dcb208bcc1ee540c8b48a0f2115e6b99ae65d308d8d89ba51b8c5255fc0e6854fa77e3516029049b1c2aba6fcc851584b06e411579d0f7fd8c347a61
6
+ metadata.gz: da6ef1b151e29232c53449fce8c6110f43883f32c5c00729362df5f8005015cbb66d9dae3417252356ed859d823bbc520d32aa9bf40bbced2f23b949fec83c42
7
+ data.tar.gz: 7bbf2210b6aad5b1ecfd75baab699e49277bd7ffad0da1b900eff4d5bac838f3fe384bfa72798fdab2b8c6f725d0979a80dd8f22b409cb46f089d593911f23fe
@@ -16,6 +16,7 @@ module GrabzIt
16
16
  @address = nil
17
17
  @clickElement = nil
18
18
  @jsCode = nil
19
+ @inlineHTML = false
19
20
  end
20
21
 
21
22
  # @return [Integer] the width of the browser in pixels
@@ -122,6 +123,19 @@ module GrabzIt
122
123
  @noCookieNotifications = value
123
124
  end
124
125
 
126
+ # @return [Boolean] get if the HTML should be inlined
127
+ def inlineHTML
128
+ @inlineHTML
129
+ end
130
+
131
+ # Set to true if the resources in a web page should be inlined in the HTML
132
+ #
133
+ # @param value [Boolean] HTML should be inlined
134
+ # @return [void]
135
+ def inlineHTML=(value)
136
+ @inlineHTML = value
137
+ end
138
+
125
139
  # @return [String] get the URL to execute the HTML code in
126
140
  def address
127
141
  @address
@@ -165,7 +179,7 @@ module GrabzIt
165
179
  items.push(GrabzIt::Utility.nil_check(url))
166
180
  end
167
181
 
168
- items.push(GrabzIt::Utility.nil_check(callBackURL),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_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),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(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@clickElement),GrabzIt::Utility.nil_check(@jsCode))
182
+ items.push(GrabzIt::Utility.nil_check(callBackURL),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_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),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(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@clickElement),GrabzIt::Utility.nil_check(@jsCode),GrabzIt::Utility.b_to_str(@inlineHTML))
169
183
 
170
184
  return items.join("|")
171
185
  end
@@ -184,7 +198,8 @@ module GrabzIt
184
198
  params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
185
199
  params['click'] = GrabzIt::Utility.nil_check(@clickElement)
186
200
  params['jscode'] = GrabzIt::Utility.nil_check(@jsCode)
187
-
201
+ params['inlinehtml'] = GrabzIt::Utility.b_to_str(@inlineHTML)
202
+
188
203
  return params
189
204
  end
190
205
  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.5
4
+ version: 3.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - GrabzIt