lib/benchmark/http/command/spider.rb in benchmark-http-0.16.1 vs lib/benchmark/http/command/spider.rb in benchmark-http-0.18.0

- old
+ new

@@ -1,28 +1,28 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2022, by Samuel Williams. +# Copyright, 2018-2024, by Samuel Williams. -require_relative '../spider' +require_relative "../spider" -require 'async/await' +require "async/await" -require 'samovar' -require 'uri' -require 'console' +require "samovar" +require "uri" +require "console" module Benchmark module HTTP module Command class Spider < Samovar::Command include Async::Await self.description = "Spider a website and report on performance." options do - option '-d/--depth <count>', "The number of nested URLs to traverse.", default: 10, type: Integer - option '-h/--headers', "Print out the response headers", default: false + option "-d/--depth <count>", "The number of nested URLs to traverse.", default: 10, type: Integer + option "-h/--headers", "Print out the response headers", default: false end many :urls, "One or more hosts to benchmark" def log(method, url, response)