Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Last active January 4, 2016 05:39
Show Gist options
  • Save ccapndave/8577089 to your computer and use it in GitHub Desktop.
Save ccapndave/8577089 to your computer and use it in GitHub Desktop.
version = "1.0.1"
# Can I do this in a neat one-liner?
parts = version.split('.')
parts[2] = parts[2].to_i.next
version = parts.join('.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment