toolmantim-toadhopper 0.2 → 0.3

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 +2 -2
  2. data/lib/toadhopper.rb +1 -4
  3. metadata +3 -2
data/Readme.md CHANGED
@@ -1,9 +1,9 @@
1
1
  Toadhopper
2
2
  ----------
3
3
 
4
- A base library for Hoptoad reporting.
4
+ A base library for [Hoptoad](http://www.hoptoadapp.com/) error reporting.
5
5
 
6
- You can use this to report plain old Ruby exceptions, or to build a library specific gem such as the yet-to-be-built toadhopper-sinatra and toadhopper-rack gems (that's next on my list).
6
+ Toadhopper can be used to report plain old Ruby exceptions or to build a library specific gem, such as the yet-to-be-built toadhopper-sinatra and toadhopper-rack gems (they're next on my list).
7
7
 
8
8
  ## Example
9
9
 
data/lib/toadhopper.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  require 'net/http'
2
2
  require 'yaml'
3
- require 'timeout'
4
3
 
5
4
  module Toadhopper
6
- class PostTimeoutError < StandardError; end
7
5
  class << self
8
6
  # Set the API key
9
7
  def api_key=(key)
@@ -43,8 +41,7 @@ module Toadhopper
43
41
  http.open_timeout = 2 # seconds
44
42
  begin
45
43
  http.post uri.path, {"notice" => notice_params(error, options)}.to_yaml, headers
46
- rescue Timeout::TimeoutError => e
47
- raise ToadHopper::PostTimeoutError
44
+ rescue TimeoutError => e
48
45
  end
49
46
  end
50
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolmantim-toadhopper
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas
@@ -32,6 +32,7 @@ files:
32
32
  - test/test_test.rb
33
33
  has_rdoc: true
34
34
  homepage: http://github.com/toolmantim/toadhopper
35
+ licenses:
35
36
  post_install_message:
36
37
  rdoc_options: []
37
38
 
@@ -52,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
53
  requirements: []
53
54
 
54
55
  rubyforge_project:
55
- rubygems_version: 1.2.0
56
+ rubygems_version: 1.3.5
56
57
  signing_key:
57
58
  specification_version: 2
58
59
  summary: Library for posting Hoptoad notifications