lib/rake/funnel/support/version_info.rb in rake-funnel-0.4.0.pre vs lib/rake/funnel/support/version_info.rb in rake-funnel-0.5.0.pre

- old
+ new

@@ -65,24 +65,21 @@ alpha_version = version.sub(/^[\d\.]*/, '') semver = [ numeric_version, alpha_version, - pre(context), + pre(context) ].join [ semver, metadata(context) ].compact.join('+') end def pre(context) pre = context.fetch(:metadata, {})[:pre] - - if pre && pre.to_s !~ /^-/ - pre = "-#{pre}" - end + pre = "-#{pre}" if pre && pre.to_s !~ /^-/ pre end def metadata(context)