Liferaft
Liferaft parses Apple build numbers, like 6D1002
.
Usage
v = Version.new('6D1002')
puts "#{v.major}.#{v.minor}.#{v.patch} Build #{v.build}"
## => '6.3.1 Build 2'
Installation
Add this line to your application's Gemfile:
gem 'liferaft'
And then execute:
$ bundle
Or install it yourself as:
$ gem install liferaft
Contributing
- Fork it ( https://github.com/neonichu/liferaft/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request