Skip to content

Undefined method size for nil:NilClass (NoMethodError) #8

@schas002

Description

@schas002

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>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions