lib/marvin.rb in marvin-0.8.1 vs lib/marvin.rb in marvin-0.8.2
- old
+ new
@@ -3,11 +3,11 @@
require 'perennial'
module Marvin
include Perennial
- VERSION = [0, 8, 1, 0]
+ VERSION = [0, 8, 2, 0]
# Client
autoload :TestClient, 'marvin/test_client'
# Console of DOOM.
autoload :Console, 'marvin/console'
@@ -37,11 +37,15 @@
end
end
end
- def self.version(include_minor = false)
- VERSION[0, (include_minor ? 4 : 3)].join(".")
+ # Returns a string of the current version,
+ # optionally including a build number.
+ # @param [Boolean] include_build include a build version in the string
+ def self.version(include_build = nil)
+ include_build = VERSION[3].to_i > 0 if include_build.nil?
+ VERSION[0, (include_build ? 4 : 3)].join(".")
end
has_library :util, :abstract_client, :abstract_parser, :irc, :exception_tracker
extends_library :settings
\ No newline at end of file