lib/certmeister/version.rb in certmeister-0.2.3 vs lib/certmeister/version.rb in certmeister-0.3.0

- old
+ new

@@ -1,7 +1,24 @@ -require 'semver' +begin -module Certmeister + require 'semver' - VERSION = SemVer.find.format("%M.%m.%p%s") unless defined?(VERSION) - + 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 + +