Sha256: ccd1e2dcd53459c76998057fb7b9097f7affcf3e0ded631b8652f91347736d5c

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require 'json'

# encoding: utf-8
module SensuPluginsTwemproxy
  # This defines the version of the gem
  module Version
    MAJOR = 0
    MINOR = 0
    PATCH = 1

    VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')

    NAME   = 'sensu-plugins-twemproxy'
    BANNER = "#{NAME} v%s"

    module_function

    def version
      format(BANNER, VER_STRING)
    end

    def json_version
      {
        'version' => VER_STRING
      }.to_json
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-twemproxy-0.0.1 lib/sensu-plugins-twemproxy/version.rb