neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
52 stars 14 forks source link

Fix a crash if a gitignore line contains no white-space characters #29

Closed connorsherson closed 4 years ago

connorsherson commented 4 years ago

I encountered this by not putting a newline at the end of the last line of my gitignore.

I suspect the problem is straight forward enough for someone who knows Ruby but here is what the error was, just in case:

neocities-0.0.13/lib/neocities/cli.rb:191:indirectory?': no implicit conversion of nil into String (TypeError)`

I don't know Ruby but looking up the docs seemed to clear up the issue for me.

kyledrake commented 4 years ago

Thanks! I'll push this after I have a test for it.