Sha256: 61489c1d02e01996b4eff14aeb5a1d50a61265fcfe5e054397f2016a8f6f3a2e

Contents?: true

Size: 982 Bytes

Versions: 7

Compression:

Stored size: 982 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 do |hash|             # You can setup everything yourself
    hash[D::Ruby::MethodDefinitionMissing] = :hint
  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

7 entries across 7 versions & 1 rubygems

Version Path
steep-1.5.0 Steepfile
steep-1.5.0.pre.6 Steepfile
steep-1.5.0.pre.5 Steepfile
steep-1.5.0.pre.4 Steepfile
steep-1.5.0.pre.3 Steepfile
steep-1.5.0.pre.2 Steepfile
steep-1.5.0.pre.1 Steepfile