Coder Social home page Coder Social logo

powerbar's People

Contributors

conradwt avatar grosser avatar m-o-e avatar win93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

powerbar's Issues

New ansi version

ansi 1.5.0 was released and fixes a warning in Ruby 2.2. The dependency should be relaxed to ~> 1.4 I think.

Gem::InstallError: powerbar requires Ruby version ~> 1.9.2.

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.

Can't install in JRuby

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.

No such file or directory - stty size

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

Bar too wide on Mac OS 10.7 Terminal.app

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   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.