Sha256: c9fd68efdc700ccab68a44ef8b5ab7ffe61376847f1bc6b9952b78b0faa4655f
Contents?: true
Size: 867 Bytes
Versions: 3
Compression:
Stored size: 867 Bytes
Contents
# IpConverter Library to deal with IP Address conversions/manipulation, such as converting a string representation like "192.168.2.1" to its integer representation (3232236033) ## Installation Add this line to your application's Gemfile: gem 'ipconverter' And then execute: $ bundle Or install it yourself as: $ gem install ipconverter ## Usage ``` require 'ipconverter' IpConverter.str_to_int "192.168.2.1" => 3232236033 ``` str_to_int raises an error if the address is not valid: ``` IpConverter.str_to_int "192.168.2" => raises ArgumentError ``` ## Contributing 1. Fork it ( https://github.com/joshuawscott/ipconverter/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ipconverter-0.2.0 | README.md |
ipconverter-0.1.1 | README.md |
ipconverter-0.1.0 | README.md |