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

Revise path DSL #421

Merged
merged 1 commit into from
Aug 29, 2021
Merged

Revise path DSL #421

merged 1 commit into from
Aug 29, 2021

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Aug 28, 2021

The vendor DSL was broken. This PR introduces new stdlib_path DSL to customize core_root and stdlib_root with keyword argument.

target(:app) do
  stdlib_path(
    core_root: "vendor/rbs/core",              # Load core RBS from vendor/rbs/core/*.rbs
    stdlib_root: nil                           # Load stdlib RBS from default place
  )
end

target(:test) do
  stdlib_path(
    core_root: false,        # Skip loading core RBSs
    stdlib_root: false       # Skip loading stdlib RBSs
  )

  signature "sig"            # You have to write RBS files of core classes in "sig" directory
end

@soutaro soutaro merged commit c47a969 into master Aug 29, 2021
@soutaro soutaro deleted the dsl-paths branch August 29, 2021 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant