require 'semver'

module Certmeister

  VERSION = SemVer.find.format("%M.%m.%p%s") unless defined?(VERSION)
  
end

begin

  require 'semver'

  module Certmeister

    VERSION = SemVer.find.format("%M.%m.%p%s") unless defined?(VERSION)
    
  end

rescue LoadError

  $stderr.puts "warning: ignoring missing semver gem for initial bundle"
  $stderr.puts "warning: please run bundle again to fix certmeister version number"

  module Certmeister

    VERSION = '0'

  end

end

    

Work around chick-egg problem with semver2
Work around chick-egg problem with semver2

Our gemspec uses semver2 to get our version number. Bundler uses our
gemspec to get our version unumber.  We use bundler to install semver2.
