Socket
Book a DemoInstallSign in
Socket

konverge

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konverge

1.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Konverge Ruby Gem

Allows you to capture exceptions, uncaught errors, and custom events into your Konverge account.

Libraries are also available for other platforms like Android, iOS, Java, PHP, etc..

Installation

Add these lines to your application's Gemfile:

source 'https://rubygems.org'
gem 'konverge'

And then execute:

$ bundle

Or install it yourself as:

$ gem install konverge

Usage

  • Register at app.konverge.co for an account and copy the given API key or download and install your own Konverge installation.

  • Require and initialize Konverge in your most common file or within config.ru within your rails app.

    require 'konverge' server = 'SERVER_NAME' apiKey = 'API_KEY' version = '1.0' # your application version Konverge::initialize(server,apiKey,version)

  • Uncaught exceptions are automatically captured.

  • If you use assertions update your code with this syntax:

    Konverge::assert('Assertion Failure Message') { false != false }

  • To gracefully handle failures use the following begin/rescue style:

    begin 1/0 # Exception: ZeroDivisionError rescue Exception => e Konverge::exception(e) end

  • Other commands available for customized tracking are:

    Use in your code to track DB problems

    Konverge::database("SQL query failed.")

    Use in your code during development

    Konverge::debug("I want to log this debug text.")

    Use in your code to track events that are really bad.

    Fatal events cause an email to be sent to you as an extra notification.

    Konverge::fatal("This was fatal, email it to me.")

Copyright 2009-2013 Konverge. See LICENSE for further details.

FAQs

Package last updated on 21 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.