Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Rename to node-hoptoad-notifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Jun 10, 2010
1 parent 6fb3d75 commit 8e86ac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hoptoad-notifier.js
# node-hoptoad-notifier

Report exceptions to Hoptoad from node.js.

Expand Down
2 changes: 1 addition & 1 deletion lib/hoptoad-notifier.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var HTTP = require('http');
var Hoptoad = {
VERSION : '0.1.0',
NOTICE_XML : '<?xml version="1.0" encoding="UTF-8"?><notice version="2.0"><api-key>API_KEY</api-key><notifier><name>hoptoad-notifier-js</name><version>0.1.0</version><url>http://github.com/tristandunn/hoptoad-notifier-js</url></notifier><error><class>EXCEPTION_CLASS</class><message>EXCEPTION_MESSAGE</message><backtrace>BACKTRACE_LINES</backtrace></error><server-environment><project-root>PROJECT_ROOT</project-root><environment-name>production</environment-name></server-environment></notice>',
NOTICE_XML : '<?xml version="1.0" encoding="UTF-8"?><notice version="2.0"><api-key>API_KEY</api-key><notifier><name>node-hoptoad-notifier</name><version>0.1.0</version><url>http://github.com/tristandunn/node-hoptoad-notifier</url></notifier><error><class>EXCEPTION_CLASS</class><message>EXCEPTION_MESSAGE</message><backtrace>BACKTRACE_LINES</backtrace></error><server-environment><project-root>PROJECT_ROOT</project-root><environment-name>production</environment-name></server-environment></notice>',
BACKTRACE_MATCHER : /\s+at (.*) \(([^\:]+)\:(\d+)\:(\d+)\)/,

notify: function(error) {
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/notice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<notice version="2.0">
<api-key>API_KEY</api-key>
<notifier>
<name>hoptoad-notifier-js</name>
<name>node-hoptoad-notifier</name>
<version>0.1.0</version>
<url>http://github.com/tristandunn/hoptoad-notifier-js</url>
<url>http://github.com/tristandunn/node-hoptoad-notifier</url>
</notifier>
<error>
<class>EXCEPTION_CLASS</class>
Expand Down

0 comments on commit 8e86ac3

Please sign in to comment.