Rakefile in twilio-ruby-5.0.0.rc26 vs Rakefile in twilio-ruby-5.0.0
- old
+ new
@@ -20,18 +20,14 @@
version = Twilio::VERSION
version_parts = version.split('.')
increment = version_parts.pop
increment_prefix = increment.split(/\d/)[0]
- if increment_prefix
- increment = increment[increment_prefix.length..-1]
- end
+ increment = increment[increment_prefix.length..-1] if increment_prefix
increment = increment.to_i + 1
- if increment_prefix
- increment = "#{increment_prefix}#{increment}"
- end
+ increment = "#{increment_prefix}#{increment}" if increment_prefix
version = [*version_parts, increment].join('.')
else
version = args.version
end
@@ -63,6 +59,6 @@
# Tag the branch
`git tag #{version}`
# Push the tags
`git push --tags`
-end
\ No newline at end of file
+end