aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery/blog/version.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-04-25 13:43:14 +1200
committerPhilip Arndt <parndt@gmail.com>2011-04-25 13:43:14 +1200
commit1f72e3d90a1e8678de4a4b658b6675d2597d857c (patch)
tree8eeca6b19459d6adbedb40503ff2fed8c5468d91 /lib/refinery/blog/version.rb
parent5e69fdac1778ffb9f6a188e9b5cc2e56bd2febf8 (diff)
downloadrefinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.tar.gz
refinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.tar.bz2
refinerycms-blog-1f72e3d90a1e8678de4a4b658b6675d2597d857c.zip
Made version code more accessible and fixed up lib/gemspec.rb
Diffstat (limited to 'lib/refinery/blog/version.rb')
-rw-r--r--lib/refinery/blog/version.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/refinery/blog/version.rb b/lib/refinery/blog/version.rb
new file mode 100644
index 0000000..6365f94
--- /dev/null
+++ b/lib/refinery/blog/version.rb
@@ -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 \ No newline at end of file