Permalink
Browse files

Forked from Sebastien repo

  • Loading branch information...
0 parents commit c0594cf4c2151075219b80cdb105eeddeabba9bd caedes committed Jul 3, 2012
Showing with 7,025 additions and 0 deletions.
  1. +434 −0 CHANGELOG
  2. +3 −0 Gemfile
  3. +25 −0 INSTALL
  4. +22 −0 MIT-LICENSE
  5. +459 −0 README.md
  6. +93 −0 README_FOR_HEROKU_ADDON.md
  7. +183 −0 Rakefile
  8. +14 −0 SUPPORTED_RAILS_VERSIONS
  9. +25 −0 TESTING.md
  10. +23 −0 features/metal.feature
  11. +27 −0 features/rack.feature
  12. +254 −0 features/rails.feature
  13. +78 −0 features/rails_with_js_notifier.feature
  14. +23 −0 features/rake.feature
  15. +33 −0 features/sinatra.feature
  16. +10 −0 features/step_definitions/file_steps.rb
  17. +23 −0 features/step_definitions/metal_steps.rb
  18. +20 −0 features/step_definitions/rack_steps.rb
  19. +401 −0 features/step_definitions/rails_application_steps.rb
  20. +17 −0 features/step_definitions/rake_steps.rb
  21. +18 −0 features/support/env.rb
  22. +15 −0 features/support/hoptoad_shim.rb.template
  23. +35 −0 features/support/matchers.rb
  24. +181 −0 features/support/rails.rb
  25. +57 −0 features/support/rake/Rakefile
  26. +103 −0 features/support/terminal.rb
  27. +63 −0 features/user_informer.feature
  28. +90 −0 generators/hoptoad/hoptoad_generator.rb
  29. +34 −0 generators/hoptoad/lib/insert_commands.rb
  30. +24 −0 generators/hoptoad/lib/rake_commands.rb
  31. +6 −0 generators/hoptoad/templates/capistrano_hook.rb
  32. +25 −0 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
  33. +6 −0 generators/hoptoad/templates/initializer.rb
  34. +33 −0 hoptoad_notifier.gemspec
  35. +1 −0 install.rb
  36. +152 −0 lib/hoptoad_notifier.rb
  37. +100 −0 lib/hoptoad_notifier/backtrace.rb
  38. +21 −0 lib/hoptoad_notifier/capistrano.rb
  39. +247 −0 lib/hoptoad_notifier/configuration.rb
  40. +348 −0 lib/hoptoad_notifier/notice.rb
  41. +42 −0 lib/hoptoad_notifier/rack.rb
  42. +41 −0 lib/hoptoad_notifier/rails.rb
  43. +30 −0 lib/hoptoad_notifier/rails/action_controller_catcher.rb
  44. +68 −0 lib/hoptoad_notifier/rails/controller_methods.rb
  45. +33 −0 lib/hoptoad_notifier/rails/error_lookup.rb
  46. +42 −0 lib/hoptoad_notifier/rails/javascript_notifier.rb
  47. +82 −0 lib/hoptoad_notifier/rails3_tasks.rb
  48. +33 −0 lib/hoptoad_notifier/railtie.rb
  49. +65 −0 lib/hoptoad_notifier/rake_handler.rb
  50. +83 −0 lib/hoptoad_notifier/sender.rb
  51. +30 −0 lib/hoptoad_notifier/shared_tasks.rb
  52. +83 −0 lib/hoptoad_notifier/tasks.rb
  53. +25 −0 lib/hoptoad_notifier/user_informer.rb
  54. +3 −0 lib/hoptoad_notifier/version.rb
  55. +50 −0 lib/hoptoad_tasks.rb
  56. +96 −0 lib/rails/generators/hoptoad/hoptoad_generator.rb
  57. +13 −0 lib/templates/javascript_notifier.erb
  58. +91 −0 lib/templates/rescue.erb
  59. +1 −0 rails/init.rb
  60. +38 −0 script/integration_test.rb
  61. +163 −0 test/backtrace_test.rb
  62. +333 −0 test/catcher_test.rb
  63. +216 −0 test/configuration_test.rb
  64. +251 −0 test/helper.rb
  65. +78 −0 test/hoptoad_2_2.xsd
  66. +163 −0 test/hoptoad_tasks_test.rb
  67. +52 −0 test/javascript_notifier_test.rb
  68. +85 −0 test/logger_test.rb
  69. +465 −0 test/notice_test.rb
  70. +235 −0 test/notifier_test.rb
  71. +58 −0 test/rack_test.rb
  72. +36 −0 test/rails_initializer_test.rb
  73. +10 −0 test/recursion_test.rb
  74. +176 −0 test/sender_test.rb
  75. +29 −0 test/user_informer_test.rb
Oops, something went wrong.
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gemspec
@@ -0,0 +1,25 @@
+=== Configuration
+
+You should have something like this in config/initializers/hoptoad.rb.
+
+ HoptoadNotifier.configure do |config|
+ config.api_key = '1234567890abcdef'
+ end
+
+(Please note that this configuration should be in a global configuration, and
+is *not* environment-specific. Hoptoad is smart enough to know what errors are
+caused by what environments, so your staging errors don't get mixed in with
+your production errors.)
+
+You can test that Hoptoad is working in your production environment by using
+this rake task (from RAILS_ROOT):
+
+ rake hoptoad:test
+
+If everything is configured properly, that task will send a notice to Hoptoad
+which will be visible immediately.
+
+NOTE FOR RAILS 1.2.* USERS:
+
+You will need to copy the hoptoad_notifier_tasks.rake file into your
+RAILS_ROOT/lib/tasks directory in order for the rake hoptoad:test task to work.
@@ -0,0 +1,22 @@
+Copyright (c) 2007, Tammer Saleh, Thoughtbot, Inc.
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
Oops, something went wrong.

0 comments on commit c0594cf

Please sign in to comment.