Sha256: d920387611ad3b0d4e02bd8eb74653dd4c3d1f8c6cd618badab11cf9124e0e94

Contents?: true

Size: 897 Bytes

Versions: 21

Compression:

Stored size: 897 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

  library(
    "rdoc",
    "monitor",
    "tsort",
    "uri",
    'yaml',
    'pstore',
    'singleton',
    'shellwords',
    'find',
    'digest',
    "optparse",
  )
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
steep-1.5.1 Steepfile