Sha256: c34746196af09477fee2802fe1a79d2e0b82f18537273c138b30497a8c4c80b4
Contents?: true
Size: 528 Bytes
Versions: 34
Compression:
Stored size: 528 Bytes
Contents
module Capistrano class VersionValidator def initialize(version) @version = version end def verify return self if match? raise "Capfile locked at #{version}, but #{current_version} is loaded" end private attr_reader :version def match? available =~ requested end def current_version VERSION end def available Gem::Dependency.new("cap", version) end def requested Gem::Dependency.new("cap", current_version) end end end
Version data entries
34 entries across 34 versions & 2 rubygems