ruby_chopped icon indicating copy to clipboard operation
ruby_chopped copied to clipboard

Undefined method `size` for nil:NilClass (NoMethodError)

Open schas002 opened this issue 10 years ago • 0 comments

Does not work on Ruby 1.9.3-p545 on my machine with Windows XP Home Edition and MinGW running, the trace route is:

$ ruby_chopped -n test
Creating test basket...
d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:85:in `block in pick_gems': undefined method `size' for nil:NilClass (NoMethodError)
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:84:in `times'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:84:in `each'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:84:in `collect'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:84:in `pick_gems'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:80:in `random_gems'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:49:in `gemfile_array'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:75:in `gemfile_string'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:33:in `block in create'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:32:in `open'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/lib/ruby_chopped.rb:32:in `create'
        from d:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_chopped-0.0.6/bin/ruby_chopped:44:in `<top (required)>'
        from d:/Ruby193/bin/ruby_chopped:23:in `load'
        from d:/Ruby193/bin/ruby_chopped:23:in `<main>'

schas002 avatar Jul 08 '14 12:07 schas002