Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/dependabot-tapioca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update Dependabot RBIs

# Dependency bumps can change gem APIs, so regenerate the Sorbet gem RBIs
# (`bundle exec tapioca gems`) and push the result back onto the Dependabot PR.
on:
pull_request:

permissions:
contents: write

jobs:
tapioca-gems:
name: Regenerate gem RBIs
if: startsWith(github.head_ref, 'dependabot/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.head_ref }}
- uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Regenerate gem RBIs
run: bundle exec tapioca gems
- name: Commit, push, and type-check updated RBIs
run: |
if [[ -z "$(git status --porcelain sorbet/rbi)" ]]; then
echo "No RBI changes to commit."
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add sorbet/rbi
git commit -m "Regenerate gem RBIs [dependabot skip]"
git push
# The push above uses GITHUB_TOKEN, which doesn't re-trigger CI.
# RBI changes only affect Sorbet, so type-check them here instead.
bundle exec srb tc
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
source 'https://rubygems.org'

gemspec

# Pinned to main for the not-yet-released `Sorbet/RedundantTLet` and
# `Sorbet/RedundantTLetForLiteral` cops (see Shopify/rubocop-sorbet#372 and #367).
gem 'rubocop-sorbet', github: 'Shopify/rubocop-sorbet', ref: '7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd'
96 changes: 40 additions & 56 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
GIT
remote: https://github.com/Shopify/rubocop-sorbet.git
revision: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd
ref: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd
specs:
rubocop-sorbet (0.12.0)
lint_roller
rubocop (>= 1.75.2)

PATH
remote: .
specs:
Expand All @@ -18,23 +9,23 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (8.1.2)
actionview (= 8.1.2)
activesupport (= 8.1.2)
actionpack (8.1.3)
actionview (= 8.1.3)
activesupport (= 8.1.3)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
actionview (8.1.2)
activesupport (= 8.1.2)
actionview (8.1.3)
activesupport (= 8.1.3)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (8.1.2)
activesupport (8.1.3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
Expand All @@ -47,8 +38,6 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.8.9)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3)
base64 (0.3.0)
benchmark (0.5.0)
Expand All @@ -59,7 +48,7 @@ GEM
erubi (~> 1.4)
parser (>= 2.4)
smart_properties
bigdecimal (4.0.1)
bigdecimal (4.1.2)
builder (3.3.0)
coderay (1.1.3)
concurrent-ruby (1.3.6)
Expand All @@ -78,44 +67,39 @@ GEM
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.18.1)
json-schema (6.1.0)
addressable (~> 2.8)
bigdecimal (>= 3.1, < 5)
json (2.19.7)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
logger (1.7.0)
loofah (2.25.0)
loofah (2.25.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mcp (0.8.0)
json-schema (>= 4.1)
method_source (1.1.0)
minitest (6.0.2)
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
mocha (3.0.2)
mocha (3.1.0)
ruby2_keywords (>= 0.0.5)
netrc (0.11.0)
nokogiri (1.19.1-arm64-darwin)
nokogiri (1.19.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.19.1-x86_64-darwin)
nokogiri (1.19.3-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.19.1-x86_64-linux-gnu)
nokogiri (1.19.3-x86_64-linux-gnu)
racc (~> 1.4)
packwerk (3.2.3)
packwerk (3.3.0)
activesupport (>= 6.0)
ast
benchmark
better_html
bundler
constant_resolver (>= 0.3)
parallel
parallel (< 2)
parser
prism (>= 0.25.0)
sorbet-runtime (>= 0.5.9914)
prism (>= 1.4.0)
zeitwerk (>= 2.6.1)
parallel (1.28.0)
parser (3.3.10.2)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
pp (0.6.3)
Expand All @@ -129,7 +113,6 @@ GEM
psych (5.3.1)
date
stringio
public_suffix (7.0.5)
racc (1.8.1)
rack (3.2.5)
rack-session (2.1.1)
Expand All @@ -146,17 +129,17 @@ GEM
rails-html-sanitizer (1.7.0)
loofah (~> 2.25)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
railties (8.1.2)
actionpack (= 8.1.2)
activesupport (= 8.1.2)
railties (8.1.3)
actionpack (= 8.1.3)
activesupport (= 8.1.3)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
tsort (>= 0.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.3.1)
rake (13.4.2)
rbi (0.3.12)
prism (~> 1.0)
rbs (>= 4.0.1)
Expand All @@ -168,27 +151,26 @@ GEM
erb
psych (>= 4.0.0)
tsort
regexp_parser (2.11.3)
regexp_parser (2.12.0)
reline (0.6.3)
io-console (~> 0.5)
require-hooks (0.4.0)
rexml (3.4.4)
rubocop (1.85.1)
rubocop (1.86.2)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
mcp (~> 0.6)
parallel (~> 1.10)
parallel (>= 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-gusto (10.6.0)
rubocop-gusto (10.9.3)
lint_roller
rubocop (>= 1.76)
rubocop-performance
Expand All @@ -206,21 +188,24 @@ GEM
rubocop-rspec (3.9.0)
lint_roller (~> 1.1)
rubocop (~> 1.81)
rubocop-sorbet (0.12.0)
lint_roller
rubocop (>= 1.75.2)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubydex (0.2.5-arm64-darwin)
rubydex (0.2.5-x86_64-darwin)
rubydex (0.2.5-x86_64-linux)
securerandom (0.4.1)
smart_properties (1.17.0)
sorbet (0.6.13258)
sorbet-static (= 0.6.13258)
sorbet-runtime (0.6.13258)
sorbet-static (0.6.13258-universal-darwin)
sorbet-static (0.6.13258-x86_64-linux)
sorbet-static-and-runtime (0.6.13258)
sorbet (= 0.6.13258)
sorbet-runtime (= 0.6.13258)
sorbet (0.6.13261)
sorbet-static (= 0.6.13261)
sorbet-runtime (0.6.13261)
sorbet-static (0.6.13261-universal-darwin)
sorbet-static (0.6.13261-x86_64-linux)
sorbet-static-and-runtime (0.6.13261)
sorbet (= 0.6.13261)
sorbet-runtime (= 0.6.13261)
spoom (1.7.16)
erubi (>= 1.10.0)
prism (>= 0.28.0)
Expand Down Expand Up @@ -251,7 +236,7 @@ GEM
unicode-emoji (4.2.0)
uri (1.1.1)
useragent (0.16.11)
zeitwerk (2.7.5)
zeitwerk (2.8.2)

PLATFORMS
arm64-darwin
Expand All @@ -266,7 +251,6 @@ DEPENDENCIES
rake
rubocop
rubocop-gusto
rubocop-sorbet!
sorbet
tapioca

Expand Down
Loading