Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

netrc writes files it can't read #1

Open
dpiddy opened this Issue · 0 comments

1 participant

@dpiddy
Owner

Example:

>> netrc = Netrc.read("foo")
=> #<Netrc:0x007f96cbd56e20 @new_item_prefix="", @path="foo", @pre="", @data=[]>
>> netrc["test.local"] = ["", "hello"]
=> ["", "hello"]
>> netrc.save
=> nil
>> netrc = Netrc.read("foo")
Netrc::Error: unexpected EOF
    from /Users/dan/Projects/ruby/netrc/lib/netrc.rb:72:in `take'
    from /Users/dan/Projects/ruby/netrc/lib/netrc.rb:91:in `parse'
    from /Users/dan/Projects/ruby/netrc/lib/netrc.rb:20:in `read'

Should verify it can parse what it's about to write before writing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.