
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.
The gem is available here VisualArrayGem
VisualArray is a Ruby gem that displays arrays in a structured, visually appealing tabular format. It supports 1D, 2D, and multi-dimensional arrays with options for customizing text color.
Add this line to your application's Gemfile:
bundle add visual_array
Or install it manually:
gem install visual_array
require 'visual_array'
VisualArray.display([1, 2, 3, 4])
Output:
+---+---+---+---+
| 1 | 2 | 3 | 4 |
+---+---+---+---+
VisualArray.display([
[1, 2],
[3, 4]
])
Output:
+-----+-----+
| 1 | 2 |
| 3 | 4 |
+-----+-----+
VisualArray.display([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
Output:
Dimension 1, Index 0:
+-----+-----+
| 1 | 2 |
| 3 | 4 |
+-----+-----+
Dimension 1, Index 1:
+-----+-----+
| 5 | 6 |
| 7 | 8 |
+-----+-----+
You can pass optional color
parameter:
VisualArray.display(
[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
color: 'blue'
)
After checking out the repo, run:
bin/setup
to install dependencies. Use bin/console
for an interactive session.
To install this gem locally:
bundle exec rake install
To release a new version:
version.rb
.bundle exec rake release
This will create a git tag, push commits, and publish the gem to RubyGems.
Bug reports and pull requests are welcome at GitHub.
This project is available under the MIT License.
FAQs
Unknown package
We found that visual_array 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.