diff --git a/lib/nmap.rb b/lib/nmap.rb index 44931a4..22193c2 100644 --- a/lib/nmap.rb +++ b/lib/nmap.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'nmap/program' require_relative 'nmap/xml' require_relative 'nmap/version' diff --git a/lib/nmap/command.rb b/lib/nmap/command.rb index 332f4d3..8a1bf3a 100644 --- a/lib/nmap/command.rb +++ b/lib/nmap/command.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'command_mapper/command' module Nmap diff --git a/lib/nmap/version.rb b/lib/nmap/version.rb index e7c8fcc..d07dbba 100644 --- a/lib/nmap/version.rb +++ b/lib/nmap/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap # ruby-nmap version VERSION = '1.0.2' diff --git a/lib/nmap/xml.rb b/lib/nmap/xml.rb index 71c963b..65b29c3 100644 --- a/lib/nmap/xml.rb +++ b/lib/nmap/xml.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'xml/scanner' require_relative 'xml/scan_task' require_relative 'xml/scan' diff --git a/lib/nmap/xml/address.rb b/lib/nmap/xml/address.rb index 1c6ad25..371423d 100644 --- a/lib/nmap/xml/address.rb +++ b/lib/nmap/xml/address.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/cpe.rb b/lib/nmap/xml/cpe.rb index 3d1e2ac..23fb4dd 100644 --- a/lib/nmap/xml/cpe.rb +++ b/lib/nmap/xml/cpe.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'cpe/url' module Nmap diff --git a/lib/nmap/xml/cpe/url.rb b/lib/nmap/xml/cpe/url.rb index 33c8c76..a080d6e 100644 --- a/lib/nmap/xml/cpe/url.rb +++ b/lib/nmap/xml/cpe/url.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML module CPE diff --git a/lib/nmap/xml/hop.rb b/lib/nmap/xml/hop.rb index 52d32f9..60b91cd 100644 --- a/lib/nmap/xml/hop.rb +++ b/lib/nmap/xml/hop.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/host.rb b/lib/nmap/xml/host.rb index 4fa1785..cfe3928 100644 --- a/lib/nmap/xml/host.rb +++ b/lib/nmap/xml/host.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'status' require_relative 'address' require_relative 'hostname' diff --git a/lib/nmap/xml/host_script.rb b/lib/nmap/xml/host_script.rb index 2de2bb5..4a2234a 100644 --- a/lib/nmap/xml/host_script.rb +++ b/lib/nmap/xml/host_script.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'scripts' module Nmap diff --git a/lib/nmap/xml/hostname.rb b/lib/nmap/xml/hostname.rb index 682001c..3b42717 100644 --- a/lib/nmap/xml/hostname.rb +++ b/lib/nmap/xml/hostname.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/ip_id_sequence.rb b/lib/nmap/xml/ip_id_sequence.rb index 0c7f291..319e142 100644 --- a/lib/nmap/xml/ip_id_sequence.rb +++ b/lib/nmap/xml/ip_id_sequence.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'sequence' module Nmap diff --git a/lib/nmap/xml/os.rb b/lib/nmap/xml/os.rb index bed7093..26ebba5 100644 --- a/lib/nmap/xml/os.rb +++ b/lib/nmap/xml/os.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'os_class' require_relative 'os_match' diff --git a/lib/nmap/xml/os_class.rb b/lib/nmap/xml/os_class.rb index 1d4ce80..ba38f92 100644 --- a/lib/nmap/xml/os_class.rb +++ b/lib/nmap/xml/os_class.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'cpe' module Nmap diff --git a/lib/nmap/xml/os_match.rb b/lib/nmap/xml/os_match.rb index a889dfd..cdfef24 100644 --- a/lib/nmap/xml/os_match.rb +++ b/lib/nmap/xml/os_match.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/port.rb b/lib/nmap/xml/port.rb index b69a23f..2a34576 100644 --- a/lib/nmap/xml/port.rb +++ b/lib/nmap/xml/port.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'service' require_relative 'scripts' diff --git a/lib/nmap/xml/postscript.rb b/lib/nmap/xml/postscript.rb index 8f455c2..574ff66 100644 --- a/lib/nmap/xml/postscript.rb +++ b/lib/nmap/xml/postscript.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'scripts' module Nmap diff --git a/lib/nmap/xml/prescript.rb b/lib/nmap/xml/prescript.rb index f9bd1f1..f29e0dc 100644 --- a/lib/nmap/xml/prescript.rb +++ b/lib/nmap/xml/prescript.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'scripts' module Nmap diff --git a/lib/nmap/xml/run_stat.rb b/lib/nmap/xml/run_stat.rb index be10cfc..0899cdc 100644 --- a/lib/nmap/xml/run_stat.rb +++ b/lib/nmap/xml/run_stat.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/scan.rb b/lib/nmap/xml/scan.rb index cb80acb..528a06c 100644 --- a/lib/nmap/xml/scan.rb +++ b/lib/nmap/xml/scan.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/scan_task.rb b/lib/nmap/xml/scan_task.rb index 8687106..7b32fa1 100644 --- a/lib/nmap/xml/scan_task.rb +++ b/lib/nmap/xml/scan_task.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/scanner.rb b/lib/nmap/xml/scanner.rb index 02bbbc2..72ed51e 100644 --- a/lib/nmap/xml/scanner.rb +++ b/lib/nmap/xml/scanner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/script.rb b/lib/nmap/xml/script.rb index f1166b2..057c4e5 100644 --- a/lib/nmap/xml/script.rb +++ b/lib/nmap/xml/script.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/scripts.rb b/lib/nmap/xml/scripts.rb index 5cc1fe2..9835bc7 100644 --- a/lib/nmap/xml/scripts.rb +++ b/lib/nmap/xml/scripts.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'script' module Nmap diff --git a/lib/nmap/xml/sequence.rb b/lib/nmap/xml/sequence.rb index b5ff490..3d1d6b6 100644 --- a/lib/nmap/xml/sequence.rb +++ b/lib/nmap/xml/sequence.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # @@ -24,7 +26,7 @@ def initialize(node) # # @return [String] # The sequence class from nmap. - # + # # @since 0.5.0 # def description diff --git a/lib/nmap/xml/service.rb b/lib/nmap/xml/service.rb index f23d9c5..ddef0a9 100644 --- a/lib/nmap/xml/service.rb +++ b/lib/nmap/xml/service.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'cpe' module Nmap diff --git a/lib/nmap/xml/status.rb b/lib/nmap/xml/status.rb index 991ff0e..6690e5f 100644 --- a/lib/nmap/xml/status.rb +++ b/lib/nmap/xml/status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML # diff --git a/lib/nmap/xml/tcp_sequence.rb b/lib/nmap/xml/tcp_sequence.rb index caaffbf..e6f53b3 100644 --- a/lib/nmap/xml/tcp_sequence.rb +++ b/lib/nmap/xml/tcp_sequence.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'sequence' module Nmap diff --git a/lib/nmap/xml/tcp_ts_sequence.rb b/lib/nmap/xml/tcp_ts_sequence.rb index 0c2279e..d212ce4 100644 --- a/lib/nmap/xml/tcp_ts_sequence.rb +++ b/lib/nmap/xml/tcp_ts_sequence.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'sequence' module Nmap diff --git a/lib/nmap/xml/traceroute.rb b/lib/nmap/xml/traceroute.rb index 3dbeec1..36664c4 100644 --- a/lib/nmap/xml/traceroute.rb +++ b/lib/nmap/xml/traceroute.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative 'hop' module Nmap diff --git a/lib/nmap/xml/uptime.rb b/lib/nmap/xml/uptime.rb index 8a934d6..45523b3 100644 --- a/lib/nmap/xml/uptime.rb +++ b/lib/nmap/xml/uptime.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nmap class XML #