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

called

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

called

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Called

Just to log down what methods are called and from where

Installation

Add this line to your application's Gemfile:

gem 'called'

And then execute:

$ bundle

Or install it yourself as:

$ gem install called

Usage

In test case:

c = Called.on [], log: '/tmp/called_test.txt'

3.times do
  c.push 1
  c.pop
  c.push 1
  c.shift
  c + c
end

Result:

$ cat /tmp/called_test.txt
   push | /home/z/called/test/called_test.rb:11:in `block in test_it_does_something_useful'
    pop | /home/z/called/test/called_test.rb:12:in `block in test_it_does_something_useful'
   push | /home/z/called/test/called_test.rb:13:in `block in test_it_does_something_useful'
  shift | /home/z/called/test/called_test.rb:14:in `block in test_it_does_something_useful'
      + | /home/z/called/test/called_test.rb:15:in `block in test_it_does_something_useful'
 to_ary | /home/z/called/lib/called.rb:17:in `+'

FAQs

Package last updated on 24 May 2017

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