Made version code more accessible and fixed up lib/gemspec.rb
This commit is contained in:
parent
5e69fdac17
commit
1f72e3d90a
4 changed files with 42 additions and 14 deletions
17
lib/refinery/blog/version.rb
Normal file
17
lib/refinery/blog/version.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue