README.md in bump-0.3.4 vs README.md in bump-0.3.5
- old
+ new
@@ -24,19 +24,26 @@
```
rake bump:patch
rake bump:current
+### Ruby
+```Ruby
+require "bump"
+Bump::Bump.run("patch") # -> version changed
+Bump::Bump.current # -> "1.2.3"
+```
+
# Supported locations
- VERSION file with "1.2.3"
- - gemspec with `gem.version = "1.2.3"`
+ - gemspec with `gem.version = "1.2.3"` or `Gem:Specification.new "gem-name", "1.2.3" do`
- lib/**/version.rb file with `VERSION = "1.2.3"`
# Todo
- Handle options properly
- `VERSION = "1.2.3"` in lib/*.rb
- - gemspec with `Gem::Specification.new "gem-name", "1.2.3" do`
+ - Build new gem version: gem build xxx.gemspec
# Author
Gregory<br/>
License: MIT<br/>
[![Build Status](https://travis-ci.org/gregorym/bump.png)](https://travis-ci.org/gregorym/bump)