bin/raven in sentry-raven-0.4.6 vs bin/raven in sentry-raven-0.4.7

- old
+ new

@@ -1,8 +1,9 @@ #!/usr/bin/env ruby require "raven" +require "raven/cli" require "optparse" options = {} parser = OptionParser.new do |opt| @@ -32,24 +33,10 @@ when "test" dsn = ARGV[1] if ARGV.length > 1 if !dsn puts "Usage: raven test <dsn>" else - Raven.configure do |config| - config.dsn = dsn - config.current_environment = 'production' - end - - puts "Sending test event" - - begin - 1 / 0 - rescue ZeroDivisionError => exception - Raven.capture_exception(exception) - end - - puts "Done!" - + Raven::CLI::test(dsn) end else puts parser end \ No newline at end of file