Skip to content

Commit cb4e996

Browse files
authored
Merge branch 'main' into patch-1
2 parents d4e05e9 + 9a0e280 commit cb4e996

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2460
-2525
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: split
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
include:
10+
- gemfile: 5.2.gemfile
11+
ruby: 2.5
12+
13+
- gemfile: 5.2.gemfile
14+
ruby: 2.6
15+
16+
- gemfile: 5.2.gemfile
17+
ruby: 2.7
18+
19+
- gemfile: 6.0.gemfile
20+
ruby: 2.5
21+
22+
- gemfile: 6.0.gemfile
23+
ruby: 2.6
24+
25+
- gemfile: 6.0.gemfile
26+
ruby: 2.7
27+
28+
- gemfile: 6.0.gemfile
29+
ruby: '3.0'
30+
31+
- gemfile: 6.1.gemfile
32+
ruby: '3.0'
33+
34+
- gemfile: 7.0.gemfile
35+
ruby: '3.0'
36+
37+
- gemfile: 7.0.gemfile
38+
ruby: '3.1'
39+
40+
41+
runs-on: ubuntu-latest
42+
43+
services:
44+
redis:
45+
image: redis
46+
ports: ['6379:6379']
47+
options: >-
48+
--health-cmd "redis-cli ping"
49+
--health-interval 10s
50+
--health-timeout 5s
51+
--health-retries 5
52+
53+
steps:
54+
- uses: actions/checkout@v3
55+
56+
- uses: ruby/setup-ruby@v1
57+
with:
58+
ruby-version: ${{ matrix.ruby }}
59+
60+
- name: Install dependencies
61+
run: |
62+
bundle config set gemfile "${GITHUB_WORKSPACE}/gemfiles/${{ matrix.gemfile }}"
63+
bundle install --jobs 4 --retry 3
64+
65+
- name: Display Ruby version
66+
run: ruby -v
67+
68+
- name: Test
69+
run: bundle exec rspec
70+
env:
71+
REDIS_URL: redis:6379
72+
73+
- name: Rubocop
74+
run: bundle exec rubocop

.rubocop.yml

Lines changed: 177 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,180 @@
1-
inherit_from: .rubocop_todo.yml
2-
31
AllCops:
2+
TargetRubyVersion: 2.5
3+
DisabledByDefault: true
4+
SuggestExtensions: false
45
Exclude:
5-
- 'Appraisals'
66
- 'gemfiles/**/*'
7-
- 'spec/**/*.rb'
7+
8+
Style/AndOr:
9+
Enabled: true
10+
11+
Layout/CaseIndentation:
12+
Enabled: true
13+
14+
Layout/ClosingHeredocIndentation:
15+
Enabled: true
16+
17+
Layout/CommentIndentation:
18+
Enabled: true
19+
20+
Layout/ElseAlignment:
21+
Enabled: true
22+
23+
Layout/EndAlignment:
24+
Enabled: true
25+
EnforcedStyleAlignWith: variable
26+
AutoCorrect: true
27+
28+
Layout/EmptyLineAfterMagicComment:
29+
Enabled: true
30+
31+
Layout/EmptyLinesAroundAccessModifier:
32+
Enabled: true
33+
EnforcedStyle: only_before
34+
35+
Layout/EmptyLinesAroundBlockBody:
36+
Enabled: true
37+
38+
Layout/EmptyLinesAroundClassBody:
39+
Enabled: true
40+
41+
Layout/EmptyLinesAroundMethodBody:
42+
Enabled: true
43+
44+
Layout/EmptyLinesAroundModuleBody:
45+
Enabled: true
46+
47+
Style/HashSyntax:
48+
Enabled: true
49+
50+
Layout/FirstArgumentIndentation:
51+
Enabled: true
52+
53+
Layout/IndentationConsistency:
54+
Enabled: true
55+
EnforcedStyle: indented_internal_methods
56+
57+
Layout/IndentationWidth:
58+
Enabled: true
59+
60+
Layout/LeadingCommentSpace:
61+
Enabled: true
62+
63+
Layout/SpaceAfterColon:
64+
Enabled: true
65+
66+
Layout/SpaceAfterComma:
67+
Enabled: true
68+
69+
Layout/SpaceAfterSemicolon:
70+
Enabled: true
71+
72+
Layout/SpaceAroundEqualsInParameterDefault:
73+
Enabled: true
74+
75+
Layout/SpaceAroundKeyword:
76+
Enabled: true
77+
78+
Layout/SpaceBeforeComma:
79+
Enabled: true
80+
81+
Layout/SpaceBeforeComment:
82+
Enabled: true
83+
84+
Layout/SpaceBeforeFirstArg:
85+
Enabled: true
86+
87+
Style/DefWithParentheses:
88+
Enabled: true
89+
90+
Style/MethodDefParentheses:
91+
Enabled: true
92+
93+
Style/FrozenStringLiteralComment:
94+
Enabled: true
95+
EnforcedStyle: always
96+
97+
Style/RedundantFreeze:
98+
Enabled: true
99+
100+
Layout/SpaceBeforeBlockBraces:
101+
Enabled: true
102+
103+
Layout/SpaceInsideBlockBraces:
104+
Enabled: true
105+
EnforcedStyleForEmptyBraces: space
106+
107+
Layout/SpaceInsideHashLiteralBraces:
108+
Enabled: true
109+
110+
Layout/SpaceInsideParens:
111+
Enabled: true
112+
113+
Style/StringLiterals:
114+
Enabled: true
115+
EnforcedStyle: double_quotes
116+
117+
Layout/IndentationStyle:
118+
Enabled: true
119+
120+
Layout/TrailingEmptyLines:
121+
Enabled: true
122+
123+
Layout/TrailingWhitespace:
124+
Enabled: true
125+
126+
Style/RedundantPercentQ:
127+
Enabled: true
128+
129+
Lint/AmbiguousOperator:
130+
Enabled: true
131+
132+
Lint/AmbiguousRegexpLiteral:
133+
Enabled: true
134+
135+
Lint/ErbNewArguments:
136+
Enabled: true
137+
138+
Lint/RequireParentheses:
139+
Enabled: true
140+
141+
Lint/ShadowingOuterLocalVariable:
142+
Enabled: true
143+
144+
Lint/RedundantStringCoercion:
145+
Enabled: true
146+
147+
Lint/UriEscapeUnescape:
148+
Enabled: true
149+
150+
Lint/UselessAssignment:
151+
Enabled: true
152+
153+
Lint/DeprecatedClassMethods:
154+
Enabled: true
155+
156+
Style/ParenthesesAroundCondition:
157+
Enabled: true
158+
159+
Style/HashTransformKeys:
160+
Enabled: true
161+
162+
Style/HashTransformValues:
163+
Enabled: true
164+
165+
Style/RedundantBegin:
166+
Enabled: true
167+
168+
Style/RedundantReturn:
169+
Enabled: true
170+
AllowMultipleReturnValues: true
171+
172+
Style/Semicolon:
173+
Enabled: true
174+
AllowAsExpressionSeparator: true
175+
176+
Style/ColonMethodCall:
177+
Enabled: true
178+
179+
Style/TrivialAccessors:
180+
Enabled: true

0 commit comments

Comments
 (0)