Sha256: 52304a92c5b7cf02b48257a680799e6ebb8e022401b0275aa4a3ef45e019c6e2
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
D = Steep::Diagnostic target :app do check "lib" ignore "lib/steep/shims" signature "sig" collection_config "rbs_collection.steep.yaml" configure_code_diagnostics(D::Ruby.strict) do |hash| end FileUtils.mkpath("tmp") tmp_rbs_dir = File.join("tmp", "rbs-sig") definition = Bundler::Definition.build(Pathname("Gemfile"), Pathname("Gemfile.lock"), nil) rbs_dep = definition.dependencies.find {|dep| dep.name == "rbs" } if (source = rbs_dep&.source).is_a?(Bundler::Source::Path) unless Pathname(tmp_rbs_dir).exist? FileUtils.ln_s(Pathname.pwd + source.path + "sig", tmp_rbs_dir, force: true) end signature tmp_rbs_dir else FileUtils.rm_f(tmp_rbs_dir) library "rbs" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
steep-1.9.0.dev.1 | Steepfile |