toadhopper 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +15 -0
  2. data/lib/toadhopper.rb +1 -0
  3. metadata +3 -2
data/README.md ADDED
@@ -0,0 +1,15 @@
1
+ A base library for [Hoptoad](http://www.hoptoadapp.com/) error reporting.
2
+
3
+ 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).
4
+
5
+ require 'toadhopper'
6
+
7
+ Toadhopper.api_key = "YOURAPIKEY"
8
+
9
+ error = begin; raise "Kaboom!"; rescue => e; e; end
10
+
11
+ puts Toadhopper.post!(error)
12
+
13
+ You can install it via rubygems:
14
+
15
+ gem install toadhopper
data/lib/toadhopper.rb CHANGED
@@ -35,6 +35,7 @@ class << self
35
35
  begin
36
36
  http.post uri.path, {"notice" => notice_params(error, options)}.to_yaml, headers
37
37
  rescue TimeoutError => e
38
+ nil
38
39
  end
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toadhopper
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.6"
4
+ version: "0.7"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas
@@ -22,13 +22,14 @@ extensions: []
22
22
  extra_rdoc_files:
23
23
  - Readme.md
24
24
  files:
25
- - Readme.md
25
+ - README.md
26
26
  - Rakefile
27
27
  - LICENSE
28
28
  - lib/toadhopper.rb
29
29
  - test/test_filter.rb
30
30
  - test/test_notice_params.rb
31
31
  - test/test_setters.rb
32
+ - Readme.md
32
33
  has_rdoc: true
33
34
  homepage: http://github.com/toolmantim/toadhopper
34
35
  post_install_message: