Skip to content

Commit

Permalink
Update version implementation. Bump tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Jan 9, 2012
1 parent 1a3f3e9 commit 1b6a71a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/jqgrid_rails/version.rb
@@ -1,3 +1,17 @@
module JqGridRails
VERSION = '1.1.0'
class Version

attr_reader :major, :minor, :tiny

def initialize(version)
version = version.split('.')
@major, @minor, @tiny = [version[0].to_i, version[1].to_i, version[2].to_i]
end

def to_s
"#{@major}.#{@minor}.#{@tiny}"
end
end

VERSION = Version.new('1.1.1')
end

0 comments on commit 1b6a71a

Please sign in to comment.