diff --git a/Gemfile b/Gemfile index 3dedbc6..b39d6ca 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gem "faraday", "< 3" diff --git a/Rakefile b/Rakefile index 4c774a2..82bb534 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/gem_tasks' require 'rspec/core/rake_task' diff --git a/gemfiles/faraday0.gemfile b/gemfiles/faraday0.gemfile index 8e17d76..c8c2ee4 100644 --- a/gemfiles/faraday0.gemfile +++ b/gemfiles/faraday0.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "faraday", "= 0.11" diff --git a/gemfiles/faraday1.gemfile b/gemfiles/faraday1.gemfile index 8c89737..3dd9d61 100644 --- a/gemfiles/faraday1.gemfile +++ b/gemfiles/faraday1.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "faraday", "= 1.0" diff --git a/gemfiles/faraday2.gemfile b/gemfiles/faraday2.gemfile index 4418b21..17277d7 100644 --- a/gemfiles/faraday2.gemfile +++ b/gemfiles/faraday2.gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" gem "faraday", "< 3" diff --git a/lib/netbox-client-ruby.rb b/lib/netbox-client-ruby.rb index faf52d3..1d3465e 100644 --- a/lib/netbox-client-ruby.rb +++ b/lib/netbox-client-ruby.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + require 'netbox_client_ruby' diff --git a/lib/netbox_client_ruby.rb b/lib/netbox_client_ruby.rb index a2e6a4d..0438045 100644 --- a/lib/netbox_client_ruby.rb +++ b/lib/netbox_client_ruby.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'dry-configurable' require 'netbox_client_ruby/error' require 'netbox_client_ruby/api' diff --git a/lib/netbox_client_ruby/api.rb b/lib/netbox_client_ruby/api.rb index 9c62ee5..83944a5 100644 --- a/lib/netbox_client_ruby/api.rb +++ b/lib/netbox_client_ruby/api.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/circuits.rb b/lib/netbox_client_ruby/api/circuits.rb index c095664..c29cec3 100644 --- a/lib/netbox_client_ruby/api/circuits.rb +++ b/lib/netbox_client_ruby/api/circuits.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/circuits/circuit.rb b/lib/netbox_client_ruby/api/circuits/circuit.rb index 09d722a..27a10d9 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/circuits/circuit_termination.rb b/lib/netbox_client_ruby/api/circuits/circuit_termination.rb index 5d581ff..b6e76a9 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_termination.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_termination.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb b/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb index aa58c2d..b4627cd 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_terminations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/circuits/circuit_termination' diff --git a/lib/netbox_client_ruby/api/circuits/circuit_type.rb b/lib/netbox_client_ruby/api/circuits/circuit_type.rb index 9f6cc44..a16c6e4 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_type.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/circuits/circuit_types.rb b/lib/netbox_client_ruby/api/circuits/circuit_types.rb index 1b8d849..33cec31 100644 --- a/lib/netbox_client_ruby/api/circuits/circuit_types.rb +++ b/lib/netbox_client_ruby/api/circuits/circuit_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/circuits/circuit_type' diff --git a/lib/netbox_client_ruby/api/circuits/circuits.rb b/lib/netbox_client_ruby/api/circuits/circuits.rb index 458e8f6..68fefbb 100644 --- a/lib/netbox_client_ruby/api/circuits/circuits.rb +++ b/lib/netbox_client_ruby/api/circuits/circuits.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/circuits/circuit' diff --git a/lib/netbox_client_ruby/api/circuits/provider.rb b/lib/netbox_client_ruby/api/circuits/provider.rb index 600f507..864a3c2 100644 --- a/lib/netbox_client_ruby/api/circuits/provider.rb +++ b/lib/netbox_client_ruby/api/circuits/provider.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/circuits/providers.rb b/lib/netbox_client_ruby/api/circuits/providers.rb index e17e082..cf0e48f 100644 --- a/lib/netbox_client_ruby/api/circuits/providers.rb +++ b/lib/netbox_client_ruby/api/circuits/providers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/circuits/provider' diff --git a/lib/netbox_client_ruby/api/dcim.rb b/lib/netbox_client_ruby/api/dcim.rb index 0780bf0..7d88c57 100644 --- a/lib/netbox_client_ruby/api/dcim.rb +++ b/lib/netbox_client_ruby/api/dcim.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/console_connection.rb b/lib/netbox_client_ruby/api/dcim/console_connection.rb index 758a8ea..2c70f5f 100644 --- a/lib/netbox_client_ruby/api/dcim/console_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/console_connection.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/console_connections.rb b/lib/netbox_client_ruby/api/dcim/console_connections.rb index 55b5550..00a15fb 100644 --- a/lib/netbox_client_ruby/api/dcim/console_connections.rb +++ b/lib/netbox_client_ruby/api/dcim/console_connections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/console_connection' diff --git a/lib/netbox_client_ruby/api/dcim/console_port.rb b/lib/netbox_client_ruby/api/dcim/console_port.rb index 96baa96..0926bdc 100644 --- a/lib/netbox_client_ruby/api/dcim/console_port.rb +++ b/lib/netbox_client_ruby/api/dcim/console_port.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/console_ports.rb b/lib/netbox_client_ruby/api/dcim/console_ports.rb index e7323c1..f98c892 100644 --- a/lib/netbox_client_ruby/api/dcim/console_ports.rb +++ b/lib/netbox_client_ruby/api/dcim/console_ports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/console_port' diff --git a/lib/netbox_client_ruby/api/dcim/console_server_port.rb b/lib/netbox_client_ruby/api/dcim/console_server_port.rb index dace322..cfe264c 100644 --- a/lib/netbox_client_ruby/api/dcim/console_server_port.rb +++ b/lib/netbox_client_ruby/api/dcim/console_server_port.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/console_server_ports.rb b/lib/netbox_client_ruby/api/dcim/console_server_ports.rb index a3afaf5..a26c262 100644 --- a/lib/netbox_client_ruby/api/dcim/console_server_ports.rb +++ b/lib/netbox_client_ruby/api/dcim/console_server_ports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/console_server_port' diff --git a/lib/netbox_client_ruby/api/dcim/device.rb b/lib/netbox_client_ruby/api/dcim/device.rb index 53982e8..c636b9d 100644 --- a/lib/netbox_client_ruby/api/dcim/device.rb +++ b/lib/netbox_client_ruby/api/dcim/device.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/device_role.rb b/lib/netbox_client_ruby/api/dcim/device_role.rb index c19f4d4..f912160 100644 --- a/lib/netbox_client_ruby/api/dcim/device_role.rb +++ b/lib/netbox_client_ruby/api/dcim/device_role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/dcim/device_roles.rb b/lib/netbox_client_ruby/api/dcim/device_roles.rb index d3de790..081f564 100644 --- a/lib/netbox_client_ruby/api/dcim/device_roles.rb +++ b/lib/netbox_client_ruby/api/dcim/device_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/device_type' diff --git a/lib/netbox_client_ruby/api/dcim/device_type.rb b/lib/netbox_client_ruby/api/dcim/device_type.rb index 070ab0c..0df8672 100644 --- a/lib/netbox_client_ruby/api/dcim/device_type.rb +++ b/lib/netbox_client_ruby/api/dcim/device_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/manufacturer' diff --git a/lib/netbox_client_ruby/api/dcim/device_types.rb b/lib/netbox_client_ruby/api/dcim/device_types.rb index ccfe6ca..d95aef9 100644 --- a/lib/netbox_client_ruby/api/dcim/device_types.rb +++ b/lib/netbox_client_ruby/api/dcim/device_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/device_type' diff --git a/lib/netbox_client_ruby/api/dcim/devices.rb b/lib/netbox_client_ruby/api/dcim/devices.rb index d92bf0b..b6d5e99 100644 --- a/lib/netbox_client_ruby/api/dcim/devices.rb +++ b/lib/netbox_client_ruby/api/dcim/devices.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/device' diff --git a/lib/netbox_client_ruby/api/dcim/interface.rb b/lib/netbox_client_ruby/api/dcim/interface.rb index eb3909c..9ffa197 100644 --- a/lib/netbox_client_ruby/api/dcim/interface.rb +++ b/lib/netbox_client_ruby/api/dcim/interface.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' diff --git a/lib/netbox_client_ruby/api/dcim/interface_connection.rb b/lib/netbox_client_ruby/api/dcim/interface_connection.rb index 422ff8b..8a43922 100644 --- a/lib/netbox_client_ruby/api/dcim/interface_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/interface_connection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/interface' diff --git a/lib/netbox_client_ruby/api/dcim/interface_connections.rb b/lib/netbox_client_ruby/api/dcim/interface_connections.rb index 78652c2..748970e 100644 --- a/lib/netbox_client_ruby/api/dcim/interface_connections.rb +++ b/lib/netbox_client_ruby/api/dcim/interface_connections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/interface_connection' diff --git a/lib/netbox_client_ruby/api/dcim/interfaces.rb b/lib/netbox_client_ruby/api/dcim/interfaces.rb index 22c2334..f98325d 100644 --- a/lib/netbox_client_ruby/api/dcim/interfaces.rb +++ b/lib/netbox_client_ruby/api/dcim/interfaces.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/interface' diff --git a/lib/netbox_client_ruby/api/dcim/inventory_item.rb b/lib/netbox_client_ruby/api/dcim/inventory_item.rb index 73af13f..6c2613e 100644 --- a/lib/netbox_client_ruby/api/dcim/inventory_item.rb +++ b/lib/netbox_client_ruby/api/dcim/inventory_item.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' diff --git a/lib/netbox_client_ruby/api/dcim/inventory_items.rb b/lib/netbox_client_ruby/api/dcim/inventory_items.rb index e661148..c7e4692 100644 --- a/lib/netbox_client_ruby/api/dcim/inventory_items.rb +++ b/lib/netbox_client_ruby/api/dcim/inventory_items.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/inventory_item' diff --git a/lib/netbox_client_ruby/api/dcim/manufacturer.rb b/lib/netbox_client_ruby/api/dcim/manufacturer.rb index 68bee4e..d6a1b6f 100644 --- a/lib/netbox_client_ruby/api/dcim/manufacturer.rb +++ b/lib/netbox_client_ruby/api/dcim/manufacturer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/dcim/manufacturers.rb b/lib/netbox_client_ruby/api/dcim/manufacturers.rb index dd7a635..685bcf6 100644 --- a/lib/netbox_client_ruby/api/dcim/manufacturers.rb +++ b/lib/netbox_client_ruby/api/dcim/manufacturers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/manufacturer' diff --git a/lib/netbox_client_ruby/api/dcim/platform.rb b/lib/netbox_client_ruby/api/dcim/platform.rb index 8e3c54b..4fed41c 100644 --- a/lib/netbox_client_ruby/api/dcim/platform.rb +++ b/lib/netbox_client_ruby/api/dcim/platform.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/manufacturer' diff --git a/lib/netbox_client_ruby/api/dcim/platforms.rb b/lib/netbox_client_ruby/api/dcim/platforms.rb index a4cf029..74a8a04 100644 --- a/lib/netbox_client_ruby/api/dcim/platforms.rb +++ b/lib/netbox_client_ruby/api/dcim/platforms.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/platform' diff --git a/lib/netbox_client_ruby/api/dcim/power_connection.rb b/lib/netbox_client_ruby/api/dcim/power_connection.rb index d5c34bc..c086dfd 100644 --- a/lib/netbox_client_ruby/api/dcim/power_connection.rb +++ b/lib/netbox_client_ruby/api/dcim/power_connection.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/power_connections.rb b/lib/netbox_client_ruby/api/dcim/power_connections.rb index e7f22f7..f8341f8 100644 --- a/lib/netbox_client_ruby/api/dcim/power_connections.rb +++ b/lib/netbox_client_ruby/api/dcim/power_connections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/power_connection' diff --git a/lib/netbox_client_ruby/api/dcim/power_outlet.rb b/lib/netbox_client_ruby/api/dcim/power_outlet.rb index a067f80..bd33e64 100644 --- a/lib/netbox_client_ruby/api/dcim/power_outlet.rb +++ b/lib/netbox_client_ruby/api/dcim/power_outlet.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/power_outlets.rb b/lib/netbox_client_ruby/api/dcim/power_outlets.rb index e3f6bbe..6c3cf06 100644 --- a/lib/netbox_client_ruby/api/dcim/power_outlets.rb +++ b/lib/netbox_client_ruby/api/dcim/power_outlets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/interface' diff --git a/lib/netbox_client_ruby/api/dcim/power_port.rb b/lib/netbox_client_ruby/api/dcim/power_port.rb index 31a57d9..09df253 100644 --- a/lib/netbox_client_ruby/api/dcim/power_port.rb +++ b/lib/netbox_client_ruby/api/dcim/power_port.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/power_ports.rb b/lib/netbox_client_ruby/api/dcim/power_ports.rb index a9afc35..7e6b7d6 100644 --- a/lib/netbox_client_ruby/api/dcim/power_ports.rb +++ b/lib/netbox_client_ruby/api/dcim/power_ports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/interface' diff --git a/lib/netbox_client_ruby/api/dcim/rack.rb b/lib/netbox_client_ruby/api/dcim/rack.rb index 41955d1..f0e174e 100644 --- a/lib/netbox_client_ruby/api/dcim/rack.rb +++ b/lib/netbox_client_ruby/api/dcim/rack.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/dcim/rack_group.rb b/lib/netbox_client_ruby/api/dcim/rack_group.rb index f52357e..ca8a23b 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_group.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_group.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/rack_groups.rb b/lib/netbox_client_ruby/api/dcim/rack_groups.rb index 65da174..a0b21db 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_groups.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_groups.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/rack_group' diff --git a/lib/netbox_client_ruby/api/dcim/rack_reservation.rb b/lib/netbox_client_ruby/api/dcim/rack_reservation.rb index 08d86e5..e31c6b5 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_reservation.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_reservation.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/dcim/rack_reservations.rb b/lib/netbox_client_ruby/api/dcim/rack_reservations.rb index 24e1817..00a46e7 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_reservations.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_reservations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/rack_reservation' diff --git a/lib/netbox_client_ruby/api/dcim/rack_role.rb b/lib/netbox_client_ruby/api/dcim/rack_role.rb index 4b6d843..ba3d5ea 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_role.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/dcim/rack_roles.rb b/lib/netbox_client_ruby/api/dcim/rack_roles.rb index b921a84..205de58 100644 --- a/lib/netbox_client_ruby/api/dcim/rack_roles.rb +++ b/lib/netbox_client_ruby/api/dcim/rack_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/rack_role' diff --git a/lib/netbox_client_ruby/api/dcim/racks.rb b/lib/netbox_client_ruby/api/dcim/racks.rb index 1034a78..8bd6601 100644 --- a/lib/netbox_client_ruby/api/dcim/racks.rb +++ b/lib/netbox_client_ruby/api/dcim/racks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/rack' diff --git a/lib/netbox_client_ruby/api/dcim/region.rb b/lib/netbox_client_ruby/api/dcim/region.rb index 57cba76..857a80c 100644 --- a/lib/netbox_client_ruby/api/dcim/region.rb +++ b/lib/netbox_client_ruby/api/dcim/region.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/dcim/regions.rb b/lib/netbox_client_ruby/api/dcim/regions.rb index 1206d2d..7ef35c3 100644 --- a/lib/netbox_client_ruby/api/dcim/regions.rb +++ b/lib/netbox_client_ruby/api/dcim/regions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/region' diff --git a/lib/netbox_client_ruby/api/dcim/site.rb b/lib/netbox_client_ruby/api/dcim/site.rb index 3cf3435..a62cb0c 100644 --- a/lib/netbox_client_ruby/api/dcim/site.rb +++ b/lib/netbox_client_ruby/api/dcim/site.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/region' diff --git a/lib/netbox_client_ruby/api/dcim/sites.rb b/lib/netbox_client_ruby/api/dcim/sites.rb index 045bec1..324c502 100644 --- a/lib/netbox_client_ruby/api/dcim/sites.rb +++ b/lib/netbox_client_ruby/api/dcim/sites.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/site' diff --git a/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb b/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb index 584c926..8e6671d 100644 --- a/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb +++ b/lib/netbox_client_ruby/api/dcim/virtual_chassis.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' diff --git a/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb b/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb index 4060e55..c17790d 100644 --- a/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb +++ b/lib/netbox_client_ruby/api/dcim/virtual_chassis_list.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/dcim/virtual_chassis' diff --git a/lib/netbox_client_ruby/api/extras.rb b/lib/netbox_client_ruby/api/extras.rb index a82cd4f..dba3daa 100644 --- a/lib/netbox_client_ruby/api/extras.rb +++ b/lib/netbox_client_ruby/api/extras.rb @@ -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' diff --git a/lib/netbox_client_ruby/api/extras/config_context.rb b/lib/netbox_client_ruby/api/extras/config_context.rb index f7f63cc..8c3f22b 100644 --- a/lib/netbox_client_ruby/api/extras/config_context.rb +++ b/lib/netbox_client_ruby/api/extras/config_context.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/extras/config_contexts.rb b/lib/netbox_client_ruby/api/extras/config_contexts.rb index e8e6203..cfd2cd5 100644 --- a/lib/netbox_client_ruby/api/extras/config_contexts.rb +++ b/lib/netbox_client_ruby/api/extras/config_contexts.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/extras/config_context' diff --git a/lib/netbox_client_ruby/api/extras/journal_entries.rb b/lib/netbox_client_ruby/api/extras/journal_entries.rb index b13d70e..efe27cd 100644 --- a/lib/netbox_client_ruby/api/extras/journal_entries.rb +++ b/lib/netbox_client_ruby/api/extras/journal_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/extras/journal_entry' diff --git a/lib/netbox_client_ruby/api/extras/journal_entry.rb b/lib/netbox_client_ruby/api/extras/journal_entry.rb index 099725a..71802bd 100644 --- a/lib/netbox_client_ruby/api/extras/journal_entry.rb +++ b/lib/netbox_client_ruby/api/extras/journal_entry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/extras/tag.rb b/lib/netbox_client_ruby/api/extras/tag.rb index 40a6170..1476057 100644 --- a/lib/netbox_client_ruby/api/extras/tag.rb +++ b/lib/netbox_client_ruby/api/extras/tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/extras/tags.rb b/lib/netbox_client_ruby/api/extras/tags.rb index 4ae7fe6..c1b01d9 100644 --- a/lib/netbox_client_ruby/api/extras/tags.rb +++ b/lib/netbox_client_ruby/api/extras/tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/extras/tag' diff --git a/lib/netbox_client_ruby/api/ipam.rb b/lib/netbox_client_ruby/api/ipam.rb index c02bd71..76fa262 100644 --- a/lib/netbox_client_ruby/api/ipam.rb +++ b/lib/netbox_client_ruby/api/ipam.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/api/ipam/aggregate' require 'netbox_client_ruby/api/ipam/aggregates' require 'netbox_client_ruby/api/ipam/ip_addresses' diff --git a/lib/netbox_client_ruby/api/ipam/aggregate.rb b/lib/netbox_client_ruby/api/ipam/aggregate.rb index c5bd03f..d54eeb0 100644 --- a/lib/netbox_client_ruby/api/ipam/aggregate.rb +++ b/lib/netbox_client_ruby/api/ipam/aggregate.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/ipam/rir' diff --git a/lib/netbox_client_ruby/api/ipam/aggregates.rb b/lib/netbox_client_ruby/api/ipam/aggregates.rb index d907080..2406831 100644 --- a/lib/netbox_client_ruby/api/ipam/aggregates.rb +++ b/lib/netbox_client_ruby/api/ipam/aggregates.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/aggregate' diff --git a/lib/netbox_client_ruby/api/ipam/ip_address.rb b/lib/netbox_client_ruby/api/ipam/ip_address.rb index 4437ec4..3c89942 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_address.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_address.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/interface' require 'netbox_client_ruby/api/ipam/vrf' diff --git a/lib/netbox_client_ruby/api/ipam/ip_addresses.rb b/lib/netbox_client_ruby/api/ipam/ip_addresses.rb index 00a53c1..64d46f7 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_addresses.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_addresses.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/ip_address' diff --git a/lib/netbox_client_ruby/api/ipam/ip_range.rb b/lib/netbox_client_ruby/api/ipam/ip_range.rb index 071ffff..e40e431 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_range.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_range.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/ipam/role' require 'netbox_client_ruby/api/ipam/vrf' diff --git a/lib/netbox_client_ruby/api/ipam/ip_ranges.rb b/lib/netbox_client_ruby/api/ipam/ip_ranges.rb index ea75854..8baaf05 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_ranges.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_ranges.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/ip_range' diff --git a/lib/netbox_client_ruby/api/ipam/prefix.rb b/lib/netbox_client_ruby/api/ipam/prefix.rb index 804dbb1..2ef0dcd 100644 --- a/lib/netbox_client_ruby/api/ipam/prefix.rb +++ b/lib/netbox_client_ruby/api/ipam/prefix.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/ipam/role' require 'netbox_client_ruby/api/dcim/site' diff --git a/lib/netbox_client_ruby/api/ipam/prefixes.rb b/lib/netbox_client_ruby/api/ipam/prefixes.rb index 3a83fe4..ff3dcd6 100644 --- a/lib/netbox_client_ruby/api/ipam/prefixes.rb +++ b/lib/netbox_client_ruby/api/ipam/prefixes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/prefix' diff --git a/lib/netbox_client_ruby/api/ipam/rir.rb b/lib/netbox_client_ruby/api/ipam/rir.rb index 43c462e..6d9feda 100644 --- a/lib/netbox_client_ruby/api/ipam/rir.rb +++ b/lib/netbox_client_ruby/api/ipam/rir.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/ipam/rirs.rb b/lib/netbox_client_ruby/api/ipam/rirs.rb index bc6e96e..41a5fb0 100644 --- a/lib/netbox_client_ruby/api/ipam/rirs.rb +++ b/lib/netbox_client_ruby/api/ipam/rirs.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/rir' diff --git a/lib/netbox_client_ruby/api/ipam/role.rb b/lib/netbox_client_ruby/api/ipam/role.rb index 2ae25be..076d37d 100644 --- a/lib/netbox_client_ruby/api/ipam/role.rb +++ b/lib/netbox_client_ruby/api/ipam/role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/ipam/roles.rb b/lib/netbox_client_ruby/api/ipam/roles.rb index 8bda0ad..a59b06e 100644 --- a/lib/netbox_client_ruby/api/ipam/roles.rb +++ b/lib/netbox_client_ruby/api/ipam/roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/role' diff --git a/lib/netbox_client_ruby/api/ipam/service.rb b/lib/netbox_client_ruby/api/ipam/service.rb index f823700..c86c3fd 100644 --- a/lib/netbox_client_ruby/api/ipam/service.rb +++ b/lib/netbox_client_ruby/api/ipam/service.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/ipam/ip_address' diff --git a/lib/netbox_client_ruby/api/ipam/services.rb b/lib/netbox_client_ruby/api/ipam/services.rb index a02b701..4e98f07 100644 --- a/lib/netbox_client_ruby/api/ipam/services.rb +++ b/lib/netbox_client_ruby/api/ipam/services.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/service' diff --git a/lib/netbox_client_ruby/api/ipam/vlan.rb b/lib/netbox_client_ruby/api/ipam/vlan.rb index f6c4d59..e726ce1 100644 --- a/lib/netbox_client_ruby/api/ipam/vlan.rb +++ b/lib/netbox_client_ruby/api/ipam/vlan.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/tenancy/tenant' require 'netbox_client_ruby/api/dcim/site' diff --git a/lib/netbox_client_ruby/api/ipam/vlan_group.rb b/lib/netbox_client_ruby/api/ipam/vlan_group.rb index 3ff21c7..9184705 100644 --- a/lib/netbox_client_ruby/api/ipam/vlan_group.rb +++ b/lib/netbox_client_ruby/api/ipam/vlan_group.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/site' diff --git a/lib/netbox_client_ruby/api/ipam/vlan_groups.rb b/lib/netbox_client_ruby/api/ipam/vlan_groups.rb index 14cf59a..a5d51d3 100644 --- a/lib/netbox_client_ruby/api/ipam/vlan_groups.rb +++ b/lib/netbox_client_ruby/api/ipam/vlan_groups.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/vlan_group' diff --git a/lib/netbox_client_ruby/api/ipam/vlans.rb b/lib/netbox_client_ruby/api/ipam/vlans.rb index af9c8bf..d10f813 100644 --- a/lib/netbox_client_ruby/api/ipam/vlans.rb +++ b/lib/netbox_client_ruby/api/ipam/vlans.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/vlan' diff --git a/lib/netbox_client_ruby/api/ipam/vrf.rb b/lib/netbox_client_ruby/api/ipam/vrf.rb index 551cc5e..24db860 100644 --- a/lib/netbox_client_ruby/api/ipam/vrf.rb +++ b/lib/netbox_client_ruby/api/ipam/vrf.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/tenancy/tenant' diff --git a/lib/netbox_client_ruby/api/ipam/vrfs.rb b/lib/netbox_client_ruby/api/ipam/vrfs.rb index ac25b3b..983881c 100644 --- a/lib/netbox_client_ruby/api/ipam/vrfs.rb +++ b/lib/netbox_client_ruby/api/ipam/vrfs.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/ipam/vrf' diff --git a/lib/netbox_client_ruby/api/secrets.rb b/lib/netbox_client_ruby/api/secrets.rb index 108d798..1362258 100644 --- a/lib/netbox_client_ruby/api/secrets.rb +++ b/lib/netbox_client_ruby/api/secrets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/api/secrets/rsa_key_pair' require 'netbox_client_ruby/api/secrets/secret_roles' require 'netbox_client_ruby/api/secrets/secrets' diff --git a/lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb b/lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb index d5ea89e..9db75bd 100644 --- a/lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb +++ b/lib/netbox_client_ruby/api/secrets/rsa_key_pair.rb @@ -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/secrets/secret_role' diff --git a/lib/netbox_client_ruby/api/secrets/secret.rb b/lib/netbox_client_ruby/api/secrets/secret.rb index 407e5f1..5266cdb 100644 --- a/lib/netbox_client_ruby/api/secrets/secret.rb +++ b/lib/netbox_client_ruby/api/secrets/secret.rb @@ -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/secrets/secret_role' diff --git a/lib/netbox_client_ruby/api/secrets/secret_role.rb b/lib/netbox_client_ruby/api/secrets/secret_role.rb index 875ffec..88515f6 100644 --- a/lib/netbox_client_ruby/api/secrets/secret_role.rb +++ b/lib/netbox_client_ruby/api/secrets/secret_role.rb @@ -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/secrets/secret_role' diff --git a/lib/netbox_client_ruby/api/secrets/secret_roles.rb b/lib/netbox_client_ruby/api/secrets/secret_roles.rb index ccff1eb..c8ebc53 100644 --- a/lib/netbox_client_ruby/api/secrets/secret_roles.rb +++ b/lib/netbox_client_ruby/api/secrets/secret_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/secrets/secret_role' diff --git a/lib/netbox_client_ruby/api/secrets/secrets.rb b/lib/netbox_client_ruby/api/secrets/secrets.rb index 97cef30..ea55656 100644 --- a/lib/netbox_client_ruby/api/secrets/secrets.rb +++ b/lib/netbox_client_ruby/api/secrets/secrets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/secrets/secret' diff --git a/lib/netbox_client_ruby/api/secrets/session_key.rb b/lib/netbox_client_ruby/api/secrets/session_key.rb index 705dc0b..af7dd1a 100644 --- a/lib/netbox_client_ruby/api/secrets/session_key.rb +++ b/lib/netbox_client_ruby/api/secrets/session_key.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'openssl' require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' diff --git a/lib/netbox_client_ruby/api/tenancy.rb b/lib/netbox_client_ruby/api/tenancy.rb index a4e5149..a646392 100644 --- a/lib/netbox_client_ruby/api/tenancy.rb +++ b/lib/netbox_client_ruby/api/tenancy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/api/tenancy/tenant' require 'netbox_client_ruby/api/tenancy/tenants' require 'netbox_client_ruby/api/tenancy/tenant_group' diff --git a/lib/netbox_client_ruby/api/tenancy/tenant.rb b/lib/netbox_client_ruby/api/tenancy/tenant.rb index 0e11869..1044a8d 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenant.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenant.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/tenancy/tenant_group' diff --git a/lib/netbox_client_ruby/api/tenancy/tenant_group.rb b/lib/netbox_client_ruby/api/tenancy/tenant_group.rb index df38589..3abe253 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenant_group.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenant_group.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb b/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb index b8289a1..9fd4a7a 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenant_groups.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/tenancy/tenant_group' diff --git a/lib/netbox_client_ruby/api/tenancy/tenants.rb b/lib/netbox_client_ruby/api/tenancy/tenants.rb index 9b31496..48caa62 100644 --- a/lib/netbox_client_ruby/api/tenancy/tenants.rb +++ b/lib/netbox_client_ruby/api/tenancy/tenants.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/tenancy/tenant' diff --git a/lib/netbox_client_ruby/api/virtualization.rb b/lib/netbox_client_ruby/api/virtualization.rb index 58d1b0a..9e994d7 100644 --- a/lib/netbox_client_ruby/api/virtualization.rb +++ b/lib/netbox_client_ruby/api/virtualization.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/api/virtualization/cluster_group' require 'netbox_client_ruby/api/virtualization/cluster_groups' require 'netbox_client_ruby/api/virtualization/cluster_type' diff --git a/lib/netbox_client_ruby/api/virtualization/cluster.rb b/lib/netbox_client_ruby/api/virtualization/cluster.rb index 9d1f048..2f01ca6 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/virtualization/cluster_group' require 'netbox_client_ruby/api/virtualization/cluster_type' diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_group.rb b/lib/netbox_client_ruby/api/virtualization/cluster_group.rb index 52edd0c..b085bbb 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_group.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_group.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb b/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb index a1542a6..954f047 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_groups.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/virtualization/cluster_group' diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_type.rb b/lib/netbox_client_ruby/api/virtualization/cluster_type.rb index 71a5605..a611851 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_type.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' module NetboxClientRuby diff --git a/lib/netbox_client_ruby/api/virtualization/cluster_types.rb b/lib/netbox_client_ruby/api/virtualization/cluster_types.rb index 67da801..411dbe9 100644 --- a/lib/netbox_client_ruby/api/virtualization/cluster_types.rb +++ b/lib/netbox_client_ruby/api/virtualization/cluster_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/virtualization/cluster_type' diff --git a/lib/netbox_client_ruby/api/virtualization/clusters.rb b/lib/netbox_client_ruby/api/virtualization/clusters.rb index a41605c..4fbda04 100644 --- a/lib/netbox_client_ruby/api/virtualization/clusters.rb +++ b/lib/netbox_client_ruby/api/virtualization/clusters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/virtualization/cluster' diff --git a/lib/netbox_client_ruby/api/virtualization/interface.rb b/lib/netbox_client_ruby/api/virtualization/interface.rb index be1982c..940c456 100644 --- a/lib/netbox_client_ruby/api/virtualization/interface.rb +++ b/lib/netbox_client_ruby/api/virtualization/interface.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/virtualization/virtual_machine' diff --git a/lib/netbox_client_ruby/api/virtualization/interfaces.rb b/lib/netbox_client_ruby/api/virtualization/interfaces.rb index 7ab5f39..8cb6acb 100644 --- a/lib/netbox_client_ruby/api/virtualization/interfaces.rb +++ b/lib/netbox_client_ruby/api/virtualization/interfaces.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/virtualization/interface' diff --git a/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb b/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb index ee45f9d..8c2e62b 100644 --- a/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb +++ b/lib/netbox_client_ruby/api/virtualization/virtual_machine.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device_role' require 'netbox_client_ruby/api/dcim/platform' diff --git a/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb b/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb index 339b21a..65d34c7 100644 --- a/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb +++ b/lib/netbox_client_ruby/api/virtualization/virtual_machines.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entities' require 'netbox_client_ruby/api/virtualization/virtual_machine' diff --git a/lib/netbox_client_ruby/communication.rb b/lib/netbox_client_ruby/communication.rb index c86c97b..869746e 100644 --- a/lib/netbox_client_ruby/communication.rb +++ b/lib/netbox_client_ruby/communication.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/error' require 'netbox_client_ruby/connection' diff --git a/lib/netbox_client_ruby/connection.rb b/lib/netbox_client_ruby/connection.rb index 3b91353..cd3163d 100644 --- a/lib/netbox_client_ruby/connection.rb +++ b/lib/netbox_client_ruby/connection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'faraday' require 'faraday/detailed_logger' require 'netbox_client_ruby/error' diff --git a/lib/netbox_client_ruby/entities.rb b/lib/netbox_client_ruby/entities.rb index 34c0d1b..5fcdb91 100644 --- a/lib/netbox_client_ruby/entities.rb +++ b/lib/netbox_client_ruby/entities.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/entity' require 'netbox_client_ruby/error' diff --git a/lib/netbox_client_ruby/entity.rb b/lib/netbox_client_ruby/entity.rb index 7134117..10262f7 100644 --- a/lib/netbox_client_ruby/entity.rb +++ b/lib/netbox_client_ruby/entity.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'netbox_client_ruby/communication' require 'netbox_client_ruby/error' @@ -305,7 +307,7 @@ def path end def replace_path_variables_in(path) - interpreted_path = path.clone + interpreted_path = path.dup path.scan(/:([a-zA-Z_][a-zA-Z0-9_]+[!?=]?)/) do |match, *| path_variable_value = send(match) return interpreted_path.gsub! ":#{match}", path_variable_value.to_s unless path_variable_value.nil? diff --git a/lib/netbox_client_ruby/error.rb b/lib/netbox_client_ruby/error.rb index b117c23..1bd6754 100644 --- a/lib/netbox_client_ruby/error.rb +++ b/lib/netbox_client_ruby/error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module NetboxClientRuby class Error < StandardError; end class ClientError < Error; end diff --git a/spec/netbox_client_ruby/api/circuits/circuit_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_spec.rb index c038f54..c2492e7 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::Circuit, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb index e34b569..b36164a 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_termination_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::CircuitTermination, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/circuit_terminations_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_terminations_spec.rb index 64fefae..6e34bc5 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_terminations_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_terminations_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::CircuitTerminations, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb index fbbfd19..44686e5 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_type_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::CircuitType, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/circuit_types_spec.rb b/spec/netbox_client_ruby/api/circuits/circuit_types_spec.rb index bad5a7b..6bc1395 100644 --- a/spec/netbox_client_ruby/api/circuits/circuit_types_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuit_types_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::CircuitTypes, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/circuits_spec.rb b/spec/netbox_client_ruby/api/circuits/circuits_spec.rb index ca599d6..cef2dca 100644 --- a/spec/netbox_client_ruby/api/circuits/circuits_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/circuits_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::Circuits, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/provider_spec.rb b/spec/netbox_client_ruby/api/circuits/provider_spec.rb index 0aa1cdb..10d32f3 100644 --- a/spec/netbox_client_ruby/api/circuits/provider_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/provider_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::Provider, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits/providers_spec.rb b/spec/netbox_client_ruby/api/circuits/providers_spec.rb index 362cb37..e40b105 100644 --- a/spec/netbox_client_ruby/api/circuits/providers_spec.rb +++ b/spec/netbox_client_ruby/api/circuits/providers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits::Providers, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/circuits_spec.rb b/spec/netbox_client_ruby/api/circuits_spec.rb index 0bc657a..e707e64 100644 --- a/spec/netbox_client_ruby/api/circuits_spec.rb +++ b/spec/netbox_client_ruby/api/circuits_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Circuits do diff --git a/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb index dce4b28..afe9de8 100644 --- a/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_connection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsoleConnection, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/console_connections_spec.rb b/spec/netbox_client_ruby/api/dcim/console_connections_spec.rb index c3c4b38..014e9ca 100644 --- a/spec/netbox_client_ruby/api/dcim/console_connections_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_connections_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsoleConnections, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/console_port_spec.rb b/spec/netbox_client_ruby/api/dcim/console_port_spec.rb index 95dfc14..55bc25a 100644 --- a/spec/netbox_client_ruby/api/dcim/console_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_port_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsolePort, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/console_ports_spec.rb b/spec/netbox_client_ruby/api/dcim/console_ports_spec.rb index b030ef5..e99329c 100644 --- a/spec/netbox_client_ruby/api/dcim/console_ports_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_ports_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsolePorts, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb b/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb index 9257a83..5038420 100644 --- a/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_server_port_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsoleServerPort, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/console_server_ports_spec.rb b/spec/netbox_client_ruby/api/dcim/console_server_ports_spec.rb index 5ce614d..1e62133 100644 --- a/spec/netbox_client_ruby/api/dcim/console_server_ports_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/console_server_ports_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::ConsoleServerPorts, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/device_role_spec.rb b/spec/netbox_client_ruby/api/dcim/device_role_spec.rb index 96d560f..c00aa1c 100644 --- a/spec/netbox_client_ruby/api/dcim/device_role_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_role_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::DeviceRole, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/device_roles_spec.rb b/spec/netbox_client_ruby/api/dcim/device_roles_spec.rb index aa03c32..061a8a5 100644 --- a/spec/netbox_client_ruby/api/dcim/device_roles_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_roles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::DeviceRoles, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/device_spec.rb b/spec/netbox_client_ruby/api/dcim/device_spec.rb index 981a3d8..4dde31f 100644 --- a/spec/netbox_client_ruby/api/dcim/device_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Device, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/device_type_spec.rb b/spec/netbox_client_ruby/api/dcim/device_type_spec.rb index 5e83526..b1b0ff7 100644 --- a/spec/netbox_client_ruby/api/dcim/device_type_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_type_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::DeviceType, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/device_types_spec.rb b/spec/netbox_client_ruby/api/dcim/device_types_spec.rb index 059fd3d..d93b41c 100644 --- a/spec/netbox_client_ruby/api/dcim/device_types_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/device_types_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::DeviceTypes, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/devices_spec.rb b/spec/netbox_client_ruby/api/dcim/devices_spec.rb index eaec5fd..b2133b1 100644 --- a/spec/netbox_client_ruby/api/dcim/devices_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/devices_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Devices, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb index 32333fa..39f181c 100644 --- a/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interface_connection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::InterfaceConnection, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/interface_connections_spec.rb b/spec/netbox_client_ruby/api/dcim/interface_connections_spec.rb index 5a4d05a..150162d 100644 --- a/spec/netbox_client_ruby/api/dcim/interface_connections_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interface_connections_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::InterfaceConnections, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/interface_spec.rb b/spec/netbox_client_ruby/api/dcim/interface_spec.rb index 3a852fd..411053c 100644 --- a/spec/netbox_client_ruby/api/dcim/interface_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interface_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Interface, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/interfaces_spec.rb b/spec/netbox_client_ruby/api/dcim/interfaces_spec.rb index dd0ff01..055d614 100644 --- a/spec/netbox_client_ruby/api/dcim/interfaces_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/interfaces_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Interfaces, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb b/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb index 5855be8..32b4c05 100644 --- a/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/inventory_item_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::InventoryItem, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/inventory_items_spec.rb b/spec/netbox_client_ruby/api/dcim/inventory_items_spec.rb index 44ff552..8a87f0a 100644 --- a/spec/netbox_client_ruby/api/dcim/inventory_items_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/inventory_items_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::InventoryItems, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb b/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb index 66c3fa1..b341b75 100644 --- a/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/manufacturer_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Manufacturer, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/manufacturers_spec.rb b/spec/netbox_client_ruby/api/dcim/manufacturers_spec.rb index 6eaa515..c5b0f8d 100644 --- a/spec/netbox_client_ruby/api/dcim/manufacturers_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/manufacturers_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Regions, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/platform_spec.rb b/spec/netbox_client_ruby/api/dcim/platform_spec.rb index c80d439..c0945c6 100644 --- a/spec/netbox_client_ruby/api/dcim/platform_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/platform_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Platform, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/platforms_spec.rb b/spec/netbox_client_ruby/api/dcim/platforms_spec.rb index ace0da3..3f365e9 100644 --- a/spec/netbox_client_ruby/api/dcim/platforms_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/platforms_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Platforms, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb b/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb index a822d83..564d88f 100644 --- a/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_connection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerConnection, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_connections_spec.rb b/spec/netbox_client_ruby/api/dcim/power_connections_spec.rb index 5fd1b3b..db41801 100644 --- a/spec/netbox_client_ruby/api/dcim/power_connections_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_connections_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerConnections, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb b/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb index ae9f03c..19509d1 100644 --- a/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_outlet_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerOutlet, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_outlets_spec.rb b/spec/netbox_client_ruby/api/dcim/power_outlets_spec.rb index 8fb3748..5c75587 100644 --- a/spec/netbox_client_ruby/api/dcim/power_outlets_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_outlets_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerOutlets, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_port_spec.rb b/spec/netbox_client_ruby/api/dcim/power_port_spec.rb index 884dbd4..89b5862 100644 --- a/spec/netbox_client_ruby/api/dcim/power_port_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_port_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerPort, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/power_ports_spec.rb b/spec/netbox_client_ruby/api/dcim/power_ports_spec.rb index 72129ad..532069b 100644 --- a/spec/netbox_client_ruby/api/dcim/power_ports_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/power_ports_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::PowerPorts, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb index ea1c47a..ea2afe4 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_group_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackGroup, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_groups_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_groups_spec.rb index dbf047e..bc9589f 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_groups_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackGroups, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb index 6c4ef31..030e087 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_reservation_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackReservation, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_reservations_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_reservations_spec.rb index e2fb108..a81fa09 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_reservations_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_reservations_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackReservations, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb index 860f0de..d774b9e 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_role_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackRole, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_roles_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_roles_spec.rb index 93784c6..f898c9a 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_roles_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_roles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::RackRoles, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/rack_spec.rb b/spec/netbox_client_ruby/api/dcim/rack_spec.rb index b820eb6..1c1b375 100644 --- a/spec/netbox_client_ruby/api/dcim/rack_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/rack_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Rack, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/racks_spec.rb b/spec/netbox_client_ruby/api/dcim/racks_spec.rb index a0865bf..791b6d3 100644 --- a/spec/netbox_client_ruby/api/dcim/racks_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/racks_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Racks, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/region_spec.rb b/spec/netbox_client_ruby/api/dcim/region_spec.rb index 4a852fb..ad2d883 100644 --- a/spec/netbox_client_ruby/api/dcim/region_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/region_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Region, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/regions_spec.rb b/spec/netbox_client_ruby/api/dcim/regions_spec.rb index 6eaa515..c5b0f8d 100644 --- a/spec/netbox_client_ruby/api/dcim/regions_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/regions_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Regions, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/site_spec.rb b/spec/netbox_client_ruby/api/dcim/site_spec.rb index 7acf749..3fd918f 100644 --- a/spec/netbox_client_ruby/api/dcim/site_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/site_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Site, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/sites_spec.rb b/spec/netbox_client_ruby/api/dcim/sites_spec.rb index 456040a..3a922dc 100644 --- a/spec/netbox_client_ruby/api/dcim/sites_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/sites_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::Sites, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/virtual_chassis_list_spec.rb b/spec/netbox_client_ruby/api/dcim/virtual_chassis_list_spec.rb index 1d40b98..274cc17 100644 --- a/spec/netbox_client_ruby/api/dcim/virtual_chassis_list_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/virtual_chassis_list_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::VirtualChassisList, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb b/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb index 26fd350..270586b 100644 --- a/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb +++ b/spec/netbox_client_ruby/api/dcim/virtual_chassis_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::DCIM::VirtualChassis, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/dcim_spec.rb b/spec/netbox_client_ruby/api/dcim_spec.rb index 488ddbe..6c9b92b 100644 --- a/spec/netbox_client_ruby/api/dcim_spec.rb +++ b/spec/netbox_client_ruby/api/dcim_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' module NetboxClientRuby diff --git a/spec/netbox_client_ruby/api/extras/config_context_spec.rb b/spec/netbox_client_ruby/api/extras/config_context_spec.rb index 554c6d4..534e372 100644 --- a/spec/netbox_client_ruby/api/extras/config_context_spec.rb +++ b/spec/netbox_client_ruby/api/extras/config_context_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::ConfigContext, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras/config_contexts_spec.rb b/spec/netbox_client_ruby/api/extras/config_contexts_spec.rb index ae29a6f..2846a14 100644 --- a/spec/netbox_client_ruby/api/extras/config_contexts_spec.rb +++ b/spec/netbox_client_ruby/api/extras/config_contexts_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::ConfigContexts, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras/journal_entries_spec.rb b/spec/netbox_client_ruby/api/extras/journal_entries_spec.rb index 716f44a..8828d93 100644 --- a/spec/netbox_client_ruby/api/extras/journal_entries_spec.rb +++ b/spec/netbox_client_ruby/api/extras/journal_entries_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::JournalEntries, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb b/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb index 5006e0e..850a81b 100644 --- a/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb +++ b/spec/netbox_client_ruby/api/extras/journal_entry_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::JournalEntry, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras/tag_spec.rb b/spec/netbox_client_ruby/api/extras/tag_spec.rb index 2e58dca..1abb787 100644 --- a/spec/netbox_client_ruby/api/extras/tag_spec.rb +++ b/spec/netbox_client_ruby/api/extras/tag_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::Tag, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras/tags_spec.rb b/spec/netbox_client_ruby/api/extras/tags_spec.rb index 489cc0d..7662d27 100644 --- a/spec/netbox_client_ruby/api/extras/tags_spec.rb +++ b/spec/netbox_client_ruby/api/extras/tags_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras::Tags, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/extras_spec.rb b/spec/netbox_client_ruby/api/extras_spec.rb index a598e04..f8b65cf 100644 --- a/spec/netbox_client_ruby/api/extras_spec.rb +++ b/spec/netbox_client_ruby/api/extras_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Extras do diff --git a/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb b/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb index 0a4e737..0e239e4 100644 --- a/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/aggregate_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Aggregate, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/aggregates_spec.rb b/spec/netbox_client_ruby/api/ipam/aggregates_spec.rb index e693958..0e91285 100644 --- a/spec/netbox_client_ruby/api/ipam/aggregates_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/aggregates_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Aggregates, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb index c25a054..ee37564 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_address_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'ipaddress' diff --git a/spec/netbox_client_ruby/api/ipam/ip_addresses_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_addresses_spec.rb index ae46fbd..5cb6ebc 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_addresses_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_addresses_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::IpAddresses, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb index a52492e..5226228 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_range_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'ipaddress' diff --git a/spec/netbox_client_ruby/api/ipam/ip_ranges_spec.rb b/spec/netbox_client_ruby/api/ipam/ip_ranges_spec.rb index 0b76ced..78741d8 100644 --- a/spec/netbox_client_ruby/api/ipam/ip_ranges_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/ip_ranges_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::IpRanges, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/prefix_spec.rb b/spec/netbox_client_ruby/api/ipam/prefix_spec.rb index 4b7a489..97960ec 100644 --- a/spec/netbox_client_ruby/api/ipam/prefix_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/prefix_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'ipaddress' diff --git a/spec/netbox_client_ruby/api/ipam/prefixes_spec.rb b/spec/netbox_client_ruby/api/ipam/prefixes_spec.rb index b709c35..4b7402a 100644 --- a/spec/netbox_client_ruby/api/ipam/prefixes_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/prefixes_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Prefixes, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/rir_spec.rb b/spec/netbox_client_ruby/api/ipam/rir_spec.rb index bd3c02f..2ad5c4a 100644 --- a/spec/netbox_client_ruby/api/ipam/rir_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/rir_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Rir, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/rirs_spec.rb b/spec/netbox_client_ruby/api/ipam/rirs_spec.rb index 78d92c0..8f1aed1 100644 --- a/spec/netbox_client_ruby/api/ipam/rirs_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/rirs_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Rirs, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/role_spec.rb b/spec/netbox_client_ruby/api/ipam/role_spec.rb index f19bc8e..1667481 100644 --- a/spec/netbox_client_ruby/api/ipam/role_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/role_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Role, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/roles_spec.rb b/spec/netbox_client_ruby/api/ipam/roles_spec.rb index 1424b51..b04b61e 100644 --- a/spec/netbox_client_ruby/api/ipam/roles_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/roles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Roles, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/service_spec.rb b/spec/netbox_client_ruby/api/ipam/service_spec.rb index 7f57962..d15bca6 100644 --- a/spec/netbox_client_ruby/api/ipam/service_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Service, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/services_spec.rb b/spec/netbox_client_ruby/api/ipam/services_spec.rb index 10d0e65..7b89131 100644 --- a/spec/netbox_client_ruby/api/ipam/services_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/services_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Services, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb b/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb index 38f80ce..21f8030 100644 --- a/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlan_group_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::VlanGroup, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vlan_groups_spec.rb b/spec/netbox_client_ruby/api/ipam/vlan_groups_spec.rb index 303e82f..4e5f48e 100644 --- a/spec/netbox_client_ruby/api/ipam/vlan_groups_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlan_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::VlanGroups, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vlan_spec.rb b/spec/netbox_client_ruby/api/ipam/vlan_spec.rb index 06c47ef..524a149 100644 --- a/spec/netbox_client_ruby/api/ipam/vlan_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlan_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Vlan, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vlans_spec.rb b/spec/netbox_client_ruby/api/ipam/vlans_spec.rb index f19ef27..bb8a7a4 100644 --- a/spec/netbox_client_ruby/api/ipam/vlans_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vlans_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Vlans, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vrf_spec.rb b/spec/netbox_client_ruby/api/ipam/vrf_spec.rb index 0404ba4..73c9e8c 100644 --- a/spec/netbox_client_ruby/api/ipam/vrf_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vrf_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Vrf, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam/vrfs_spec.rb b/spec/netbox_client_ruby/api/ipam/vrfs_spec.rb index 6ae3afb..099c194 100644 --- a/spec/netbox_client_ruby/api/ipam/vrfs_spec.rb +++ b/spec/netbox_client_ruby/api/ipam/vrfs_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM::Vrfs, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/ipam_spec.rb b/spec/netbox_client_ruby/api/ipam_spec.rb index 64bb462..4d63947 100644 --- a/spec/netbox_client_ruby/api/ipam_spec.rb +++ b/spec/netbox_client_ruby/api/ipam_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::IPAM do diff --git a/spec/netbox_client_ruby/api/secrets/rsa_key_pair_spec.rb b/spec/netbox_client_ruby/api/secrets/rsa_key_pair_spec.rb index a22ae78..152b755 100644 --- a/spec/netbox_client_ruby/api/secrets/rsa_key_pair_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/rsa_key_pair_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'digest/md5' diff --git a/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb b/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb index bceac5b..5f1b444 100644 --- a/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secret_role_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets::SecretRole, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/secrets/secret_roles_spec.rb b/spec/netbox_client_ruby/api/secrets/secret_roles_spec.rb index ceba37a..fd5076a 100644 --- a/spec/netbox_client_ruby/api/secrets/secret_roles_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secret_roles_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets::SecretRoles, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/secrets/secret_spec.rb b/spec/netbox_client_ruby/api/secrets/secret_spec.rb index 4b85d84..35e1922 100644 --- a/spec/netbox_client_ruby/api/secrets/secret_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secret_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets::Secret, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/secrets/secrets_spec.rb b/spec/netbox_client_ruby/api/secrets/secrets_spec.rb index 196b8b8..cbf4e8f 100644 --- a/spec/netbox_client_ruby/api/secrets/secrets_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/secrets_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets::Secrets, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/secrets/session_key_spec.rb b/spec/netbox_client_ruby/api/secrets/session_key_spec.rb index 113c02e..c5526c1 100644 --- a/spec/netbox_client_ruby/api/secrets/session_key_spec.rb +++ b/spec/netbox_client_ruby/api/secrets/session_key_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets::SessionKey, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/secrets_spec.rb b/spec/netbox_client_ruby/api/secrets_spec.rb index 905941a..4e3ba0f 100644 --- a/spec/netbox_client_ruby/api/secrets_spec.rb +++ b/spec/netbox_client_ruby/api/secrets_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Secrets do diff --git a/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb index e21b295..f5c6f7b 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenant_group_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Tenancy::TenantGroup, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb index b36149f..d998726 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenant_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Tenancy::Tenant, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/tenancy/tenants_groups_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenants_groups_spec.rb index d329955..43d5b02 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenants_groups_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenants_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Tenancy::TenantGroups, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/tenancy/tenants_spec.rb b/spec/netbox_client_ruby/api/tenancy/tenants_spec.rb index 282937a..04d0f9a 100644 --- a/spec/netbox_client_ruby/api/tenancy/tenants_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy/tenants_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Tenancy::Tenants, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/tenancy_spec.rb b/spec/netbox_client_ruby/api/tenancy_spec.rb index 1c6b5f8..25319f1 100644 --- a/spec/netbox_client_ruby/api/tenancy_spec.rb +++ b/spec/netbox_client_ruby/api/tenancy_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Tenancy do diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb index 678e685..d2ec1fd 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_group_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::ClusterGroup, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_groups_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_groups_spec.rb index c7dc1ec..8cf64cb 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_groups_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_groups_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::ClusterGroups, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb index d69e6ac..72f365b 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::Cluster, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb index 7569c83..dc6bbaf 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_type_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::ClusterType, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/cluster_types_spec.rb b/spec/netbox_client_ruby/api/virtualization/cluster_types_spec.rb index 862ecc9..f56c141 100644 --- a/spec/netbox_client_ruby/api/virtualization/cluster_types_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/cluster_types_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::ClusterTypes, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/clusters_spec.rb b/spec/netbox_client_ruby/api/virtualization/clusters_spec.rb index ea56953..037369e 100644 --- a/spec/netbox_client_ruby/api/virtualization/clusters_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/clusters_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::Clusters, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/interface_spec.rb b/spec/netbox_client_ruby/api/virtualization/interface_spec.rb index 251cd99..bdd4614 100644 --- a/spec/netbox_client_ruby/api/virtualization/interface_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/interface_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::Interface, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/interfaces_spec.rb b/spec/netbox_client_ruby/api/virtualization/interfaces_spec.rb index 830080c..a00ab8a 100644 --- a/spec/netbox_client_ruby/api/virtualization/interfaces_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/interfaces_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::Interfaces, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb b/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb index 37bd452..b7d2b28 100644 --- a/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/virtual_machine_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::VirtualMachine, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization/virtual_machines_spec.rb b/spec/netbox_client_ruby/api/virtualization/virtual_machines_spec.rb index 54f2386..fce1325 100644 --- a/spec/netbox_client_ruby/api/virtualization/virtual_machines_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization/virtual_machines_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization::VirtualMachines, faraday_stub: true do diff --git a/spec/netbox_client_ruby/api/virtualization_spec.rb b/spec/netbox_client_ruby/api/virtualization_spec.rb index 16b8c74..2b85c4a 100644 --- a/spec/netbox_client_ruby/api/virtualization_spec.rb +++ b/spec/netbox_client_ruby/api/virtualization_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Virtualization do diff --git a/spec/netbox_client_ruby/communication_spec.rb b/spec/netbox_client_ruby/communication_spec.rb index d7f586d..dbc4b9d 100644 --- a/spec/netbox_client_ruby/communication_spec.rb +++ b/spec/netbox_client_ruby/communication_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'json' diff --git a/spec/netbox_client_ruby/connection_spec.rb b/spec/netbox_client_ruby/connection_spec.rb index 708a71d..d263835 100644 --- a/spec/netbox_client_ruby/connection_spec.rb +++ b/spec/netbox_client_ruby/connection_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'uri' diff --git a/spec/netbox_client_ruby/entities_spec.rb b/spec/netbox_client_ruby/entities_spec.rb index b11f081..b237c93 100644 --- a/spec/netbox_client_ruby/entities_spec.rb +++ b/spec/netbox_client_ruby/entities_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'ostruct' require 'uri' diff --git a/spec/netbox_client_ruby/entity_object_fields_spec.rb b/spec/netbox_client_ruby/entity_object_fields_spec.rb index a17f16d..ae853c6 100644 --- a/spec/netbox_client_ruby/entity_object_fields_spec.rb +++ b/spec/netbox_client_ruby/entity_object_fields_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Entity do diff --git a/spec/netbox_client_ruby/entity_spec.rb b/spec/netbox_client_ruby/entity_spec.rb index c529efa..a83d214 100644 --- a/spec/netbox_client_ruby/entity_spec.rb +++ b/spec/netbox_client_ruby/entity_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby::Entity, faraday_stub: true do diff --git a/spec/netbox_client_ruby/netbox_spec.rb b/spec/netbox_client_ruby/netbox_spec.rb index 21dfab1..68a1f4e 100644 --- a/spec/netbox_client_ruby/netbox_spec.rb +++ b/spec/netbox_client_ruby/netbox_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe NetboxClientRuby do diff --git a/spec/shared_context.rb b/spec/shared_context.rb index 88a7970..7512335 100644 --- a/spec/shared_context.rb +++ b/spec/shared_context.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' require 'shared_contexts/netbox_client' require 'shared_contexts/faraday' diff --git a/spec/shared_contexts/faraday.rb b/spec/shared_contexts/faraday.rb index b6aabeb..d42733b 100644 --- a/spec/shared_contexts/faraday.rb +++ b/spec/shared_contexts/faraday.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'uri' RSpec.shared_context 'faraday connection', faraday_stub: true do diff --git a/spec/shared_contexts/netbox_client.rb b/spec/shared_contexts/netbox_client.rb index 9b6a5bf..0338cae 100644 --- a/spec/shared_contexts/netbox_client.rb +++ b/spec/shared_contexts/netbox_client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "dry/configurable/test_interface" # https://dry-rb.org/gems/dry-configurable/1.0/testing/ diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6b297e1..9338366 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/setup' require 'netbox-client-ruby' require 'shared_context'