Skip to content

Tags: Shopify/sorbet

Tags

test-release-artifacts

Toggle test-release-artifacts's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
remove `SendAndBlockLink::duplicate()` (sorbet#8424)

0.5.5939.20201007145643-2e0d80cae

Toggle 0.5.5939.20201007145643-2e0d80cae's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Allow extend T::Sig at the top level (sorbet#3491)

* Allow extend T::Sig at the top level

This is particularly handy for scripts, where you just want to write
everything at the top-level of a file.

Sorbet already type checks using `extend T::Sig` and `sig` at the top
level of a file correctly, so it's annoying to have it not work when I
copy/paste an example into a file and run it.

I very much don't want to encourage that people do this except in small
files. In large projects, if there are lots of top-level defined
methods, Sorbet will think they are all defined and available because it
has no way to know which files are the entrypoints to a program and will
thus never be run at the same time as other files.

But for small projects I think this is pretty nice. Especially one-off
scripts.

* Add a test

0.5.5938.20201007110330-9b30daec4

Toggle 0.5.5938.20201007110330-9b30daec4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Support class methods in symbol search (sorbet#3489)

* Support class methods in symbol search

* Fix test

* Cleanup package output

* Update core/Symbols.cc

Co-authored-by: John Vilk <[email protected]>

Co-authored-by: Kevin Miller <[email protected]>
Co-authored-by: John Vilk <[email protected]>

0.5.5937.20201006154902-ff5e3c3f6

Toggle 0.5.5937.20201006154902-ff5e3c3f6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add T::Enum#each_values, take 2 (sorbet#3487)

* Revert "Revert "Add T::Enum.each_values (sorbet#3418)" (sorbet#3481)"

This reverts commit 53b63a3.

* add enum.rbi signature

0.5.5936.20201006141311-fffb9b62d

Toggle 0.5.5936.20201006141311-fffb9b62d's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Make VSCode symbol search work for nested ruby (sorbet#3475)

* Make VSCode symbol search work for nested ruby

VSCode has its own internal ranking of returned search results that
compares the search string against the returned symbol name (ignoring
the container). Part of this symbol search short-circuits if the query
string is not a subsequence of the result string. Therefore `Foo::Bar`
query will short-circuit on the result `Bar` since `Foo::` does not
appear in `Bar`. To work around this issue, return the full name as the
name to appease VSCode.

* Update tests

Co-authored-by: Kevin Miller <[email protected]>

0.5.5935.20201005212555-53b63a3ca

Toggle 0.5.5935.20201005212555-53b63a3ca's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Revert "Add T::Enum.each_values (sorbet#3418)" (sorbet#3481)

This reverts commit 4882e3f.

0.5.5934.20201005180316-4882e3fd9

Toggle 0.5.5934.20201005180316-4882e3fd9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add T::Enum.each_values (sorbet#3418)

* Add T::Enum.each_values

* Add test and fix block handling

0.5.5933.20201002175137-04ef993fe

Toggle 0.5.5933.20201002175137-04ef993fe's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add package support to `T::NonForcingConstants` (sorbet#3470)

* Add helper method to mangle a package name in the same way as packager pass

* Update RBI to know about third optional arg to non_forcing_is_a

* Implement support for packaged non_forcing_is_a in resolver

* Add test case

* Update exps

* Add stubbed-out runtime implementation

* Handle `package` being a keyword arg

* Update exp files

* Also return if the package literal is not a string

* format_cxx

* Fix runtime behavior... for now

* Remove expectation test for now

* Change to lookupMangledPackageName

* Add test to exercise non-existent package and fix error message printing

* Just else

* Add a comment too

* Share the comment

* Add todo comment

0.5.5932.20201002151813-f76404fa2

Toggle 0.5.5932.20201002151813-f76404fa2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
update_testdata_exp.sh should update index-tree files (sorbet#3476)

0.5.5931.20201002102717-00a0061dd

Toggle 0.5.5931.20201002102717-00a0061dd's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add missing RBI definitions for RubyVM's AbstractSyntaxTree and Node (s…

…orbet#3440)

* Add missing RBI definitions for RubyVM::AbstractSyntaxTree and RubyVM::AbstractSyntaxTree::Node

Signed-off-by: Alexandre Terrasa <[email protected]>

* Update expected output for hidden definition tests

Signed-off-by: Alexandre Terrasa <[email protected]>