Sha256: 106764a29f30bdec21528a2be07efa21231835dd1f061f5c5645e32b4a027b6b

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

module Logirel
  begin
    require 'semver'
    begin
      VERSION = SemVer.find.format "%M.%m.%p"
    rescue SemVerMissingError
      VERSION = "0.0.x"
    end

    class Version < SemVer
      def parse_numeric(str)
        str.scan(/(\d{1,5}).?/).flatten.collect{|x| x.to_i}
      end
    end

  rescue LoadError
    puts 'First time installing, eh? Just run "bundle install"! (unless this is you running it right now!)'
    VERSION = "0.0.x"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
logirel-0.0.15 lib/logirel/version.rb
logirel-0.0.14 lib/logirel/version.rb