busyloop / powerbar Goto Github PK
View Code? Open in Web Editor NEWThe last progressbar-library you'll ever need
The last progressbar-library you'll ever need
ansi 1.5.0 was released and fixes a warning in Ruby 2.2. The dependency should be relaxed to ~> 1.4 I think.
I'm getting the following message when I attempt to install using Ruby 2.0.0dev:
Gem::InstallError: powerbar requires Ruby version ~> 1.9.2.
An error occured while installing powerbar (1.0.6), and Bundler cannot continue.
Make sure that `gem install powerbar -v '1.0.6'` succeeds before bundling.
Is there any reason that powerbar will not work with JRuby?
The restriction during installation requires ruby 1.9. with JRUBY_OPTS set to --1.9 (enabling 1.9 support) the gem still doesn't install.
Hello, I am a powerbar user now that minitest-reporters use it since v0.9.0 (see minitest-reporters/minitest-reporters#23)
However, I may have a problem with powerbar, when I use the ProgressReporter
in minitest-reporters, that seems to use powerbar. I obtain the following message when I run a test:
./test/unit/models/user/attributes_test.rb: No such file or directory - stty size
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:337:in `rescue in block (2 levels) in render_template': Invalid token 'bar' in template 'main' (NameError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:334:in `block (2 levels) in render_template'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:332:in `gsub'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:332:in `block in render_template'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:330:in `gsub'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:330:in `render_template'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:226:in `render'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/powerbar-1.0.7/lib/powerbar.rb:218:in `show'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/minitest-reporters-0.9.0/lib/minitest/reporters/progress_reporter.rb:46:in `increment'
...
Although I use powerbar in the context of minitest-reporter, that seems to be a powerbar issue.
It may be related to Windows, as I've discovered there was a similar problem for another gem here: http://www.ruby-forum.com/topic/168877#741778.
Other related thread: http://stackoverflow.com/questions/3677735/equivalent-to-stty-size-on-windows
I use Windows XP and ruby 1.9.3-p125
would it be possible to exclude ass/* from the gem build?
The native mac terminal app seems to be one character too wide. If I run PowerBar in the iTerm.app, all is good. If I run the same code in the Terminal.app, the bar takes two lines and looks very strange.
I was able to fix the issue by
powerbar.define_singleton_method :terminal_width do
ANSI::Terminal.terminal_width-1
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.