DarkMatter.Deps (DarkMatter v1.1.4) View Source

Utils for working with deps.

Link to this section Summary

Functions

Check if a given dependency has a version matching the semversion.

Link to this section Functions

Link to this function

version_match?(dependency, semversion)

View Source

Specs

version_match?(atom(), String.t()) :: boolean()

Check if a given dependency has a version matching the semversion.

Examples

iex> version_match?(:dark_matter, ">= 0.0.0")
true

iex> version_match?(:dark_matter, "<= 0.0.0")
false