lib/headdesk/versions.rb in headdesk-0.10.0 vs lib/headdesk/versions.rb in headdesk-0.11.0
- old
+ new
@@ -5,9 +5,13 @@
module Headdesk
#
# Version information from RubyGems.org
#
class Versions
+ def self.version
+ Gem::Version.new(VERSION)
+ end
+
def self.versions
Gems.versions('headdesk').collect do |version|
Gem::Version.new(version['number'])
rescue StandardError
nil