aaronrenner / phx_gen_auth

An authentication system generator for Phoenix 1.5 applications.
774 stars 56 forks source link

Support windows line endings #74

Closed aaronrenner closed 4 years ago

aaronrenner commented 4 years ago

This fixes #69 and ensures line endings used when injecting code match the rest of the file. The updated injections include:

I extracted the config injection code into its own module so the injection code could be tested without needing to modify the file system. I also added an integration test to ensure no errors are raised when windows line endings are used.

If we want full matching line ending support, I can continue this work for the rest of the injections. Any feedback would be appreciated.

Fixes #69 Closes #70