Sha256: 66f130d15fbcf932fc466d860bfe687a0b94e79b46a444dab75fd1679294f9ab

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Hem
  VERSION = '1.1.0'

  class << self
    def require_version *requirements
      req = Gem::Requirement.new(*requirements)
      if req.satisfied_by?(Gem::Version.new(VERSION))
        return
      end

      raise HemVersionError.new(requirements)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hem-1.1.0 lib/hem/version.rb