pinger
Version, currently 1.0.15 versions
- 1.1.2latestJul 14, 2021
- 1.1.1not indexedApr 2, 2022
- 1.1.0not indexedApr 2, 2022
- 1.0.1not indexedApr 2, 2022
- 1.0.0not indexedApr 2, 2022
github.com/spider-gazelle/pinger
Microlibrary to perform ping requests with Crystal Lang
Nothing has been indexed for 1.0.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:
pinger:
github: spider-gazelle/pinger
version: ~> 1.0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.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.
pinger
Microlib to generate ICMP ping requests.
Avoids sudo requirement of using raw sockets by shelling out to ping and thus pinger has an implicit dependency of ping.
Installation
-
Add the dependency to your
shard.yml:dependencies: pinger: github: spider-gazelle/pinger -
Run
shards install
Usage
require "pinger"
hostname = "www.duckduckgo.com"
pinger = Pinger.new(hostname, count: 3)
pinger.ping # => true / false
puts {
host: pinger.ip,
pingable: pinger.pingable,
warning: pinger.warning,
exception: pinger.exception
}
Or if you would like an error raised
require "pinger"
hostname = "www.doesnotexist.com"
pinger = Pinger.new(hostname, count: 3)
pinger.ping! # => self / raise pinger.exception
Todo
- [ ] utilise
Crystal::Config.default_targetrather than shelling out to uname
Contributing
- Fork it
- 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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.1- Tagged
- Apr 2, 2022
- Commit
5d15ee90a5db- Indexed
- not yet
Dependents
Repository
github.com/spider-gazelle/pinger
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 30, 2026
- Synced
- Sep 30, 2026
- Versions
- 5