Sha256: fb9ce0836c229d9efa61aeb0242a1aa0f0ad9e9a4fd61e4bc3b03f689564a997

Contents?: true

Size: 210 Bytes

Versions: 2

Compression:

Stored size: 210 Bytes

Contents

module Herbert
  module Utils
    # Assert v<major>.<minor>.<etc> tags
    def self.version
      version = `git describe --long`.strip
      version[0] = '' if version[0] == 'v'
      version
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
herbert-0.0.2 lib/herbert/Utils.rb
herbert-0.0.1 lib/herbert/Utils.rb