Skip to content

Commit 6322918

Browse files
Merge pull request #481 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.208
2 parents 91a7610 + 0e6ee5e commit 6322918

File tree

599 files changed

+33416
-33667
lines changed

Some content is hidden

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

599 files changed

+33416
-33667
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
13+
timeout-minutes: 10
1314
name: lint
14-
runs-on: ubuntu-latest
15-
15+
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
1616

1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Set up Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
2222
bundler-cache: false
23-
ruby-version: '3.1'
2423
- run: |-
2524
bundle install
2625
2726
- name: Run lints
2827
run: ./scripts/lint
2928
test:
29+
timeout-minutes: 10
3030
name: test
31-
runs-on: ubuntu-latest
32-
31+
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3332
steps:
3433
- uses: actions/checkout@v4
3534
- name: Set up Ruby
3635
uses: ruby/setup-ruby@v1
3736
with:
3837
bundler-cache: false
39-
ruby-version: '3.1'
4038
- run: |-
4139
bundle install
4240

.github/workflows/publish-gem.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
bundler-cache: false
22-
ruby-version: '3.1'
2322
- run: |-
2423
bundle install
2524

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
.prism.log
1+
*.gem
22
.idea/
3+
.ignore
4+
.prism.log
35
.ruby-lsp/
46
.yardoc/
5-
doc/
6-
sorbet/
7-
Brewfile.lock.json
87
bin/tapioca
9-
*.gem
8+
Brewfile.lock.json
9+
doc/
10+
sorbet/tapioca/*

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.207"
2+
".": "0.1.0-alpha.208"
33
}

.rubocop.yml

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ AllCops:
88
- "bin/*"
99
NewCops: enable
1010
SuggestExtensions: false
11-
TargetRubyVersion: 3.1.0
11+
TargetRubyVersion: 3.2.0
12+
13+
# Whether MFA is required or not should be left to the token configuration.
14+
Gemspec/RequireMFA:
15+
Enabled: false
1216

1317
# Don't require this extra line break, it can be excessive.
1418
Layout/EmptyLineAfterGuardClause:
@@ -35,7 +39,9 @@ Layout/LineLength:
3539
AllowedPatterns:
3640
- "^\\s*#.*$"
3741
- ^require(_relative)?
38-
- "OnebusawaySDK::(Models|Resources)::"
42+
- "OnebusawaySDK::Internal::Type::BaseModel$"
43+
- "^\\s*[A-Z0-9_]+ = :"
44+
- "OnebusawaySDK::(Models|Resources|Test)::"
3945
Max: 110
4046

4147
Layout/MultilineArrayLineBreaks:
@@ -57,28 +63,60 @@ Layout/MultilineMethodParameterLineBreaks:
5763
# Prefer compact hash literals.
5864
Layout/SpaceInsideHashLiteralBraces:
5965
EnforcedStyle: no_space
66+
Exclude:
67+
- "**/*.rbi"
68+
69+
Lint/BooleanSymbol:
70+
Enabled: false
6071

6172
# This option occasionally mangles identifier names
6273
Lint/DeprecatedConstants:
6374
Exclude:
6475
- "**/*.rbi"
6576

77+
# We use pattern assertion in tests to ensure correctness.
78+
Lint/DuplicateMatchPattern:
79+
Exclude:
80+
- "test/**/*"
81+
6682
# Fairly useful in tests for pattern assertions.
6783
Lint/EmptyInPattern:
6884
Exclude:
6985
- "test/**/*"
7086

87+
Lint/MissingCopEnableDirective:
88+
Exclude:
89+
- "examples/**/*.rb"
90+
7191
Lint/MissingSuper:
7292
Exclude:
7393
- "**/*.rbi"
7494

95+
Lint/SymbolConversion:
96+
Exclude:
97+
- "**/*.rbi"
98+
7599
# Disabled for safety reasons, this option changes code semantics.
76100
Lint/UnusedMethodArgument:
77101
AutoCorrect: false
78102

103+
# This option is prone to causing accidental bugs.
104+
Lint/UselessAssignment:
105+
AutoCorrect: false
106+
Exclude:
107+
- "examples/**/*.rb"
108+
79109
Metrics/AbcSize:
80110
Enabled: false
81111

