screenshotscout 0.8.0 → 0.9.0

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: f351eba8ddd250b731eed37a118b35ef83eea64858935fdfd1e337070f43e273
4
- data.tar.gz: f4ea9b43805d65a41365b158036fa3e4173113bb682b3ac69c45caea820fb994
3
+ metadata.gz: 0a6c2a20b607c8c38e5387794c76f65f44e8ce0fc133c91e35b2a8f818091845
4
+ data.tar.gz: fcf7bc56425c7210b2111ef0a862ba793c8eef1853e6954b2aec71e11f9c3f15
5
5
  SHA512:
6
- metadata.gz: cd80442d19032f609e2c5c69a2dfec05e144eb503b66639bf9c05b82248aa0512d182f8c2eed69a1654f70cc82d5f2b6c38c7b2c1702cd75f91f449bc8b8464f
7
- data.tar.gz: 0e92ecac62c689cc814376be3186a42a8778bf52b9117733602a0893cc1fd38483ded798a20df07445bb392eccbd09e06a3442112f3dbfc1ac5c0f3805a2a7c0
6
+ metadata.gz: 2de0bcd80da4f6c94b6d5405ca08d2cc80e513a8c475cb4c0b184c39897b6cb4fbd833038f3629ecf2c2bb0fbaecad11059a9a7f1a4e0d029ab0ab475c91fbaa
7
+ data.tar.gz: 384a51e982b8a9e5400b0204e0fefde8a67f4bb70bbec0c0d27ff0481473dab08fe45828f56533349ee31ab526428e421db5d09787811b47cdecddd2eaae3752
data/README.md CHANGED
@@ -72,6 +72,45 @@ puts response.result.screenshot_url
72
72
 
73
73
  Unrecognized JSON result fields are retained in `response.result.additional_fields`.
74
74
 
