Comments (5)
Could you make a try with the new version (1.0.2)?
from colorific.
The same error, unfortunately.
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/colorific-1.0.2/lib/colorific.rb:75:in `block in increment'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/colorific-1.0.2/lib/colorific.rb:69:in `with_color'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/colorific-1.0.2/lib/colorific.rb:74:in `increment'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/colorific-1.0.2/lib/colorific.rb:39:in `print'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:800:in `block in _run_suite'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:789:in `map'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:789:in `_run_suite'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:563:in `each'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:755:in `_run_anything'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:918:in `run_tests'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:905:in `block in _run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:904:in `each'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:904:in `_run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:893:in `run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:21:in `run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:630:in `run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/spork-testunit-92495b3fa3ee/lib/spork/test_framework/test_unit.rb:59:in `run_tests'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/forker.rb:21:in `block in initialize'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/forker.rb:18:in `fork'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/forker.rb:18:in `initialize'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/spork-0.9.0.rc9/lib/spork/server.rb:48:in `run'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
/Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'
from colorific.
Here everything are working well.. Could you clone the repo, run the tests files and send me the results?
from colorific.
I'm not sure that I run them properly but here is the result:
bundle exec testrb test/test_error.rb test/test_fail.rb test/test_nothing.rb test/test_pass.rb test/test_skip.rb
Run options:
# Running tests:
/Users/sema/Code/colorific/lib/colorific.rb:75:in `block in increment': undefined method `+' for nil:NilClass (NoMethodError)
from /Users/sema/Code/colorific/lib/colorific.rb:69:in `with_color'
from /Users/sema/Code/colorific/lib/colorific.rb:74:in `increment'
from /Users/sema/Code/colorific/lib/colorific.rb:39:in `print'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:800:in `block in _run_suite'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:789:in `map'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:789:in `_run_suite'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:563:in `each'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:755:in `_run_anything'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:918:in `run_tests'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:905:in `block in _run'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:904:in `each'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:904:in `_run'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/minitest-2.8.0/lib/minitest/unit.rb:893:in `run'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:21:in `run'
from /Users/sema/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:630:in `run'
from /Users/sema/.rbenv/versions/1.9.3-p0/bin/testrb:10:in `<main>'
The whole text also is in different color each time I run the tests.
from colorific.
Try to run each one individually. And run it inside the /test directory too.
from colorific.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorific.