{"push_id":604729469,"size":1,"distinct_size":1,"ref":"refs/heads/ticket/3.8/PUP-927-readlines","head":"b64acad53e6d82c79c573fe35c8894d9bf4f2fc3","before":"eebfc4045a8ff97ffbeea43d5e386cc38518d92b","commits":[{"sha":"b64acad53e6d82c79c573fe35c8894d9bf4f2fc3","author":{"email":"2517f7f46b9b5171a848d2bcbaa230e88b7ea36a@gmail.com","name":"Rob Reynolds"},"message":"(PUP-927) Read preserving line endings\n\nPreviously, puppet's built in `file` and `template` functions would\nread file contents using `File.read`. This would not cause problems\non *nix but could cause EOL conversion from `\\r\\n` to `\\n` on Windows.\n\nAdd `Puppet::FileSystem.read_preserve_line_endings` for cases where line\nendings are important and use `:mode => 'rb'` checking first against utf-8\nencoding, falling back to default_external when not valid, and falling back\nto `File.read` when all else fails.","distinct":true,"url":"https://api.github.com/repos/ferventcoder/puppet/commits/b64acad53e6d82c79c573fe35c8894d9bf4f2fc3"}]}