112+
Metrics/BlockLength:
113+
AllowedPatterns:
114+
- assert_pattern
115+
- type_alias
116+
- define_sorbet_constant!
117+
Exclude:
118+
- "**/*.rbi"
119+
82120
Metrics/ClassLength:
83121
Enabled: false
84122

@@ -88,17 +126,30 @@ Metrics/CyclomaticComplexity:
88126
Metrics/MethodLength:
89127
Enabled: false
90128

129+
Metrics/ModuleLength:
130+
Enabled: false
131+
91132
Metrics/ParameterLists:
92133
Enabled: false
93134

94135
Metrics/PerceivedComplexity:
95136
Enabled: false
96137

138+
Naming/AccessorMethodName:
139+
Enabled: false
140+
141+
# Need to preserve block identifier for documentation.
97142
Naming/BlockForwarding:
98-
Exclude:
99-
- "**/*.rbi"
143+
Enabled: false
144+
145+
# Underscores are generally useful for disambiguation.
146+
Naming/ClassAndModuleCamelCase:
147+
Enabled: false
100148

101149
Naming/MethodParameterName:
150+
Enabled: false
151+
152+
Naming/PredicateName:
102153
Exclude:
103154
- "**/*.rbi"
104155

@@ -121,6 +172,9 @@ Style/Alias:
121172
Style/AndOr:
122173
EnforcedStyle: always
123174

175+
Style/ArgumentsForwarding:
176+
Enabled: false
177+
124178
Style/BisectedAttrAccessor:
125179
Exclude:
126180
- "**/*.rbi"
@@ -130,6 +184,9 @@ Style/ClassAndModuleChildren:
130184
Exclude:
131185
- "test/**/*"
132186

187+
Style/CommentAnnotation:
188+
Enabled: false
189+
133190
# We should go back and add these docs, but ignore for now.
134191
Style/Documentation:
135192
Enabled: false
@@ -168,6 +225,9 @@ Style/MethodCallWithArgsParentheses:
168225
Exclude:
169226
- "**/*.gemspec"
170227

228+
Style/MultilineBlockChain:
229+
Enabled: false
230+
171231
# Perfectly fine.
172232
Style/MultipleComparison:
173233
Enabled: false
@@ -195,6 +255,10 @@ Style/RedundantInitialize:
195255
Exclude:
196256
- "**/*.rbi"
197257

258+
Style/RedundantParentheses:
259+
Exclude:
260+
- "**/*.rbi"
261+
198262
# Prefer slashes for regex literals.
199263
Style/RegexpLiteral:
200264
EnforcedStyle: slashes
@@ -203,6 +267,11 @@ Style/RegexpLiteral:
203267
Style/SafeNavigation:
204268
Enabled: false
205269

270+
Style/SignalException:
271+
Exclude:
272+
- Rakefile
273+
- "**/*.rake"
274+
206275
# We use these sparingly, where we anticipate future branches for the
207276
# inner conditional.
208277
Style/SoleNestedConditional:
@@ -215,3 +284,8 @@ Style/StringLiterals:
215284
# Prefer explicit symbols for clarity; you can search for `:the_symbol`.
216285
Style/SymbolArray:
217286
EnforcedStyle: brackets
287+
288+
# This option makes examples harder to read for ruby novices.
289+
Style/SymbolProc:
290+
Exclude:
291+
- "examples/**/*.rb"

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.0

.solargraph.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
max_files: 0
3+
include:
4+
- '*.gemspec'
5+
- 'Rakefile'
6+
- 'examples/**/*.rb'
7+
- 'lib/**/*.rb'
8+
- 'test/onebusaway_sdk/resource_namespaces.rb'
9+
- 'test/onebusaway_sdk/test_helper.rb'
10+
exclude:
11+
- 'rbi/**/*'

.stats.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
configured_endpoints: 29
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-6f08502508c8ad25235971add3124a1cde4f1c3ec705d5df455d750e0adcb90b.yml
3+
openapi_spec_hash: 84d082f35446d29c7db3cfcd259e9859
4+
config_hash: c7e112ec9853ad18fe92551ae0d97656

.yardopts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
--type-name-tag generic:Generic
2+
--default-return void
13
--markup markdown
4+
--markup-provider redcarpet
25
--exclude /rbi
36
--exclude /sig

0 commit comments

Comments
 (0)