A library that posts messages to the remote logging service apphunk.com.
Use the Apphunk.config method to configure the behaviour of the Gem and its outgoing messages. (Note: Each option can be overriden by Apphunk.post’s option parameter.) If the Gem is used as part of a Rails application, the configuration should go to config/initializers/apphunk.rb.
Apphunk.config do |config| config.token = "secret_project_token" end
For more information about the available configuration options, check the Rdoc: rdoc.info/projects/apphunk/apphunk (Apphunk::Config class).
Sending messages is as easy as:
Apphunk.post("Do you like my tags?", :tags => 'hello, world, messages')
As noted above, each configuration option (Apphunk::Config) can be explicitly specified while posting a message:
Apphunk.post("Posting to another project", :token => 'another_projects_token')
More details: rdoc.info/projects/apphunk/apphunk (Apphunk class)
Note on Patches/Pull Requests
Fork the project.
Make your feature addition or bug fix.
Add specs for it. This is important so I don't break it in a future version unintentionally.
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
Send me a pull request. Get bonus points for topic branches.
Copyright © 2009 Andreas Wolff. See LICENSE for details.