fucking_fail 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fucking_fail.rb +2 -2
- metadata +1 -1
data/lib/fucking_fail.rb
CHANGED
@@ -20,7 +20,7 @@ class FuckingFail
|
|
20
20
|
|
21
21
|
# The token for this application as registered on FuckingFail.com
|
22
22
|
# @return [String]
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :token
|
24
24
|
|
25
25
|
# The URL that we POST fails to.
|
26
26
|
# @return [String] (http://fuckingfail.com/fails)
|
@@ -66,7 +66,7 @@ class FuckingFail
|
|
66
66
|
|
67
67
|
def deliver exception, additional_data
|
68
68
|
uri = URI.parse('http://fuckingfail.com/fails')
|
69
|
-
params = additional_data.merge :
|
69
|
+
params = additional_data.merge :token => token, :stacktrace => FuckingFail.formatted_error(exception)
|
70
70
|
Net::HTTP.post_form uri, params
|
71
71
|
end
|
72
72
|
|