https://github.com/johnantoni/plugin.pingify
plugin to handle pinging to google and pingomatic
https://github.com/johnantoni/plugin.pingify
Last synced: over 1 year ago
JSON representation
plugin to handle pinging to google and pingomatic
- Host: GitHub
- URL: https://github.com/johnantoni/plugin.pingify
- Owner: johnantoni
- License: mit
- Created: 2009-05-11T02:41:24.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2009-06-11T12:26:47.000Z (about 17 years ago)
- Last Synced: 2025-02-05T19:08:53.567Z (over 1 year ago)
- Language: Ruby
- Homepage: http://www.johnantoni.com
- Size: 74.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
rails plugin to handle:
pinging google regarding sitemap
pinging pingomatic about new posts
pinging uri's & returning true if alive, false if not
install gems
------------
to install required gems run
rake pingify:install
only requires 'net-ping'
how-to
------
init the class object with
@p = Pingify.new
then use
@p.ping('www.google.com')
docs
----
notify_pingomatic
# ping pingomatic
# returns...
# => nothing, simply sends
# notes...
# => setup only to ping in production mode
notify_sitemap
# ping sitemap
# returns...
# => nothing, simply sends
# notes...
# => setup only to ping in production mode
ping
# ping uri
# returns..
# => nil (no uri specified)
# => flase (uri did not respond, down)
# => true (uri responded, alive)
# notes..
# => uses local machine's ping program to send ping
notes
-----
include ActionController::UrlWriter
# only needed for notify_pingomatic + notify_sitemap
john griffiths / www.johnantoni.com