Skip to content
Browse files

Merge branch 'feature/travis-ci' into feature/ssl

  • Loading branch information...
2 parents 0cbce4e + 6747e8c commit 8e2cad00ebc328ecb0c32a0971900115984700d0 @sfgeorge committed Dec 7, 2011
Showing with 37 additions and 4 deletions.
  1. +14 −0 .travis.yml
  2. +4 −0 Gemfile
  3. +15 −0 README.md
  4. +4 −4 test/test_posting.rb
View
14 .travis.yml
@@ -0,0 +1,14 @@
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - jruby
+ - rbx
+ - ree
+ - ruby-head
+
+notifications:
+ email:
+ - sgit-turtle.testudo12@wronghead.com
+ irc:
+ channels: "irc.freenode.org#toadhopper"
View
4 Gemfile
@@ -2,3 +2,7 @@ source :rubygems
# Specify your gem's dependencies in toadhopper.gemspec
gemspec
+
+platforms :jruby do
+ gem 'jruby-openssl'
+end
View
15 README.md
@@ -1,3 +1,5 @@
+[![Build Status](https://secure.travis-ci.org/toolmantim/toadhopper.png)](http://travis-ci.org/toolmantim/toadhopper)
+
A base library for [Airbrake](http://www.airbrakeapp.com/) error reporting.
Toadhopper can be used to report plain old Ruby exceptions, or to build a framework-specific gem such as [toadhopper-sinatra](http://github.com/toolmantim/toadhopper-sinatra).
@@ -41,6 +43,19 @@ There is Capistrano support for deploy tracking. Simply require `toadhopper/capi
set :airbrake_api_key, 'YOURAPIKEY'
+## Compatibility
+
+Toadhopper is tested against and compatible with the following ruby platforms:
+
+ * **1.8.7**
+ * **1.9.2**
+ * **1.9.3**
+ * **ree 1.8.7-2011.03**
+ * **jruby 1.6.3**
+ For jruby support, you need to `gem install jruby-openssl` if you do not
+ already have that gem. [More info on why this is.](http://blog.mattwynne.net/2011/04/26/targeting-multiple-platforms-jruby-etc-with-a-rubygems-gemspec/)
+ * **rubinius 2.0.testing** branch in ruby 1.8 mode (1.9 mode is not supported)
+
## Development
Install Bundler 0.9.x, then:
View
8 test/test_posting.rb
@@ -3,16 +3,16 @@
class Toadhopper::TestPosting < Test::Unit::TestCase
def test_posting
response = Toadhopper('bogus key').post!(error)
- assert_equal 422, response.status
- assert_equal ['No project exists with the given API key.'], response.errors
+ assert_equal 422, response.status, response
+ assert_equal ['No project exists with the given API key.'], response.errors, response
end
if ENV['AIRBRAKE_API_KEY']
def test_posting_integration
toadhopper.filters = "AIRBRAKE_API_KEY", "ROOT_PASSWORD"
response = toadhopper.post!(error)
- assert_equal 200, response.status
- assert_equal [], response.errors
+ assert_equal 200, response.status, response
+ assert_equal [], response.errors, response
end
end
end

0 comments on commit 8e2cad0

Please sign in to comment.
Something went wrong with that request. Please try again.