diff options
author | elijah <elijah@riseup.net> | 2015-05-05 14:44:03 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-05-05 14:44:03 -0700 |
commit | 4b8d17980d2948c5c406ec6c2106123266c4a10b (patch) | |
tree | 82e39de220c70775ca8bd982937d7e749e22be98 | |
parent | 142468636189f36ee542245856ef4ca84bda0509 (diff) |
fix bug with using Gem::Version instead of Versionomy
-rw-r--r-- | lib/leap/platform.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/leap/platform.rb b/lib/leap/platform.rb index 0fdb312..36a13f8 100644 --- a/lib/leap/platform.rb +++ b/lib/leap/platform.rb @@ -66,10 +66,10 @@ module Leap end def major_version - if @version.major == 0 - "#{@version.major}.#{@version.minor}" + if @version.segments.first == 0 + @version.segments[0..1].join('.') else - @version.major + @version.segments.first end end |