{"action":"closed","number":25071,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/25071","id":70637559,"html_url":"https://github.com/rails/rails/pull/25071","diff_url":"https://github.com/rails/rails/pull/25071.diff","patch_url":"https://github.com/rails/rails/pull/25071.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/25071","number":25071,"state":"closed","locked":false,"title":"Add line ending detection core ext to File class","user":{"login":"binarydev","id":979630,"avatar_url":"https://avatars.githubusercontent.com/u/979630?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydev","html_url":"https://github.com/binarydev","followers_url":"https://api.github.com/users/binarydev/followers","following_url":"https://api.github.com/users/binarydev/following{/other_user}","gists_url":"https://api.github.com/users/binarydev/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydev/subscriptions","organizations_url":"https://api.github.com/users/binarydev/orgs","repos_url":"https://api.github.com/users/binarydev/repos","events_url":"https://api.github.com/users/binarydev/events{/privacy}","received_events_url":"https://api.github.com/users/binarydev/received_events","type":"User","site_admin":false},"body":"Add a new core extension to File in ActiveSupport, to allow detection of a file's line ending type. This will provide developers with a convenience method to help parse a file predictably regardless of line ending type, especially when dealing with formats like CSV, which has 3 formats (one for each line ending type) on all major OS platforms that can change per app. For example, Excel may output Windows-format CSV files, whereas LibreOffice may output a Unix format CSV file, or Apple's Numbers app may output Mac OS 9 CSV files. Without the ability to enforce standards on their end users of how and where CSV files should be made to import data, a method like this can be extremely useful in saving a lot of headaches and debugging time.","created_at":"2016-05-19T05:14:25Z","updated_at":"2016-05-19T05:20:31Z","closed_at":"2016-05-19T05:20:31Z","merged_at":null,"merge_commit_sha":"669755b9dbfa1129ac0607fa370135c05ed263d0","assignee":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/25071/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/25071/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/25071/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/463372ba97c988c90e96b1ab73ef12f4c8e02d11","head":{"label":"binarydev:master","ref":"master","sha":"463372ba97c988c90e96b1ab73ef12f4c8e02d11","user":{"login":"binarydev","id":979630,"avatar_url":"https://avatars.githubusercontent.com/u/979630?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydev","html_url":"https://github.com/binarydev","followers_url":"https://api.github.com/users/binarydev/followers","following_url":"https://api.github.com/users/binarydev/following{/other_user}","gists_url":"https://api.github.com/users/binarydev/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydev/subscriptions","organizations_url":"https://api.github.com/users/binarydev/orgs","repos_url":"https://api.github.com/users/binarydev/repos","events_url":"https://api.github.com/users/binarydev/events{/privacy}","received_events_url":"https://api.github.com/users/binarydev/received_events","type":"User","site_admin":false},"repo":{"id":59173932,"name":"rails","full_name":"binarydev/rails","owner":{"login":"binarydev","id":979630,"avatar_url":"https://avatars.githubusercontent.com/u/979630?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydev","html_url":"https://github.com/binarydev","followers_url":"https://api.github.com/users/binarydev/followers","following_url":"https://api.github.com/users/binarydev/following{/other_user}","gists_url":"https://api.github.com/users/binarydev/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydev/subscriptions","organizations_url":"https://api.github.com/users/binarydev/orgs","repos_url":"https://api.github.com/users/binarydev/repos","events_url":"https://api.github.com/users/binarydev/events{/privacy}","received_events_url":"https://api.github.com/users/binarydev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binarydev/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/binarydev/rails","forks_url":"https://api.github.com/repos/binarydev/rails/forks","keys_url":"https://api.github.com/repos/binarydev/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binarydev/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binarydev/rails/teams","hooks_url":"https://api.github.com/repos/binarydev/rails/hooks","issue_events_url":"https://api.github.com/repos/binarydev/rails/issues/events{/number}","events_url":"https://api.github.com/repos/binarydev/rails/events","assignees_url":"https://api.github.com/repos/binarydev/rails/assignees{/user}","branches_url":"https://api.github.com/repos/binarydev/rails/branches{/branch}","tags_url":"https://api.github.com/repos/binarydev/rails/tags","blobs_url":"https://api.github.com/repos/binarydev/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binarydev/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binarydev/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/binarydev/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binarydev/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/binarydev/rails/languages","stargazers_url":"https://api.github.com/repos/binarydev/rails/stargazers","contributors_url":"https://api.github.com/repos/binarydev/rails/contributors","subscribers_url":"https://api.github.com/repos/binarydev/rails/subscribers","subscription_url":"https://api.github.com/repos/binarydev/rails/subscription","commits_url":"https://api.github.com/repos/binarydev/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/binarydev/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/binarydev/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/binarydev/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/binarydev/rails/contents/{+path}","compare_url":"https://api.github.com/repos/binarydev/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binarydev/rails/merges","archive_url":"https://api.github.com/repos/binarydev/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binarydev/rails/downloads","issues_url":"https://api.github.com/repos/binarydev/rails/issues{/number}","pulls_url":"https://api.github.com/repos/binarydev/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/binarydev/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/binarydev/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binarydev/rails/labels{/name}","releases_url":"https://api.github.com/repos/binarydev/rails/releases{/id}","deployments_url":"https://api.github.com/repos/binarydev/rails/deployments","created_at":"2016-05-19T04:35:09Z","updated_at":"2016-05-19T04:36:14Z","pushed_at":"2016-05-19T05:12:34Z","git_url":"git://github.com/binarydev/rails.git","ssh_url":"git@github.com:binarydev/rails.git","clone_url":"https://github.com/binarydev/rails.git","svn_url":"https://github.com/binarydev/rails","homepage":"http://rubyonrails.org","size":136254,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"89e2f7e722e06f900bdb1c14db33073c90d7cdea","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-05-19T04:30:54Z","pushed_at":"2016-05-19T05:14:25Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":341865,"stargazers_count":31190,"watchers_count":31190,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12648,"mirror_url":null,"open_issues_count":988,"forks":12648,"open_issues":988,"watchers":31190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/25071"},"html":{"href":"https://github.com/rails/rails/pull/25071"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/25071"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/25071/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/25071/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/25071/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/463372ba97c988c90e96b1ab73ef12f4c8e02d11"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":42,"deletions":0,"changed_files":1}}