
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
RubyのCUI上でループ時のアニメーションが簡単に作れるメソッドです。
ループが終了する予測時間も測定してくれます。
Each_with_anim is easiest to make progress bar and other cool animations in CUI.
$ gem install each_with_anim
each_with_animは,アニメーションを表示する以外は基本的にeachと同じ振る舞いをします。
Use "each_with_anim" like "each" method.
require "each_with_anim"
list = %w(hage hoge foo) * 1000
list.each_with_anim do |elem|
#something
end
もちろんwith_indexとかも使えます。
あとeach_with_animationはeach_with_animのエイリアスになってます。ただ長いので非推奨。
also, if you want to use "with_index",
list = %w(hage hoge foo) * 1000
list.each_with_animation.with_index do |elem,i|
#something
end
同様に,引数を取ってアニメーションを変えることができます。今はまだ2つだけ。
暇なときに増やして行きます。
if you want to change animation,
list = %w(hage hoge foo) * 1000
list.each_with_anim(1) do |elem|
#something
end
each_with_anim内でprintすると表示がバグります。
解決策を絶賛探し中。
list = %w(hage hoge foo) * 10
list.each_with_anim do |elem|
puts "piyoo"
end
Bug reports and pull requests are welcome on GitHub at https://github.com/7rpn/each_with_anim. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
なんでもok
すごい顔文字師がいたら助けてください笑
The gem is available as open source under the terms of the MIT License.
自由に使ってください。
FAQs
Unknown package
We found that each_with_anim 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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.