Skip to content

Commit

Permalink
Merge pull request #73 from anynines/DS-5380_update_dependencies
Browse files Browse the repository at this point in the history
[DS-5380] Update Dependencies
  • Loading branch information
MartinZAnynines authored Nov 11, 2024
2 parents 508d33c + ed756cb commit 708f667
Show file tree
Hide file tree
Showing 29 changed files with 1,246 additions and 906 deletions.
64 changes: 64 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
inherit_from: .rubocop_todo.yml

Layout/ClassStructure:
Enabled: true
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/MultilineArrayLineBreaks:
Enabled: true
Layout/MultilineHashKeyLineBreaks:
Enabled: true
Layout/MultilineMethodArgumentLineBreaks:
Enabled: true
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Metrics/ClassLength:
Max: 200
Metrics/MethodLength:
Max: 25

Style/AccessorGrouping:
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
EnforcedShorthandSyntax: never
Style/RegexpLiteral:
AllowInnerSlashes: true
Style/SymbolArray:
EnforcedStyle: brackets
Style/SpecialGlobalVars:
Enabled: false
Style/WordArray:
EnforcedStyle: brackets

RSpec/ExampleLength:
Max: 10
RSpec/ExpectChange:
EnforcedStyle: 'block'
RSpec/IndexedLet:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 20
RSpec/NestedGroups:
Max: 5

require:
- rubocop-rspec
191 changes: 191 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-11-07 16:14:10 UTC using RuboCop version 1.68.0.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'unit_tests_utils.gemspec'

# Offense count: 4
Lint/RescueException:
Exclude:
- 'lib/unit_tests_utils/postgresql_web_service_client.rb'

# Offense count: 2
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'lib/unit_tests_utils/postgresql_web_service_client.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Exclude:
- 'lib/unit_tests_utils/turbulence.rb'

# Offense count: 1
Lint/UnreachableCode:
Exclude:
- 'lib/unit_tests_utils/turbulence.rb'

# Offense count: 16
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 39

# Offense count: 2
# Configuration parameters: CountComments, Max, CountAsOne.
Metrics/ClassLength:
Exclude:
- 'lib/unit_tests_utils/postgresql_web_service_client.rb'
- 'lib/unit_tests_utils/turbulence.rb'

# Offense count: 4
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 12

# Offense count: 1
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Exclude:
- 'lib/unit_tests_utils/turbulence.rb'

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 177

# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 12

# Offense count: 5
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/unit_tests_utils/postgresql_web_service_client.rb'
- 'lib/unit_tests_utils/traversal.rb'
- 'lib/unit_tests_utils/turbulence.rb'

# Offense count: 6
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'spec/lib/unit_tests_utils/manifest_spec.rb'

# Offense count: 2
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/lib/unit_tests_utils/manifest_spec.rb'
- 'spec/lib/unit_tests_utils/traversal_spec.rb'

# Offense count: 2
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
Exclude:
- 'spec/lib/unit_tests_utils/bosh_spec.rb'

# Offense count: 6
RSpec/ExpectInHook:
Exclude:
- 'spec/lib/unit_tests_utils/bosh_spec.rb'
- 'spec/lib/unit_tests_utils/internal_dns_spec.rb'

# Offense count: 61
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive

# Offense count: 54
RSpec/MultipleExpectations:
Max: 7

# Offense count: 5
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/lib/unit_tests_utils/cmd_spec.rb'
- 'spec/lib/unit_tests_utils/template_render_spec.rb'

# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/lib/unit_tests_utils/credhub_spec.rb'

# Offense count: 4
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- 'spec/lib/unit_tests_utils/credhub_spec.rb'
- 'spec/lib/unit_tests_utils/postgresql_client_spec.rb'
- 'spec/lib/unit_tests_utils/postgresql_web_service_client_spec.rb'
- 'spec/lib/unit_tests_utils/traversal_spec.rb'

# Offense count: 4
RSpec/StubbedMock:
Exclude:
- 'spec/lib/unit_tests_utils/bosh_spec.rb'
- 'spec/lib/unit_tests_utils/internal_dns_spec.rb'

# Offense count: 12
RSpec/SubjectStub:
Exclude:
- 'spec/lib/unit_tests_utils/postgresql_client_spec.rb'

# Offense count: 2
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/lib/unit_tests_utils/cmd_spec.rb'
- 'spec/lib/unit_tests_utils/postgresql_web_service_client_spec.rb'

# Offense count: 1
Style/ClassVars:
Exclude:
- 'lib/unit_tests_utils/manifest.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'lib/unit_tests_utils/bosh.rb'
- 'lib/unit_tests_utils/cmd.rb'
- 'lib/unit_tests_utils/consul.rb'

# Offense count: 3
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/unit_tests_utils/bosh.rb'
- 'lib/unit_tests_utils/manifest.rb'

# Offense count: 24
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 205
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'destructor'
gem 'httparty', '0.22.0'
gem 'pg', '1.5.9'
gem 'rspec'
gem 'rubocop'
gem 'destructor'
gem 'httparty', '0.21.0'
gem 'pg', '0.21.0'
69 changes: 35 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,65 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
base64 (0.1.1)
bigdecimal (3.1.8)
csv (3.3.0)
destructor (0.1.0)
diff-lcs (1.5.0)
httparty (0.21.0)
diff-lcs (1.5.1)
httparty (0.22.0)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
json (2.6.3)
json (2.8.1)
language_server-protocol (3.17.0.3)
mini_mime (1.1.5)
multi_xml (0.6.0)
parallel (1.23.0)
parser (3.2.2.3)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
parallel (1.26.3)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
pg (0.21.0)
racc (1.7.1)
pg (1.5.9)
racc (1.8.1)
rainbow (3.1.1)
regexp_parser (2.8.1)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
regexp_parser (2.9.2)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.56.3)
base64 (~> 0.1.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.68.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.3)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-ast (1.34.0)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
unicode-display_width (2.4.2)
unicode-display_width (2.6.0)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
destructor
httparty (= 0.21.0)
pg (= 0.21.0)
httparty (= 0.22.0)
pg (= 1.5.9)
rspec
rubocop

BUNDLED WITH
2.3.16
2.5.23
Loading

0 comments on commit 708f667

Please sign in to comment.