lib/renuo/cli/app/renuo_version.rb in renuo-cli-4.5.0 vs lib/renuo/cli/app/renuo_version.rb in renuo-cli-4.5.1

- old
+ new

@@ -5,11 +5,11 @@ SEGMENTS = %w[major minor patch].freeze def self.create(str) raise "Invalid segments (#{str} =~ #{SEMVER_SCHEMA})" unless SEMVER_SCHEMA.match?(str) - new(*str.split('.')) + new(*str.split(".")) end attr_reader :segments def initialize(major, minor, patch, prerelease = nil) @@ -28,10 +28,10 @@ def prerelease? @segments.length > 3 end def to_s - @segments.join('.') + @segments.join(".") end private def bump_major