Project

apphunk

0.0
No commit activity in last 3 years
No release in over 3 years
Apphunk is a library that allows your applications to send messages to Apphunk.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9
>= 0

Runtime

>= 0
>= 0.2.0
 Project Readme

apphunk¶ ↑

A library that posts messages to the remote logging service apphunk.com.

Setup¶ ↑

Rails 3.x¶ ↑

gem "apphunk"

Rails 2.x¶ ↑

config.gem "apphunk"

Pure Ruby¶ ↑

require 'apphunk'

Configuration¶ ↑

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).

Usage¶ ↑

Sending messages is as easy as:

Apphunk.post("Hello World")

or

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.