Made version code more accessible and fixed up lib/gemspec.rb

This commit is contained in:
Philip Arndt 2011-04-25 13:43:14 +12:00
parent 5e69fdac17
commit 1f72e3d90a
4 changed files with 42 additions and 14 deletions

View file

@ -0,0 +1,17 @@
module Refinery
module Blog
class Version
@major = 1
@minor = 4
@tiny = 0
class << self
attr_reader :major, :minor, :tiny
def to_s
[@major, @minor, @tiny].compact.join('.')
end
end
end
end
end