Skip to content

Commit

Permalink
Coding style: add missing frozen string literal comment
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez authored and thde committed Oct 25, 2024
1 parent ef9bbbc commit fcdd272
Show file tree
Hide file tree
Showing 229 changed files with 459 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem "faraday", "< 3"
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

Expand Down
2 changes: 2 additions & 0 deletions gemfiles/faraday0.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "faraday", "= 0.11"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/faraday1.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "faraday", "= 1.0"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/faraday2.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "faraday", "< 3"
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox-client-ruby.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require 'netbox_client_ruby'
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'dry-configurable'
require 'netbox_client_ruby/error'
require 'netbox_client_ruby/api'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/api/circuits'
require 'netbox_client_ruby/api/dcim'
require 'netbox_client_ruby/api/extras'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/api/circuits/circuit'
require 'netbox_client_ruby/api/circuits/circuits'
require 'netbox_client_ruby/api/circuits/circuit_termination'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits/circuit.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/circuits/circuit_type'
require 'netbox_client_ruby/api/circuits/provider'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits/circuit_termination.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/circuits/circuit'
require 'netbox_client_ruby/api/dcim/site'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits/circuit_terminations.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/circuits/circuit_termination'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits/circuit_types.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/circuits/circuit_type'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/circuits/circuit'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/circuits/providers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/circuits/provider'

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

require 'netbox_client_ruby/api/dcim/console_connection'
require 'netbox_client_ruby/api/dcim/console_connections'
require 'netbox_client_ruby/api/dcim/console_port'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/console_connection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/console_server_port'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/console_connections.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/console_connection'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/console_server_port'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/console_ports.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/console_port'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/console_port'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/console_server_ports.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/console_server_port'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device_type'
require 'netbox_client_ruby/api/dcim/device_role'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/device_role.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/device_roles.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/device_type'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/manufacturer'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/device_type'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/device'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/interface'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/interface_connection'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/interface'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/inventory_item'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/manufacturers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/manufacturer'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/manufacturer'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/platform'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/power_outlet'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/power_connections.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/power_connection'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/power_port'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/power_outlets.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/interface'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'
require 'netbox_client_ruby/api/dcim/power_outlet'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/power_ports.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/interface'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/rack_group.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/region'
require 'netbox_client_ruby/api/tenancy/tenant'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/rack_groups.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/rack_group'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/rack'
require 'netbox_client_ruby/api/tenancy/tenant'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/rack_reservations.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/rack_reservation'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/rack_roles.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/rack_role'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/rack'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/dcim/regions.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/region'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/region'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/site'

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

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/device'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/virtual_chassis'

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

require 'netbox_client_ruby/api/extras/config_context'
require 'netbox_client_ruby/api/extras/config_contexts'
require 'netbox_client_ruby/api/extras/journal_entry'
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/extras/config_context.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/extras/config_contexts.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/extras/config_context'

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

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/extras/journal_entry'

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

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/extras/tag.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entity'

module NetboxClientRuby
Expand Down
2 changes: 2 additions & 0 deletions lib/netbox_client_ruby/api/extras/tags.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/extras/tag'

Expand Down
Loading

0 comments on commit fcdd272

Please sign in to comment.