Sha256: 27b3e0d25eddfcdb0fea7dc419f47baf2731818015f12210cd5036610dc4b441

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'json'

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

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

    NAME   = 'sensu-plugins-rspec'
    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-rspec-0.0.1.alpha.4 lib/sensu-plugins-rspec/version.rb