errorinbox 0.0.4a → 0.0.5a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/error_inbox/notifier.rb +2 -2
- data/lib/error_inbox/version.rb +1 -1
- data/lib/error_inbox.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89adea7fd26b7749808bc4642f3948cfb058b964
|
4
|
+
data.tar.gz: df27ea8e1939e6a37a8d25b54e7bcefe69ec16c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa210c6b4980f19827cd5734ccdc14354909a1612f402a5d2408d69d55a4fc80a2389153cbe26b4caf675d5ca46597f167e6fef45f537038d9585b68b84a3e2
|
7
|
+
data.tar.gz: 88d6f364deaa6b7e15636d2ac65ae83853fa31f616c82b32a3298aacabf8a4db5c13059a39b71e7ac72f48c81d384360ecd0a46f4e574045d489d310ba1684c5
|
data/lib/error_inbox/notifier.rb
CHANGED
@@ -70,7 +70,7 @@ module ErrorInbox
|
|
70
70
|
end
|
71
71
|
|
72
72
|
@options.each do |key, value|
|
73
|
-
value = value.to_s unless
|
73
|
+
value = value.to_s unless [Array, Hash].include?(value.class)
|
74
74
|
body[:environment][key] = value
|
75
75
|
end
|
76
76
|
|
@@ -81,7 +81,7 @@ module ErrorInbox
|
|
81
81
|
uri = URI("http://oops.errorinbox.com/")
|
82
82
|
http = Net::HTTP.new(uri.host, uri.port)
|
83
83
|
http.read_timeout = 5
|
84
|
-
http.open_timeout =
|
84
|
+
http.open_timeout = 4
|
85
85
|
|
86
86
|
request = Net::HTTP::Post.new(uri.request_uri)
|
87
87
|
request["Content-Type"] = "application/json"
|
data/lib/error_inbox/version.rb
CHANGED
data/lib/error_inbox.rb
CHANGED
@@ -3,9 +3,6 @@ require "error_inbox/notifier"
|
|
3
3
|
require "error_inbox/configuration"
|
4
4
|
|
5
5
|
module ErrorInbox
|
6
|
-
class MissingCredentialsError < StandardError; end
|
7
|
-
class InvalidCredentialsError < StandardError; end
|
8
|
-
|
9
6
|
def self.notify(ex, env)
|
10
7
|
notifier = Notifier.new(env)
|
11
8
|
notifier.save(ex)
|