
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Use power_assert inspection in irb
Tested only in ruby-head and the last 2 stable versions
So require Ruby 3.3 or higher
$ gem install irb-power_assert
...installed
$ irb -r irb-power_assert
# enabled this gem
Or specify in your ~/.irbrc
as below
require 'irb/power_assert'
$ irb
irb(main):004> help pa
Print PowerAssert inspection for the given expression.
Then you can use pa
as an IRB command.
irb(main):001:0> pa "0".class == "3".to_i.times.map {|i| i + 1 }.class
"0".class == "3".to_i.times.map {|i| i + 1 }.class
| | | | | |
| | | | | Array
| | | | [1, 2, 3]
| | | #<Enumerator: ...>
| | 3
| false
String
=> false
No hack is needed in your irbrc
ruby/power_assert is a recent my favorites.
(the author is @k-tsj, thank you!)
It is super helpful in complex testing.
I just would get irb version of yui-knk/pry-power_assert.
Latest IRB is much helpful to create own command
Honor should be bestowed upon them.
FAQs
Unknown package
We found that irb-power_assert demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.