75
+ ## Capture from HTML
76
+
77
+ To render HTML you generated, such as an invoice or a report, call `capture_from_html` with the
78
+ document instead of a URL. It takes the same options as `capture`:
79
+
80
+ ```ruby
81
+ require "screenshotscout"
82
+
83
+ client = ScreenshotScout::Client.new # Reads SCREENSHOTSCOUT_ACCESS_KEY
84
+
85
+ html = <<~HTML
86
+ <!doctype html>
87
+ <html>
88
+ <head>
89
+ <title>Invoice #1042</title>
90
+ </head>
91
+ <body>
92
+ <h1>Invoice #1042</h1>
93
+ <p>Total due: $480.00</p>
94
+ </body>
95
+ </html>
96
+ HTML
97
+
98
+ response = client.capture_from_html(
99
+ html,
100
+ ScreenshotScout::CaptureOptions.new(format: ScreenshotScout::CaptureFormat::PDF)
101
+ )
102
+
103
+ File.binwrite("invoice.pdf", response.bytes)
104
+ ```
105
+
106
+ Send a complete document that starts with `<!doctype html>`. A PDF takes its title from `<title>`.
107
+ The page has no URL, so use absolute URLs for images, stylesheets and fonts, or add a
108
+ `<base href>`. See [How to Render HTML](https://screenshotscout.com/docs/guides/render-html) for
109
+ more.
110
+
111
+ The HTML is sent in a POST request, which can't be signed. So `capture_from_html` needs a client
112
+ without a secret key, and an API key that doesn't require signed requests.
113
+
75
114
  ## Use GET
76
115
 
77
116
  POST is the default, or GET when the client has a secret key. Pass `CaptureHttpMethod::GET` when
data/examples/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
  - [`json.rb`](json.rb) requests a JSON response and prints the screenshot URL.
6
6
  - [`capture_url.rb`](capture_url.rb) creates and prints a capture URL without sending an API
7
7
  request.
8
+ - [`html.rb`](html.rb) renders an invoice to PDF, saves it as `invoice.pdf`, and prints the
9
+ returned screenshot URL.
8
10
 
9
11
  ## Run the examples
10
12
 
@@ -15,7 +17,8 @@ bundle install
15
17
  ```
16
18
 
17
19
  Set your access key. If you also set the optional secret key, the client signs its requests and the
18
- URL that `capture_url.rb` prints.
20
+ URL that `capture_url.rb` prints. `html.rb` sends the HTML in a POST request, which can't be
21
+ signed, so run it without `SCREENSHOTSCOUT_SECRET_KEY`.
19
22
 
20
23
  PowerShell:
21
24
 
@@ -37,6 +40,7 @@ Run any example:
37
40
  bundle exec ruby -Ilib examples/binary.rb
38
41
  bundle exec ruby -Ilib examples/json.rb
39
42
  bundle exec ruby -Ilib examples/capture_url.rb
43
+ bundle exec ruby -Ilib examples/html.rb
40
44
  ```
41
45
 
42
46
  Generated capture URLs contain the access key and should be treated as sensitive.
data/examples/html.rb ADDED
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "screenshotscout"
4
+
5
+ html = <<~HTML
6
+ <!doctype html>
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="utf-8" />
10
+ <title>Invoice #1042</title>
11
+ <style>
12
+ body { font-family: system-ui, sans-serif; margin: 48px; color: #111; }
13
+ table { width: 100%; border-collapse: collapse; margin-top: 24px; }
14
+ th, td { text-align: left; padding: 8px 0; border-bottom: 1px solid #ddd; }
15
+ .total td { font-weight: 600; }
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <h1>Invoice #1042</h1>
20
+ <p>Billed to Example Corp.</p>
21
+ <table>
22
+ <tr><th>Item</th><th>Amount</th></tr>
23
+ <tr><td>Consulting, 4 hours</td><td>$480.00</td></tr>
24
+ <tr class="total"><td>Total</td><td>$480.00</td></tr>
25
+ </table>
26
+ </body>
27
+ </html>
28
+ HTML
29
+
30
+ client = ScreenshotScout::Client.new # Reads SCREENSHOTSCOUT_ACCESS_KEY
31
+ options = ScreenshotScout::CaptureOptions.new(format: ScreenshotScout::CaptureFormat::PDF)
32
+ response = client.capture_from_html(html, options)
33
+
34
+ File.binwrite("invoice.pdf", response.bytes)
35
+ puts response.screenshot_url
@@ -35,14 +35,17 @@ module ScreenshotScout
35
35
  validate_method(method) unless method.nil?
36
36
  reject_signed_post(method)
37
37
  method ||= @secret_key.nil? ? CaptureHttpMethod::POST : CaptureHttpMethod::GET
38
- expected_kind = expected_response_kind(options)
39
- signature = create_signature(serialized.pairs)
40
- request = create_request(serialized, method, signature)
41
- raw_response = execute_request(request)
42
-
43
- raise create_api_error(raw_response) unless raw_response.status.between?(200, 299)
38
+ send_capture(serialized, method, options)
39
+ end
44
40
 
45
- decode_success_response(raw_response, expected_kind)
41
+ # Captures an HTML document instead of a URL, such as an invoice or a report you generated. Sends the HTML
42
+ # exactly as given, in one POST request, and waits for the final inline response. A binary string, such as the
43
+ # result of File.binread or an HTTP response body, is read as UTF-8. A client with a secret key raises
44
+ # ConfigurationError, because POST requests can't be signed.
45
+ def capture_from_html(html, options = nil)
46
+ serialized = Internal::Serializer.serialize(html, options, target: :html)
47
+ reject_signed_html
48
+ send_capture(serialized, CaptureHttpMethod::POST, options)
46
49
  end
47
50
 
48
51
  # Builds a sensitive GET capture URL without performing network I/O.
@@ -101,6 +104,21 @@ module ScreenshotScout
101
104
  "method GET, or use a client without a secret key and an API key that doesn't require signed requests."
102
105
  end
103
106
 
107
+ def reject_signed_html
108
+ return if @secret_key.nil?
109
+
110
+ source = @secret_key_from_environment ? " from #{Internal::Credentials::SECRET_KEY_VARIABLE}" : ""
111
+ raise ConfigurationError,
112
+ "`capture_from_html` sends the HTML in a POST body, which can't be signed. This client has a secret " \
113
+ "key#{source}: use a client without a secret key and an API key that doesn't require signed requests."
114
+ end
115
+
116
+ def send_capture(serialized, method, options)
117
+ signature = create_signature(serialized.pairs)
118
+ request = create_request(serialized, method, signature)
119
+ Internal::ResponseDecoder.decode(execute_request(request), options)
120
+ end
121
+
104
122
  def create_signature(pairs)
105
123
  return nil if @secret_key.nil?
106
124
 
@@ -148,116 +166,6 @@ module ScreenshotScout
148
166
  cause: e
149
167
  end
150
168
 
151
- def expected_response_kind(options)
152
- response_type = options&.response_type
153
- return :binary if response_type.nil? || response_type == CaptureResponseType::BINARY
154
- return :json if response_type == CaptureResponseType::JSON
155
-
156
- nil
157
- end
158
-
159
- def decode_success_response(raw_response, expected_kind)
160
- actual_kind = json_media_type?(raw_response.content_type) ? :json : :binary
161
- if !expected_kind.nil? && actual_kind != expected_kind
162
- message = "Screenshot Scout returned a successful #{actual_kind} response " \
163
- "when #{expected_kind} was requested."
164
- cause = TypeError.new("Expected a #{expected_kind} response but received #{actual_kind}.")
165
- raise ResponseDecodingError.new(message, raw_response), cause: cause
166
- end
167
-
168
- actual_kind == :json ? decode_json_response(raw_response) : decode_binary_response(raw_response)
169
- end
170
-
171
- def decode_binary_response(raw_response)
172
- BinaryCaptureResponse.new(
173
- raw_response: raw_response,
174
- screenshot_url: raw_response.header("Screenshot-Scout-Screenshot-URL").first,
175
- screenshot_url_expires_at: raw_response.header("Screenshot-Scout-Screenshot-URL-Expires-At").first,
176
- cache_status: raw_response.header("Screenshot-Scout-Cache-Status").first,
177
- markdown: markdown_media_type?(raw_response.content_type) ? utf8_text(raw_response.body) : nil,
178
- html: html_media_type?(raw_response.content_type) ? utf8_text(raw_response.body) : nil
179
- )
180
- end
181
-
182
- def decode_json_response(raw_response)
183
- value = parse_json_success(raw_response)
184
- unless value.is_a?(Hash)
185
- cause = TypeError.new("Expected a JSON object.")
186
- raise ResponseDecodingError.new(
187
- "Screenshot Scout returned a successful JSON response that was not an object.",
188
- raw_response
189
- ), cause: cause
190
- end
191
-
192
- screenshot_url = read_optional_string(value, "screenshot_url", raw_response)
193
- expires_at = read_optional_string(value, "screenshot_url_expires_at", raw_response)
194
- cache_status = read_optional_string(value, "cache_status", raw_response)
195
- additional_fields = value.except("screenshot_url", "screenshot_url_expires_at", "cache_status")
196
- result = CaptureResult.new(
197
- screenshot_url: screenshot_url,
198
- screenshot_url_expires_at: expires_at,
199
- cache_status: cache_status,
200
- additional_fields: additional_fields
201
- )
202
- JsonCaptureResponse.new(result: result, raw_response: raw_response)
203
- end
204
-
205
- def parse_json_success(raw_response)
206
- Internal::JsonCodec.parse(raw_response.body)
207
- rescue JSON::ParserError, EncodingError => e
208
- raise ResponseDecodingError.new(
209
- "Screenshot Scout returned a successful JSON response that could not be decoded.",
210
- raw_response
211
- ), cause: e
212
- end
213
-
214
- def read_optional_string(object, key, raw_response)
215
- return nil unless object.key?(key)
216
- return object[key] if object[key].is_a?(String)
217
-
218
- cause = TypeError.new("Expected \"#{key}\" to be a string.")
219
- raise ResponseDecodingError.new(
220
- "Screenshot Scout returned a non-string \"#{key}\" JSON field.",
221
- raw_response
222
- ), cause: cause
223
- end
224
-
225
- def create_api_error(raw_response)
226
- available, response_body = try_parse_json(raw_response.body)
227
- object = response_body if response_body.is_a?(Hash)
228
- error_code = object["error_code"] if object&.fetch("error_code", nil).is_a?(String)
229
- error_message = object["error_message"] if object&.fetch("error_message", nil).is_a?(String)
230
- errors = object["errors"] if object&.fetch("errors", nil).is_a?(Array)
231
-
232
- APIError.new(
233
- raw_response: raw_response,
234
- response_body_available: available,
235
- response_body: response_body,
236
- error_code: error_code,
237
- error_message: error_message,
238
- errors: errors
239
- )
240
- end
241
-
242
- def try_parse_json(body)
243
- [true, Internal::JsonCodec.parse(body)]
244
- rescue JSON::ParserError, EncodingError
245
- [false, nil]
246
- end
247
-
248
- def json_media_type?(content_type)
249
- return false if content_type.nil?
250
-
251
- media_type = content_type.partition(";").first.strip.downcase
252
- media_type == "application/json" || media_type.end_with?("+json")
253
- end
254
-
255
- def markdown_media_type?(content_type) = content_type.to_s.partition(";").first.strip.downcase == "text/markdown"
256
-
257
- def html_media_type?(content_type) = content_type.to_s.partition(";").first.strip.downcase == "text/html"
258
-
259
- def utf8_text(bytes) = bytes.dup.force_encoding(Encoding::UTF_8).scrub
260
-
261
169
  private_constant :ACCESS_KEY_PATTERN
262
170
  end
263
171
  end
@@ -0,0 +1,141 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+
5
+ module ScreenshotScout
6
+ module Internal
7
+ # Turns the buffered response to a capture request into the capture response its options ask for, or into an
8
+ # APIError for a non-2xx status.
9
+ module ResponseDecoder
10
+ module_function
11
+
12
+ def decode(raw_response, options)
13
+ raise create_api_error(raw_response) unless raw_response.status.between?(200, 299)
14
+
15
+ decode_success_response(raw_response, expected_response_kind(options))
16
+ end
17
+
18
+ def expected_response_kind(options)
19
+ response_type = options&.response_type
20
+ return :binary if response_type.nil? || response_type == CaptureResponseType::BINARY
21
+ return :json if response_type == CaptureResponseType::JSON
22
+
23
+ nil
24
+ end
25
+ private_class_method :expected_response_kind
26
+
27
+ def decode_success_response(raw_response, expected_kind)
28
+ actual_kind = json_media_type?(raw_response.content_type) ? :json : :binary
29
+ if !expected_kind.nil? && actual_kind != expected_kind
30
+ message = "Screenshot Scout returned a successful #{actual_kind} response " \
31
+ "when #{expected_kind} was requested."
32
+ cause = TypeError.new("Expected a #{expected_kind} response but received #{actual_kind}.")
33
+ raise ResponseDecodingError.new(message, raw_response), cause: cause
34
+ end
35
+
36
+ actual_kind == :json ? decode_json_response(raw_response) : decode_binary_response(raw_response)
37
+ end
38
+ private_class_method :decode_success_response
39
+
40
+ def decode_binary_response(raw_response)
41
+ BinaryCaptureResponse.new(
42
+ raw_response: raw_response,
43
+ screenshot_url: raw_response.header("Screenshot-Scout-Screenshot-URL").first,
44
+ screenshot_url_expires_at: raw_response.header("Screenshot-Scout-Screenshot-URL-Expires-At").first,
45
+ cache_status: raw_response.header("Screenshot-Scout-Cache-Status").first,
46
+ markdown: markdown_media_type?(raw_response.content_type) ? utf8_text(raw_response.body) : nil,
47
+ html: html_media_type?(raw_response.content_type) ? utf8_text(raw_response.body) : nil
48
+ )
49
+ end
50
+ private_class_method :decode_binary_response
51
+
52
+ def decode_json_response(raw_response)
53
+ value = parse_json_success(raw_response)
54
+ unless value.is_a?(Hash)
55
+ cause = TypeError.new("Expected a JSON object.")
56
+ raise ResponseDecodingError.new(
57
+ "Screenshot Scout returned a successful JSON response that was not an object.",
58
+ raw_response
59
+ ), cause: cause
60
+ end
61
+
62
+ screenshot_url = read_optional_string(value, "screenshot_url", raw_response)
63
+ expires_at = read_optional_string(value, "screenshot_url_expires_at", raw_response)
64
+ cache_status = read_optional_string(value, "cache_status", raw_response)
65
+ additional_fields = value.except("screenshot_url", "screenshot_url_expires_at", "cache_status")
66
+ result = CaptureResult.new(
67
+ screenshot_url: screenshot_url,
68
+ screenshot_url_expires_at: expires_at,
69
+ cache_status: cache_status,
70
+ additional_fields: additional_fields
71
+ )
72
+ JsonCaptureResponse.new(result: result, raw_response: raw_response)
73
+ end
74
+ private_class_method :decode_json_response
75
+
76
+ def parse_json_success(raw_response)
77
+ JsonCodec.parse(raw_response.body)
78
+ rescue JSON::ParserError, EncodingError => e
79
+ raise ResponseDecodingError.new(
80
+ "Screenshot Scout returned a successful JSON response that could not be decoded.",
81
+ raw_response
82
+ ), cause: e
83
+ end
84
+ private_class_method :parse_json_success
85
+
86
+ def read_optional_string(object, key, raw_response)
87
+ return nil unless object.key?(key)
88
+ return object[key] if object[key].is_a?(String)
89
+
90
+ cause = TypeError.new("Expected \"#{key}\" to be a string.")
91
+ raise ResponseDecodingError.new(
92
+ "Screenshot Scout returned a non-string \"#{key}\" JSON field.",
93
+ raw_response
94
+ ), cause: cause
95
+ end
96
+ private_class_method :read_optional_string
97
+
98
+ def create_api_error(raw_response)
99
+ available, response_body = try_parse_json(raw_response.body)
100
+ object = response_body if response_body.is_a?(Hash)
101
+ error_code = object["error_code"] if object&.fetch("error_code", nil).is_a?(String)
102
+ error_message = object["error_message"] if object&.fetch("error_message", nil).is_a?(String)
103
+ errors = object["errors"] if object&.fetch("errors", nil).is_a?(Array)
104
+
105
+ APIError.new(
106
+ raw_response: raw_response,
107
+ response_body_available: available,
108
+ response_body: response_body,
109
+ error_code: error_code,
110
+ error_message: error_message,
111
+ errors: errors
112
+ )
113
+ end
114
+ private_class_method :create_api_error
115
+
116
+ def try_parse_json(body)
117
+ [true, JsonCodec.parse(body)]
118
+ rescue JSON::ParserError, EncodingError
119
+ [false, nil]
120
+ end
121
+ private_class_method :try_parse_json
122
+
123
+ def json_media_type?(content_type)
124
+ return false if content_type.nil?
125
+
126
+ media_type = content_type.partition(";").first.strip.downcase
127
+ media_type == "application/json" || media_type.end_with?("+json")
128
+ end
129
+ private_class_method :json_media_type?
130
+
131
+ def markdown_media_type?(content_type) = content_type.to_s.partition(";").first.strip.downcase == "text/markdown"
132
+ private_class_method :markdown_media_type?
133
+
134
+ def html_media_type?(content_type) = content_type.to_s.partition(";").first.strip.downcase == "text/html"
135
+ private_class_method :html_media_type?
136
+
137
+ def utf8_text(bytes) = bytes.dup.force_encoding(Encoding::UTF_8).scrub
138
+ private_class_method :utf8_text
139
+ end
140
+ end
141
+ end
@@ -82,16 +82,20 @@ module ScreenshotScout
82
82
  cookies headers hide_selectors click_selectors click_all_selectors inject_css inject_js
83
83
  ].freeze
84
84
 
85
+ # What a capture renders, written before the options, and how error messages name it.
86
+ TARGETS = { url: "The capture target URL", html: "The HTML to capture" }.freeze
87
+
85
88
  module_function
86
89
 
87
- def serialize(target_url, options)
88
- url = string_value(target_url, :url, target: true)
90
+ def serialize(target_value, options, target: :url)
91
+ target_value = utf8_from_binary(target_value) if target == :html
92
+ target_text = string_value(target_value, target, subject: TARGETS.fetch(target))
89
93
  unless options.nil? || options.is_a?(CaptureOptions)
90
94
  raise SerializationError, "Capture options must be a ScreenshotScout::CaptureOptions instance when provided."
91
95
  end
92
96
 
93
- pairs = [WirePair.new(name: "url", value: url)]
94
- body = { "url" => url }
97
+ pairs = [WirePair.new(name: target.name, value: target_text)]
98
+ body = { target.name => target_text }
95
99
  WIRE_NAMES.each do |property, wire_name|
96
100
  value = options&.public_send(property)
97
101
  next if value.nil?
@@ -189,15 +193,17 @@ module ScreenshotScout
189
193
  end
190
194
  private_class_method :integer_value
191
195
 
192
- def string_value(value, property, target: false)
193
- unless value.is_a?(String)
194
- message = if target
195
- "The capture target URL must be a string."
196
- else
197
- "The capture option \"#{property}\" must be a string."
198
- end
199
- raise SerializationError.new(message, option: property)
200
- end
196
+ # HTML often comes from File.binread or an HTTP response body, so a binary string is read as UTF-8 bytes,
197
+ # which string_value then checks. The copy leaves the caller's string as it was.
198
+ def utf8_from_binary(value)
199
+ return value unless value.is_a?(String) && value.encoding == Encoding::BINARY
200
+
201
+ value.dup.force_encoding(Encoding::UTF_8)
202
+ end
203
+ private_class_method :utf8_from_binary
204
+
205
+ def string_value(value, property, subject: "The capture option \"#{property}\"")
206
+ raise SerializationError.new("#{subject} must be a string.", option: property) unless value.is_a?(String)
201
207
 
202
208
  string = value.encode(Encoding::UTF_8)
203
209
  # encode doesn't check the bytes of a string that is already tagged as UTF-8.
@@ -205,12 +211,7 @@ module ScreenshotScout
205
211
 
206
212
  string
207
213
  rescue EncodingError => e
208
- message = if target
209
- "The capture target URL must contain valid UTF-8."
210
- else
211
- "The capture option \"#{property}\" must contain valid UTF-8."
212
- end
213
- raise SerializationError.new(message, option: property), cause: e
214
+ raise SerializationError.new("#{subject} must contain valid UTF-8.", option: property), cause: e
214
215
  end
215
216
  private_class_method :string_value
216
217
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScreenshotScout
4
- VERSION = "0.8.0"
4
+ VERSION = "0.9.0"
5
5
  end
@@ -9,5 +9,6 @@ require_relative "screenshotscout/transport"
9
9
  require_relative "screenshotscout/internal/credentials"
10
10
  require_relative "screenshotscout/internal/ecma_script_number_formatter"
11
11
  require_relative "screenshotscout/internal/json_codec"
12
+ require_relative "screenshotscout/internal/response_decoder"
12
13
  require_relative "screenshotscout/internal/serializer"
13
14
  require_relative "screenshotscout/client"
@@ -318,6 +318,8 @@ module ScreenshotScout
318
318
  ?method: capture_http_method?
319
319
  ) -> CaptureResponse
320
320
 
321
+ def capture_from_html: (String html, ?CaptureOptions? options) -> CaptureResponse
322
+
321
323
  def build_capture_url: (String url, ?CaptureOptions? options) -> String
322
324
 
323
325
  def inspect: () -> String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screenshotscout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleksii Velykyi
@@ -76,6 +76,7 @@ files:
76
76
  - examples/README.md
77
77
  - examples/binary.rb
78
78
  - examples/capture_url.rb
79
+ - examples/html.rb
79
80
  - examples/json.rb
80
81
  - lib/screenshotscout.rb
81
82
  - lib/screenshotscout/capture_options.rb
@@ -85,6 +86,7 @@ files:
85
86
  - lib/screenshotscout/internal/credentials.rb
86
87
  - lib/screenshotscout/internal/ecma_script_number_formatter.rb
87
88
  - lib/screenshotscout/internal/json_codec.rb
89
+ - lib/screenshotscout/internal/response_decoder.rb
88
90
  - lib/screenshotscout/internal/serializer.rb
89
91
  - lib/screenshotscout/responses.rb
90
92
  - lib/screenshotscout/transport.rb