Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Helper for drawing utils on CLI.
UtilsDrawer will help to draw utils such as a table or graph.
Supporting the simple drawing by using Ruby's Block syntax.
Add this line to your application's Gemfile:
gem 'utils_drawer'
Adjeust the column width at first row. The column width is 10 by the default. It is also possible to specify the column width in UtilsDrawer.column second argument.
require 'utils_drawer'
include UtilsDrawer
table do
row do
column('NAME')
column('SCORE', 20)
column('AGE')
end
row do
column('kaihara')
column('100,000,000')
column('22')
end
row do
column('hogefugahara')
column('200,000,000')
column('33')
end
end
If the number of characters exceeds the column width, it is omitted.
If you want to change the column width of the default:
...
table(20) do
...
end
UtilsDrawer.data accepts the data label in the first argument, the value in the second argument. The value is the bar length. The color of the bar is determined by the bar length.
require 'utils_drawer'
include UtilsDrawer
graph do
data('foo', 10)
data('hoge', 17)
data('nullpo', 0)
data('nullnull', 0)
data('nuller', 0)
data('nullest', 0)
data('bar', 7)
data('fuga', 24)
end
Be omitted value is 0 to continue.
If you don't want to omit:
...
graph({ omission: false }) do
...
end
FAQs
Unknown package
We found that utils_drawer 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.