You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

obk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obk

0.3.2
98

Supply Chain Security

100

Vulnerability

100

Quality

95

Maintenance

100

License

Shell access

Supply chain risk

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Found 1 instance in 1 package

Version published
Maintainers
1
Created

Throttle Ruby Method Calls

EO principles respected here DevOps By Rultor.com We recommend RubyMine

rake Test Coverage Gem Version Maintainability Yard Docs Hits-of-Code License

First, install it:

gem install obk

Then, use it like this:

require 'obk'
obj = Obk.new(obj, pause: 500)
obj.foo
# Forced 500ms delay here
obj.bar

There will be a forced delay of 500 milliseconds between .foo and .bar calls.

Keep in mind that Obk is not thread-safe.

How to contribute

Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:

bundle update
bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.

FAQs

Package last updated on 05 Apr 2025

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