Sha256: 824fe019d7eb7cadee97c1386d6b48e40c80df230ccca0dca0e338113c1bfd67

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

require_relative 'error'
require_relative 'api'

module VersionGem
  # This is a very *basic* version parser. Others could be built based on this pattern!
  module Basic
    def self.extended(base)
      raise Error, "VERSION must be defined before 'extend #{name}'" unless defined?(base::VERSION)

      base.extend Api
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
version_gem-1.1.2 lib/version_gem/basic.rb
version_gem-1.1.1 lib/version_gem/basic.rb
version_gem-1.1.0 lib/version_gem/basic.rb
version_gem-1.0.2 lib/version_gem/basic.rb
version_gem-1.0.1 lib/version_gem/basic.rb
version_gem-1.0.0 lib/version_gem/basic.rb