Skip to content

Revise path DSL#421

Merged
soutaro merged 1 commit intomasterfrom
dsl-paths
Aug 29, 2021
Merged

Revise path DSL#421
soutaro merged 1 commit intomasterfrom
dsl-paths

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