Skip to content

Commit

Permalink
Upgraded dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jun 15, 2024
1 parent 654395f commit 2cf17d4
Show file tree
Hide file tree
Showing 74 changed files with 1,200 additions and 318 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ Style/FrozenStringLiteralComment:
Enabled: false

inherit_from: .rubocop_todo.yml
require:
- rubocop-rake
- rubocop-rspec
- rubocop-capybara
200 changes: 189 additions & 11 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-11 17:20:17 UTC using RuboCop version 1.30.1.
# on 2024-06-15 12:58:07 UTC using RuboCop version 1.64.1.
# 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: 3
# Configuration parameters: EnforcedStyle.
# SupportedStyles: link_or_button, strict
Capybara/ClickLinkOrButtonStyle:
Exclude:
- 'spec/integration/index_spec.rb'
- 'spec/integration/update_cc_spec.rb'

# Offense count: 4
Capybara/SpecificActions:
Exclude:
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/update_cc_spec.rb'

# Offense count: 4
# Configuration parameters: IgnoredMethods.
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/api/endpoints/challenges_endpoint_spec.rb'
Expand All @@ -19,11 +34,12 @@ Lint/AmbiguousBlockAssociation:
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Exclude:
- 'Rakefile.rb'
- 'slack-gamebot.rb'

# Offense count: 6
# 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:
- 'slack-gamebot/app.rb'
Expand All @@ -33,6 +49,7 @@ Naming/HeredocDelimiterNaming:
- 'slack-gamebot/server.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Expand All @@ -41,7 +58,7 @@ Naming/MemoizedInstanceVariableName:

# Offense count: 17
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'slack-gamebot/app.rb'
Expand All @@ -51,19 +68,173 @@ Naming/MethodParameterName:
# Offense count: 16
# 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/slack-gamebot/commands/leaderboard_spec.rb'
- 'spec/slack-gamebot/commands/rank_spec.rb'

# Offense count: 3
# Offense count: 39
RSpec/AnyInstance:
Exclude:
- 'spec/api/endpoints/credit_cards_endpoint_spec.rb'
- 'spec/api/endpoints/status_endpoint_spec.rb'
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/teams_spec.rb'
- 'spec/models/team_spec.rb'
- 'spec/slack-gamebot/app_spec.rb'
- 'spec/slack-gamebot/commands/accept_spec.rb'
- 'spec/slack-gamebot/commands/draw_spec.rb'
- 'spec/slack-gamebot/commands/matches_spec.rb'
- 'spec/slack-gamebot/commands/sucks_spec.rb'

# Offense count: 130
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false

# Offense count: 99
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CaseLikeIf:
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/initializers/giphy_spec.rb'
- 'spec/models/challenge_spec.rb'
- 'spec/models/elo_spec.rb'
- 'spec/models/game_spec.rb'
- 'spec/models/match_spec.rb'
- 'spec/models/score_spec.rb'
- 'spec/models/season_spec.rb'
- 'spec/models/team_spec.rb'
- 'spec/models/user_rank_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/slack-gamebot/app_spec.rb'
- 'spec/slack-gamebot/server_spec.rb'
- 'spec/slack-gamebot/service_spec.rb'

# Offense count: 93
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 31

# Offense count: 4
RSpec/ExpectInHook:
Exclude:
- 'spec/api/endpoints/credit_cards_endpoint_spec.rb'
- 'spec/api/endpoints/status_endpoint_spec.rb'
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'

# Offense count: 26
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
Exclude:
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/api/endpoints/users_endpoint_spec.rb'
- 'spec/slack-gamebot/commands/leaderboard_spec.rb'
- 'spec/slack-gamebot/commands/lost_spec.rb'
- 'spec/slack-gamebot/commands/matches_spec.rb'
- 'spec/slack-gamebot/commands/rank_spec.rb'

# Offense count: 2
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/slack-gamebot/service_spec.rb'
- 'spec/support/api/endpoints/it_behaves_like_a_cursor_api.rb'

# Offense count: 48
RSpec/LetSetup:
Enabled: false

# Offense count: 1
RSpec/MessageChain:
Exclude:
- 'slack-gamebot/commands/draw.rb'
- 'slack-gamebot/commands/lost.rb'
- 'slack-gamebot/commands/resigned.rb'
- 'spec/slack-gamebot/server_spec.rb'

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

# Offense count: 245
RSpec/MultipleExpectations:
Max: 18

# Offense count: 23
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 10

# Offense count: 10
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/api/swagger_documentation_spec.rb'
- 'spec/slack-gamebot/app_spec.rb'

# Offense count: 21
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 4

# Offense count: 1
RSpec/OverwritingSetup:
Exclude:
- 'spec/models/season_spec.rb'

# Offense count: 12
RSpec/RepeatedDescription:
Exclude:
- 'spec/slack-gamebot/commands/set_spec.rb'

# Offense count: 12
RSpec/RepeatedExample:
Exclude:
- 'spec/slack-gamebot/commands/set_spec.rb'

# Offense count: 2
RSpec/RepeatedExampleGroupBody:
Exclude:
- 'spec/api/endpoints/teams_endpoint_spec.rb'

# Offense count: 10
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/api/endpoints/games_endpoint_spec.rb'
- 'spec/api/endpoints/matches_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/slack-gamebot/commands/set_spec.rb'

# Offense count: 38
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Enabled: false

# Offense count: 11
RSpec/StubbedMock:
Exclude:
- 'spec/api/endpoints/status_endpoint_spec.rb'
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/integration/subscribe_spec.rb'
- 'spec/integration/update_cc_spec.rb'
- 'spec/slack-gamebot/app_spec.rb'

# Offense count: 11
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/api/endpoints/subscriptions_endpoint_spec.rb'
- 'spec/api/endpoints/teams_endpoint_spec.rb'
- 'spec/integration/subscribe_spec.rb'
- 'spec/models/user_spec.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Expand All @@ -75,6 +246,7 @@ Style/GlobalStdStream:
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
Style/HashEachMethods:
Exclude:
- 'slack-gamebot/models/challenge.rb'
Expand All @@ -91,6 +263,12 @@ Style/HashTransformValues:
Exclude:
- 'slack-gamebot/api/helpers/error_helpers.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapIntoArray:
Exclude:
- 'slack-gamebot/models/score.rb'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
Expand All @@ -105,7 +283,7 @@ Style/MultilineBlockChain:

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, IgnoredMethods.
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
Expand Down
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'http://rubygems.org'

ruby '3.0.5'

gem 'faraday_middleware'
gem 'hashie', '3.4.6'
gem 'irb'
gem 'json'
Expand All @@ -12,6 +13,7 @@ gem 'mongoid'
gem 'mongoid-scroll'
gem 'multi_json'
gem 'newrelic_rpm'
gem 'rack', '~> 2'
gem 'rack-robotz'
gem 'rack-server-pages'
gem 'roar'
Expand All @@ -28,6 +30,7 @@ group :development, :test do
gem 'foreman'
gem 'rake', '~> 12.3'
gem 'rubocop'
gem 'rubocop-capybara'
gem 'rubocop-faker'
gem 'rubocop-rake'
gem 'rubocop-rspec'
Expand All @@ -44,7 +47,7 @@ group :test do
gem 'excon'
gem 'fabrication'
gem 'faker'
gem 'hyperclient'
gem 'hyperclient', '~> 1.0.0'
gem 'rack-test'
gem 'rspec'
gem 'selenium-webdriver'
Expand Down
Loading

0 comments on commit 2cf17d4

Please sign in to comment.