Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Ruby Jard provides a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter places only, reduces manual and mental efforts. You can now focus on real debugging.
Please visit https://rubyjard.org/ for more information.
Note: Ruby Jard is still under heavy development. Bugs and weird behaviors are expected. If you see one, please don't hesitate to open an issue. I'll try my best to fix.
Add one of those lines into your Gemfile. Note: Ruby Jard is discouraged to use on production environment.
gem 'ruby_jard', group: :development
❯ bundle install
If you would like to use Ruby Jard to debug a test, you can add to group test too.
gem 'ruby_jard', group: [:development, :test]
If you would like to use edged developing version of Ruby Jard:
gem 'ruby_jard', group: :development, git: 'https://github.com/nguyenquangminh0711/ruby_jard'
If you want to install Ruby Jard independently from bundler:
gem install ruby_jard
If you want to install a specific version published on Ruby gems:
gem install ruby_jard@0.2.3
To use Ruby Jard, you just need to put jard
magic method before any places you want to stop. Jard supports stopping at anywhere, including top level binding, instance methods, class methods, string evaluation, or even inside a class declaration.
def test_method(input)
a = 1
b = 2
jard # Debugger will stop here
c = a + b + input
end
class TestClass
jard # Yes, it can stop here too
@dirty_class_method = 1 + 1
def test_method
jard
end
def self.test_class_method
jard
end
end
jard
test_method(5)
Afterward, run your program, just like normally. If your program meets jard
execution break point, it gonna stop, show the UI, and let you debug.
In case you meet error undefined local variable or method jard
, please require ruby_jard manually at initializing scripts. If you use Ruby Jard with famous frameworks, ruby_jard will be loaded by default
require 'ruby_jard'
Please visit https://rubyjard.org/ for more information.
Bug reports and pull requests are welcome on GitHub at https://github.com/nguyenquangminh0711/ruby_jard. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the RubyJard project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that ruby_jard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.