forked from zendesk/ruby-kafka
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PT-5027] Add ruby 3.0 and 3.1 test matrix support (#6)
* add test matrix * add more ruby versions * bump version * adjust ruby versions * change job name * fix image name * rename kafka test * pass rspec unit tests for ruby 2.7, 3.0 and 3.1 * fix rubocop and try confluent kafka image * fix docker images * remove confluent image and fix functional tests * fix confluent image settings * fix port numbers for confluent image * cluster * comment out confluent image * fix end line * address review feedback * fix rubocop todo
- Loading branch information
1 parent
36c4f48
commit 8ab444a
Showing
9 changed files
with
169 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2023-02-17 11:26:49 UTC using RuboCop version 1.45.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: 1 | ||
# Configuration parameters: Severity, Include. | ||
# Include: **/*.gemspec | ||
Gemspec/RequiredRubyVersion: | ||
Exclude: | ||
- 'ruby-kafka.gemspec' | ||
|
||
# Offense count: 4 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: with_first_argument, with_fixed_indentation | ||
Layout/ArgumentAlignment: | ||
Exclude: | ||
- 'lib/kafka/async_producer.rb' | ||
- 'lib/kafka/producer.rb' | ||
- 'lib/kafka/snappy_codec.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Layout/ClosingParenthesisIndentation: | ||
Exclude: | ||
- 'lib/kafka/client.rb' | ||
|
||
# Offense count: 6 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Layout/EmptyLineAfterGuardClause: | ||
Exclude: | ||
- 'lib/kafka/broker_pool.rb' | ||
- 'lib/kafka/protocol/alter_configs_response.rb' | ||
- 'lib/kafka/protocol/describe_configs_response.rb' | ||
- 'lib/kafka/protocol/sasl_handshake_request.rb' | ||
- 'lib/kafka/sasl/gssapi.rb' | ||
- 'spec/producer_spec.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: consistent, align_parentheses | ||
Layout/FirstParameterIndentation: | ||
Exclude: | ||
- 'lib/kafka/client.rb' | ||
|
||
# Offense count: 2 | ||
Naming/AccessorMethodName: | ||
Exclude: | ||
- 'lib/kafka/socket_with_timeout.rb' | ||
- 'lib/kafka/ssl_socket_with_timeout.rb' | ||
|
||
# Offense count: 7 | ||
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. | ||
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src | ||
# 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: | ||
- 'examples/consumer-group.rb' | ||
- 'examples/firehose-consumer.rb' | ||
- 'examples/firehose-producer.rb' | ||
- 'examples/simple-consumer.rb' | ||
- 'examples/simple-producer.rb' | ||
- 'examples/ssl-producer.rb' | ||
- 'lib/ruby-kafka.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: EnforcedStyleForLeadingUnderscores. | ||
# SupportedStylesForLeadingUnderscores: disallowed, required, optional | ||
Naming/MemoizedInstanceVariableName: | ||
Exclude: | ||
- 'lib/kafka/async_producer.rb' | ||
|
||
# Offense count: 1 | ||
# 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/kafka/client.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: PreferredName. | ||
Naming/RescuedExceptionsVariableName: | ||
Exclude: | ||
- 'lib/kafka/ssl_socket_with_timeout.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. | ||
# SupportedStyles: snake_case, normalcase, non_integer | ||
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 | ||
Naming/VariableNumber: | ||
Exclude: | ||
- 'spec/functional/consumer_group_spec.rb' | ||
|
||
# Offense count: 21 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. | ||
# URISchemes: http, https | ||
Layout/LineLength: | ||
Max: 193 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.