diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 797b66bf..9119b8f2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2022-08-05 04:59:54 UTC using RuboCop version 1.33.0. +# on 2024-06-07 07:43:43 UTC using RuboCop version 1.50.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -15,7 +15,7 @@ Bundler/OrderedGems: - 'docs/Gemfile' # Offense count: 1 -# Configuration parameters: Include. +# Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: @@ -27,12 +27,6 @@ Layout/EmptyLinesAroundMethodBody: Exclude: - 'docs/source/main.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Lint/AmbiguousOperator: - Exclude: - - 'lib/kaiser/cli.rb' - # Offense count: 3 # Configuration parameters: AllowedMethods. # AllowedMethods: enums @@ -40,32 +34,31 @@ Lint/ConstantDefinitionInBlock: Exclude: - 'spec/plugin_spec.rb' -# Offense count: 11 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. +# Offense count: 13 +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 58 -# Offense count: 7 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 1 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: - Max: 162 + Max: 28 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Exclude: - - 'lib/kaiser/cli.rb' + Max: 477 # Offense count: 1 -# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 8 -# Offense count: 16 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# Offense count: 17 +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: - Max: 44 + Max: 45 # Offense count: 1 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. @@ -74,7 +67,7 @@ Metrics/ParameterLists: # Offense count: 14 # Configuration parameters: ForbiddenDelimiters. -# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) +# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) Naming/HeredocDelimiterNaming: Exclude: - 'lib/kaiser/cmds/attach.rb' @@ -95,7 +88,7 @@ Naming/HeredocDelimiterNaming: # Offense count: 1 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer -# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 +# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64 Naming/VariableNumber: Exclude: - 'spec/plugin_spec.rb' @@ -107,7 +100,7 @@ Style/Documentation: # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 134 diff --git a/lib/kaiser/cli.rb b/lib/kaiser/cli.rb index edfaeec2..da76b585 100644 --- a/lib/kaiser/cli.rb +++ b/lib/kaiser/cli.rb @@ -582,8 +582,9 @@ def ensure_setup --name #{Config.config[:shared_names][:dns]} --network #{Config.config[:networkname]} --privileged - -v /var/run/docker.sock:/docker.sock:ro - phensley/docker-dns + -e DOCKER_HOST='unix:///var/run/docker.sock' + -v /var/run/docker.sock:/var/run/docker.sock:ro + davidsiaw/dockerdns --domain #{http_suffix} --record :#{ip_of_container(Config.config[:shared_names][:nginx])}" ) diff --git a/lib/kaiser/version.rb b/lib/kaiser/version.rb index 7dc10b23..b54b1bd1 100644 --- a/lib/kaiser/version.rb +++ b/lib/kaiser/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Kaiser - VERSION = '0.8.1' + VERSION = '0.8.2' end