New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

streamline

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamline

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Streamline

Important! It's still early proof-of-concept. Use it on your own risk ;)

Streamline allows you to organize event-based behavior of your app way more simpler.

Gem Version Code Climate Build Status

Installation

Add to your Gemfile:

gem 'streamline'

And then execute:

$ bundle

Or install it system-wide:

$ gem install streamline

Setup

First of all, you have to select a data store for your events. Let's take ActiveRecord store for example:

$ rails generate streamline:stores:active_record

It will generate all neccessary files (a model and migration file in this case).

Next, you need to configure ActiveJob adapter (if you haven't done it yet). Streamline uses background jobs a lot and usage of ActiveJob allows us to support as many queuing backends as possible.

Imagine your app already uses Sidekiq. Just add the following line to your application.rb:

config.active_job.queue_adapter = :sidekiq

Then add streamline queue to your sidekiq.yml.

You're almost done! It's time to set up handlers and track some events.

Handlers

...

Event tracking

...

Data stores

Streamline supports following event stores:

  • ActiveRecord (PostgreSQL, MySQL, SQLite etc)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 19 Jan 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc