Socket
Book a DemoInstallSign in
Socket

lessneglect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lessneglect

0.3.5
bundlerRubygems
Version published
Maintainers
1
Created
Source

LessNeglect Ruby Client

Allow your Ruby app to easily submit server-side messages and events to LessNeglect.

Installation

In your Gemfile:

gem 'lessneglect'

Usage

person = LessNeglectApi::Person.new({
    :name => "Christopher Gooley",
    :email => "gooley@foliohd.com",
    :external_identifer => "gooley",
    :properties => {
      :account_level => "Pro",
      :is_paying => True,
      :created_at => 1347060566
    }
  })

event = LessNeglectApi::ActionEvent.new({
    :name => "upgraded"
  }.merge(extras))

api = LessNeglectApi::Client.new({
    :code => "abcdefg",
    :secret => "1234asdfasdf1234"
  })

api.create_action_event(person, event)

Sample Helper Class

We suggest you create a simple helper class such as /lib/neglect.rb to convert your User model into a LessNeglect Person and submit the event.

Here's a sample gist of what the helper could look like: https://gist.github.com/3738364

then you can make one-line event logs:

Neglect.log_event(@current_user, "uploaded-media")

Copyright (c) 2011-2012 Christopher Gooley, Less Neglect. See LICENSE.txt for further details.

FAQs

Package last updated on 01 Jan 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.