Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize sorbet #8012

Merged
merged 3 commits into from
Sep 12, 2023
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
27 changes: 27 additions & 0 deletions 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")
2 changes: 1 addition & 1 deletion bundler/spec/dependabot/bundler/file_updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@

stub_const(
"#{described_class}::RubyRequirementSetter::RUBY_VERSIONS",
described_class::RubyRequirementSetter::RUBY_VERSIONS + ["99.0.0"]
Dependabot::Bundler::FileUpdater::RubyRequirementSetter::RUBY_VERSIONS + ["99.0.0"]
)
end

Expand Down
2 changes: 1 addition & 1 deletion common/spec/dependabot/dependency_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
let(:file) do
described_class.new(
name: "example.gem",
content_encoding: described_class::ContentEncoding::BASE64,
content_encoding: Dependabot::DependencyFile::ContentEncoding::BASE64,
content: "YWJj\n"
)
end
Expand Down
5 changes: 5 additions & 0 deletions sorbet/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--dir
.
--ignore=tmp/
--ignore=vendor/
--ignore=updater/
17 changes: 17 additions & 0 deletions sorbet/rbi/annotations/faraday.rbi

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

269 changes: 269 additions & 0 deletions sorbet/rbi/annotations/rainbow.rbi

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

9 changes: 9 additions & 0 deletions sorbet/rbi/annotations/webmock.rbi

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

Loading