ip_address
Version, currently 0.1.13 versions
- 0.1.3latestJun 5, 2018
- 0.1.2not indexedJul 5, 2018
- 0.1.1not indexedJul 5, 2018
github.com/chris-huxtable/ip_address.cr
Encapsulates IPv4 and IPv6 Addresses and Blocks
Nothing has been indexed for 0.1.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
ip_address:
github: chris-huxtable/ip_address.cr
version: ~> 0.1.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
ip_address.cr
Encapsulates IPv4 and IPv6 Addresses and Blocks.
Installation
Add this to your application's shard.yml:
dependencies:
ip_address:
github: chris-huxtable/ip_address.cr
Usage
require "ip_address"
Some samples:
address0 = IP["127.0.0.128"]
address1 = IP["10.0.0.0"]?
address2 = IP.new("127.0.0.0")
address3 = IP.new?("127.0.0.0")
address4 = IP["2001:0db8:123:4567:89ab:cdef:1234:5678"]
address5 = IP::Address["1::2"]?
address6 = IP.new("::1")
address7 = IP::Address.new?("::0")
block0 = IP["127.0.0.0/8"]
block1 = IP::Block["10.0.0.0/8"]?
block2 = IP.new("127.0.0.0/8")
block3 = IP::Block.new?("127.0.0.0/8")
block0 = IP["127.0.0.0/8"]
block1 = IP::Block["10.0.0.0/8"]?
block2 = IP.new("127.0.0.0/8")
block3 = IP::Block.new?("127.0.0.0/8")
loopback = IP::Address::IPv4.loopback
block0.includes?(address0)
Contributing
- Fork it ( https://github.com/chris-huxtable/ip_address.cr/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
Contributors
- Chris Huxtable - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.1- Tagged
- Jul 5, 2018
- Commit
b2763bc24a26- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/chris-huxtable/ip_address.cr
Metadata
- Created
- Aug 17, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 3