-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Jones
committed
Jun 4, 2015
1 parent
17727dc
commit bd3d389
Showing
3 changed files
with
9 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
|
||
require 'sensu-plugins-xmpp/version' | ||
|
||
# Load the defaults | ||
|
||
# | ||
# Default class | ||
# | ||
module SensuPluginsXmpp | ||
class << self | ||
end | ||
|
||
class << self | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
require 'json' | ||
|
||
# encoding: utf-8 | ||
module SensuPluginsXmpp | ||
# This defines the version of the gem | ||
module Version | ||
MAJOR = 0 | ||
MINOR = 0 | ||
PATCH = 1 | ||
PATCH = 2 | ||
|
||
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.') | ||
|
||
NAME = 'sensu-plugins-xmpp' | ||
BANNER = "#{NAME} v%s" | ||
|
||
module_function | ||
|
||
def version | ||
format(BANNER, VER_STRING) | ||
end | ||
|
||
def json_version | ||
{ | ||
'version' => VER_STRING | ||
}.to_json | ||
end | ||
end | ||
end |