
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.