Last active
December 14, 2015 23:17
-
-
Save dwbutler/172159577b268edb5239 to your computer and use it in GitHub Desktop.
Appcanary gem interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'appcanary' | |
Appcanary.configure do |config| | |
config.api_key = ENV['APPCANARY_API_KEY'] | |
end | |
# Explicitly specify language and file | |
Appcanary.check(language: :ruby, file: 'Gemfile.lock') | |
# Autodetect Ruby as the language and Gemfile.lock as the file | |
Appcanary.check | |
# A normal response would be wrapped in a Hashie::Mash | |
# Any error would raise an exception with the error object in the message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like it. 👍