Sha256: 3e677ee5a288401d0c6bbcf28cafae6e390c273f15dcac87edb2b673c52933ac

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Hem
  VERSION = '1.1.2'

  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.2 lib/hem/version.rb