Skip to content

Commit

Permalink
Add # frozen_string_literal: true to all files (closes #94).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jan 25, 2024
1 parent 5687622 commit 9ba5301
Show file tree
Hide file tree
Showing 31 changed files with 63 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/nmap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'nmap/program'
require_relative 'nmap/xml'
require_relative 'nmap/version'
2 changes: 2 additions & 0 deletions lib/nmap/command.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'command_mapper/command'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
# ruby-nmap version
VERSION = '1.0.2'
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'xml/scanner'
require_relative 'xml/scan_task'
require_relative 'xml/scan'
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/address.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/cpe.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'cpe/url'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/cpe/url.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
module CPE
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/hop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/host.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'status'
require_relative 'address'
require_relative 'hostname'
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/host_script.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'scripts'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/hostname.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/ip_id_sequence.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'sequence'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/os.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'os_class'
require_relative 'os_match'

Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/os_class.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'cpe'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/os_match.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/port.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'service'
require_relative 'scripts'

Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/postscript.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'scripts'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/prescript.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'scripts'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/run_stat.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/scan.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/scan_task.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/scanner.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/script.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/scripts.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'script'

module Nmap
Expand Down
4 changes: 3 additions & 1 deletion lib/nmap/xml/sequence.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand All @@ -24,7 +26,7 @@ def initialize(node)
#
# @return [String]
# The sequence class from nmap.
#
#
# @since 0.5.0
#
def description
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/service.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'cpe'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/status.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/tcp_sequence.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'sequence'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/tcp_ts_sequence.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'sequence'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/traceroute.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'hop'

module Nmap
Expand Down
2 changes: 2 additions & 0 deletions lib/nmap/xml/uptime.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Nmap
class XML
#
Expand Down

0 comments on commit 9ba5301

Please sign in to comment.