Skip to content

Commit

Permalink
chore: install sorbet
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Sep 27, 2024
1 parent 44bbfa9 commit c94dbbb
Show file tree
Hide file tree
Showing 284 changed files with 485,337 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/node_modules
.turbo/
.turbo/

**/.DS_Store
4 changes: 2 additions & 2 deletions apps/govquests-api/rails_app/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ group :development, :test do
gem "rubocop-rails-omakase", require: false

# Types
# gem "sorbet"
# gem "tapioca"
gem "sorbet"
gem "tapioca"
end

group :test do
Expand Down
33 changes: 32 additions & 1 deletion apps/govquests-api/rails_app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ GEM
net-smtp (0.5.0)
net-protocol
net-ssh (7.2.3)
netrc (0.11.0)
nio4r (2.7.3)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
Expand All @@ -250,6 +251,7 @@ GEM
parser (3.3.5.0)
ast (~> 2.4.1)
racc
prism (0.30.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -300,6 +302,9 @@ GEM
ruby_event_store-active_record (= 2.15.0)
rainbow (3.1.1)
rake (13.2.1)
rbi (0.1.13)
prism (>= 0.18.0, < 1.0.0)
sorbet-runtime (>= 0.5.9204)
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
Expand Down Expand Up @@ -360,7 +365,18 @@ GEM
fugit (~> 1.11.0)
railties (>= 7.1)
thor (~> 1.3.1)
sorbet-runtime (0.5.11585)
sorbet (0.5.11463)
sorbet-static (= 0.5.11463)
sorbet-runtime (0.5.11463)
sorbet-static (0.5.11463-universal-darwin)
sorbet-static-and-runtime (0.5.11463)
sorbet (= 0.5.11463)
sorbet-runtime (= 0.5.11463)
spoom (1.3.2)
erubi (>= 1.10.0)
prism (>= 0.19.0)
sorbet-static-and-runtime (>= 0.5.10187)
thor (>= 0.19.2)
sqlite3 (2.1.0-aarch64-linux-gnu)
sqlite3 (2.1.0-aarch64-linux-musl)
sqlite3 (2.1.0-arm-linux-gnu)
Expand All @@ -378,6 +394,15 @@ GEM
net-ssh (>= 2.8.0)
ostruct
stringio (3.1.1)
tapioca (0.15.0)
bundler (>= 2.2.25)
netrc (>= 0.11.0)
parallel (>= 1.21.0)
rbi (>= 0.1.4, < 0.2)
sorbet-static-and-runtime (>= 0.5.11087)
spoom (>= 1.2.0)
thor (>= 1.2.0)
yard-sorbet
thor (1.3.2)
thruster (0.1.8)
thruster (0.1.8-aarch64-linux)
Expand All @@ -397,6 +422,10 @@ GEM
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
yard (0.9.36)
yard-sorbet (0.9.0)
sorbet-runtime
yard
zeitwerk (2.6.18)

PLATFORMS
Expand Down Expand Up @@ -437,7 +466,9 @@ DEPENDENCIES
rubocop-rake
solid_cache
solid_queue
sorbet
sqlite3 (>= 2.1)
tapioca
thruster
tzinfo-data

Expand Down
5 changes: 4 additions & 1 deletion apps/govquests-api/rails_app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ test:
lint:
@bundle exec rubocop -A

.PHONY: install test
sorbet:
@bundle exec srb tc

.PHONY: install test lint sorbet
27 changes: 27 additions & 0 deletions apps/govquests-api/rails_app/bin/tapioca
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'tapioca' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("tapioca", "tapioca")
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@
end

Configuration.new.call(Rails.configuration.event_store, Rails.configuration.command_bus)
puts " JOaNA"
end
5 changes: 5 additions & 0 deletions apps/govquests-api/rails_app/sorbet/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--dir
.
--ignore=tmp/
--ignore=vendor/
--suppress-payload-superclass-redefinition-for=Reline::ANSI
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.rbi linguist-vendored=true

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c94dbbb

Please sign in to comment.