Skip to content

Commit

Permalink
Do not check for pessimistic operator on empty definitions
Browse files Browse the repository at this point in the history
Ignore operator when when no version requirement is specified
(i.e. `>= 0`).
  • Loading branch information
bobf committed Jan 26, 2020
1 parent fb3d4dd commit 008fbf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified doc/images/strong-versions-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/strong_versions/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def validate_version(operator, version)
return if path_source?
return if any_valid?

check_pessimistic(operator)
check_pessimistic(operator) unless version.zero?
check_valid_version(version)
end

Expand Down

0 comments on commit 008fbf2

Please sign in to comment.