enilsen16 / Eefgilm

A gem for organizing your Gemfile
MIT License
36 stars 9 forks source link

No method error #54

Closed enilsen16 closed 10 years ago

enilsen16 commented 10 years ago

Not sure if it was just a weird ruby bug or was because of rails 4.2.0.beta2. Either way it works in a different repo just fine. I can't seem to produce it any where else...

/Users/Erik/.gem/ruby/2.1.2/gems/eefgilm-1.1.2/lib/eefgilm/gemfile.rb:46:in `block in extract_to_array_of_lines': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/Erik/.gem/ruby/2.1.2/gems/eefgilm-1.1.2/lib/eefgilm/gemfile.rb:36:in `each'
    from /Users/Erik/.gem/ruby/2.1.2/gems/eefgilm-1.1.2/lib/eefgilm/gemfile.rb:36:in `extract_to_array_of_lines'
    from /Users/Erik/.gem/ruby/2.1.2/gems/eefgilm-1.1.2/lib/eefgilm/gemfile.rb:17:in `clean!'
    from /Users/Erik/.gem/ruby/2.1.2/gems/eefgilm-1.1.2/bin/eefgilm:4:in `<top (required)>'
    from /Users/Erik/.gem/ruby/2.1.2/bin/eefgilm:23:in `load'
    from /Users/Erik/.gem/ruby/2.1.2/bin/eefgilm:23:in `<main>'
enilsen16 commented 10 years ago

Can not seem to produce it. I switched back to ruby 2.1.3 and all is good now. For now the issue is closed.