Documentation
¶
Overview ¶
Package ruby implements the Ruby import extractor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepKey ¶
DepKey returns the gem name as it appears in a Gemfile / lockfile.
"rails" -> "rails" "active_support" -> "active_support" "./local" -> "" (relative) "./helpers" -> "" (relative)
Ruby's `require 'foo/bar'` form is common — `bar` is a sub-path inside the `foo` gem. depusage takes the first segment as the gem name.
func IsRelative ¶
IsRelative reports whether the path looks like a project-local reference rather than a gem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.