Sha256: f8f62a7161c3217f09bb978d4320fc13b3ed0dd7e398ebc6a16eb63ecba6b950

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

= 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: http://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: http://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

Copyright (c) 2009 Andreas Wolff. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apphunk-0.5.1 README.rdoc