Method: Combustion::VersionGate#call
- Defined in:
- lib/combustion/version_gate.rb
#call(*constraints) ⇒ Object
Using matches_spec? instead of match? because the former returns true even when the spec has an appropriate pre-release version.
17 18 19 20 21 |
# File 'lib/combustion/version_gate.rb', line 17 def call(*constraints) return false if spec.nil? dependency(*constraints).matches_spec?(spec) end |