Skip to content

Instantly share code, notes, and snippets.

@be9
Created June 12, 2015 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save be9/763bc28c2496ac4221f7 to your computer and use it in GitHub Desktop.
Save be9/763bc28c2496ac4221f7 to your computer and use it in GitHub Desktop.
# A sample Gemfile
source "https://rubygems.org"
gem 'rollbar'
GEM
remote: https://rubygems.org/
specs:
multi_json (1.11.0)
rollbar (1.5.3)
multi_json (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
rollbar
require 'rubygems'
require 'bundler/setup'
require 'rollbar'
Rollbar.configure do |config|
config.access_token = '20eb68f667eb456598aa457a4ea9ffd3'
end
begin
puts "do something"
#raise "test"
raise NotImplementedError
rescue => e
Rollbar.critical(e)
end
puts "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment