GitHub PullRequestEvent at 2014-07-03 22:07:05
Repository: csv_shaper
Actor: adamcooper
Payload: {"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/zozi/csv_shaper/pulls/1","id":17971108,"html_url":"https://github.com/zozi/csv_shaper/pull/1","diff_url":"https://github.com/zozi/csv_shaper/pull/1.diff","patch_url":"https://github.com/zozi/csv_shaper/pull/1.patch","issue_url":"https://api.github.com/repos/zozi/csv_shaper/issues/1","number":1,"state":"open","title":"Add inflector option","user":{"login":"adamcooper","id":12883,"avatar_url":"https://avatars.githubusercontent.com/u/12883?","gravatar_id":"667bc7479ca9f34ee86b780ba23663e8","url":"https://api.github.com/users/adamcooper","html_url":"https://github.com/adamcooper","followers_url":"https://api.github.com/users/adamcooper/followers","following_url":"https://api.github.com/users/adamcooper/following{/other_user}","gists_url":"https://api.github.com/users/adamcooper/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcooper/subscriptions","organizations_url":"https://api.github.com/users/adamcooper/orgs","repos_url":"https://api.github.com/users/adamcooper/repos","events_url":"https://api.github.com/users/adamcooper/events{/privacy}","received_events_url":"https://api.github.com/users/adamcooper/received_events","type":"User","site_admin":false},"body":"For now you can specify inflector for header column:\r\n\r\nExample:\r\n\r\n```ruby\r\ncsv.headers do |csv|\r\n  csv.columns :name, :age, :location\r\n  csv.mappings name: 'Full name', location: 'Region'\r\n  csv.inflector :titleize\r\nend\r\n```\r\n\r\nor\r\n\r\n```ruby\r\nCsvShaper.configure do |config|\r\n  config.header_inflector = :titleize\r\nend\r\n```\r\nor\r\n\r\n```ruby\r\ncsv_string = CsvShaper::Shaper.encode(header_inflector: :titleize) do |csv|\r\n  ...\r\nend\r\n```","created_at":"2014-07-03T22:07:05Z","updated_at":"2014-07-03T22:07:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zozi/csv_shaper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/zozi/csv_shaper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/zozi/csv_shaper/pulls/comments/{number}","comments_url":"https://api.github.com/repos/zozi/csv_shaper/issues/1/comments","statuses_url":"https://api.github.com/repos/zozi/csv_shaper/statuses/c9a982cb2b2f08ba8bd48ba7d6d3a6cd6314a53f","head":{"label":"antonzimin:add_inflector_option","ref":"add_inflector_option","sha":"c9a982cb2b2f08ba8bd48ba7d6d3a6cd6314a53f","user":{"login":"antonzimin","id":591457,"avatar_url":"https://avatars.githubusercontent.com/u/591457?","gravatar_id":"6cb24937690b568fc39c86b1c2e4161e","url":"https://api.github.com/users/antonzimin","html_url":"https://github.com/antonzimin","followers_url":"https://api.github.com/users/antonzimin/followers","following_url":"https://api.github.com/users/antonzimin/following{/other_user}","gists_url":"https://api.github.com/users/antonzimin/gists{/gist_id}","starred_url":"https://api.github.com/users/antonzimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonzimin/subscriptions","organizations_url":"https://api.github.com/users/antonzimin/orgs","repos_url":"https://api.github.com/users/antonzimin/repos","events_url":"https://api.github.com/users/antonzimin/events{/privacy}","received_events_url":"https://api.github.com/users/antonzimin/received_events","type":"User","site_admin":false},"repo":{"id":21271282,"name":"csv_shaper","full_name":"antonzimin/csv_shaper","owner":{"login":"antonzimin","id":591457,"avatar_url":"https://avatars.githubusercontent.com/u/591457?","gravatar_id":"6cb24937690b568fc39c86b1c2e4161e","url":"https://api.github.com/users/antonzimin","html_url":"https://github.com/antonzimin","followers_url":"https://api.github.com/users/antonzimin/followers","following_url":"https://api.github.com/users/antonzimin/following{/other_user}","gists_url":"https://api.github.com/users/antonzimin/gists{/gist_id}","starred_url":"https://api.github.com/users/antonzimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonzimin/subscriptions","organizations_url":"https://api.github.com/users/antonzimin/orgs","repos_url":"https://api.github.com/users/antonzimin/repos","events_url":"https://api.github.com/users/antonzimin/events{/privacy}","received_events_url":"https://api.github.com/users/antonzimin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antonzimin/csv_shaper","description":"Beautiful DSL for creating CSV output in Ruby & Rails","fork":true,"url":"https://api.github.com/repos/antonzimin/csv_shaper","forks_url":"https://api.github.com/repos/antonzimin/csv_shaper/forks","keys_url":"https://api.github.com/repos/antonzimin/csv_shaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antonzimin/csv_shaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antonzimin/csv_shaper/teams","hooks_url":"https://api.github.com/repos/antonzimin/csv_shaper/hooks","issue_events_url":"https://api.github.com/repos/antonzimin/csv_shaper/issues/events{/number}","events_url":"https://api.github.com/repos/antonzimin/csv_shaper/events","assignees_url":"https://api.github.com/repos/antonzimin/csv_shaper/assignees{/user}","branches_url":"https://api.github.com/repos/antonzimin/csv_shaper/branches{/branch}","tags_url":"https://api.github.com/repos/antonzimin/csv_shaper/tags","blobs_url":"https://api.github.com/repos/antonzimin/csv_shaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antonzimin/csv_shaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antonzimin/csv_shaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/antonzimin/csv_shaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antonzimin/csv_shaper/statuses/{sha}","languages_url":"https://api.github.com/repos/antonzimin/csv_shaper/languages","stargazers_url":"https://api.github.com/repos/antonzimin/csv_shaper/stargazers","contributors_url":"https://api.github.com/repos/antonzimin/csv_shaper/contributors","subscribers_url":"https://api.github.com/repos/antonzimin/csv_shaper/subscribers","subscription_url":"https://api.github.com/repos/antonzimin/csv_shaper/subscription","commits_url":"https://api.github.com/repos/antonzimin/csv_shaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/antonzimin/csv_shaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/antonzimin/csv_shaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/antonzimin/csv_shaper/issues/comments/{number}","contents_url":"https://api.github.com/repos/antonzimin/csv_shaper/contents/{+path}","compare_url":"https://api.github.com/repos/antonzimin/csv_shaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antonzimin/csv_shaper/merges","archive_url":"https://api.github.com/repos/antonzimin/csv_shaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antonzimin/csv_shaper/downloads","issues_url":"https://api.github.com/repos/antonzimin/csv_shaper/issues{/number}","pulls_url":"https://api.github.com/repos/antonzimin/csv_shaper/pulls{/number}","milestones_url":"https://api.github.com/repos/antonzimin/csv_shaper/milestones{/number}","notifications_url":"https://api.github.com/repos/antonzimin/csv_shaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antonzimin/csv_shaper/labels{/name}","releases_url":"https://api.github.com/repos/antonzimin/csv_shaper/releases{/id}","created_at":"2014-06-27T09:50:29Z","updated_at":"2014-06-10T06:52:58Z","pushed_at":"2014-07-03T13:25:38Z","git_url":"git://github.com/antonzimin/csv_shaper.git","ssh_url":"git@github.com:antonzimin/csv_shaper.git","clone_url":"https://github.com/antonzimin/csv_shaper.git","svn_url":"https://github.com/antonzimin/csv_shaper","homepage":"","size":267,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zozi:master","ref":"master","sha":"f354295bba0124ff5248240cc81f4a5392eb3332","user":{"login":"zozi","id":210845,"avatar_url":"https://avatars.githubusercontent.com/u/210845?","gravatar_id":"c2ab644a0c465fcb39500c608340d3f8","url":"https://api.github.com/users/zozi","html_url":"https://github.com/zozi","followers_url":"https://api.github.com/users/zozi/followers","following_url":"https://api.github.com/users/zozi/following{/other_user}","gists_url":"https://api.github.com/users/zozi/gists{/gist_id}","starred_url":"https://api.github.com/users/zozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zozi/subscriptions","organizations_url":"https://api.github.com/users/zozi/orgs","repos_url":"https://api.github.com/users/zozi/repos","events_url":"https://api.github.com/users/zozi/events{/privacy}","received_events_url":"https://api.github.com/users/zozi/received_events","type":"Organization","site_admin":false},"repo":{"id":21478306,"name":"csv_shaper","full_name":"zozi/csv_shaper","owner":{"login":"zozi","id":210845,"avatar_url":"https://avatars.githubusercontent.com/u/210845?","gravatar_id":"c2ab644a0c465fcb39500c608340d3f8","url":"https://api.github.com/users/zozi","html_url":"https://github.com/zozi","followers_url":"https://api.github.com/users/zozi/followers","following_url":"https://api.github.com/users/zozi/following{/other_user}","gists_url":"https://api.github.com/users/zozi/gists{/gist_id}","starred_url":"https://api.github.com/users/zozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zozi/subscriptions","organizations_url":"https://api.github.com/users/zozi/orgs","repos_url":"https://api.github.com/users/zozi/repos","events_url":"https://api.github.com/users/zozi/events{/privacy}","received_events_url":"https://api.github.com/users/zozi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zozi/csv_shaper","description":"Beautiful DSL for creating CSV output in Ruby & Rails","fork":true,"url":"https://api.github.com/repos/zozi/csv_shaper","forks_url":"https://api.github.com/repos/zozi/csv_shaper/forks","keys_url":"https://api.github.com/repos/zozi/csv_shaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zozi/csv_shaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zozi/csv_shaper/teams","hooks_url":"https://api.github.com/repos/zozi/csv_shaper/hooks","issue_events_url":"https://api.github.com/repos/zozi/csv_shaper/issues/events{/number}","events_url":"https://api.github.com/repos/zozi/csv_shaper/events","assignees_url":"https://api.github.com/repos/zozi/csv_shaper/assignees{/user}","branches_url":"https://api.github.com/repos/zozi/csv_shaper/branches{/branch}","tags_url":"https://api.github.com/repos/zozi/csv_shaper/tags","blobs_url":"https://api.github.com/repos/zozi/csv_shaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zozi/csv_shaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zozi/csv_shaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zozi/csv_shaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zozi/csv_shaper/statuses/{sha}","languages_url":"https://api.github.com/repos/zozi/csv_shaper/languages","stargazers_url":"https://api.github.com/repos/zozi/csv_shaper/stargazers","contributors_url":"https://api.github.com/repos/zozi/csv_shaper/contributors","subscribers_url":"https://api.github.com/repos/zozi/csv_shaper/subscribers","subscription_url":"https://api.github.com/repos/zozi/csv_shaper/subscription","commits_url":"https://api.github.com/repos/zozi/csv_shaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zozi/csv_shaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zozi/csv_shaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zozi/csv_shaper/issues/comments/{number}","contents_url":"https://api.github.com/repos/zozi/csv_shaper/contents/{+path}","compare_url":"https://api.github.com/repos/zozi/csv_shaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zozi/csv_shaper/merges","archive_url":"https://api.github.com/repos/zozi/csv_shaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zozi/csv_shaper/downloads","issues_url":"https://api.github.com/repos/zozi/csv_shaper/issues{/number}","pulls_url":"https://api.github.com/repos/zozi/csv_shaper/pulls{/number}","milestones_url":"https://api.github.com/repos/zozi/csv_shaper/milestones{/number}","notifications_url":"https://api.github.com/repos/zozi/csv_shaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zozi/csv_shaper/labels{/name}","releases_url":"https://api.github.com/repos/zozi/csv_shaper/releases{/id}","created_at":"2014-07-03T22:04:59Z","updated_at":"2014-06-10T06:52:58Z","pushed_at":"2014-05-14T09:01:00Z","git_url":"git://github.com/zozi/csv_shaper.git","ssh_url":"git@github.com:zozi/csv_shaper.git","clone_url":"https://github.com/zozi/csv_shaper.git","svn_url":"https://github.com/zozi/csv_shaper","homepage":"","size":596,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zozi/csv_shaper/pulls/1"},"html":{"href":"https://github.com/zozi/csv_shaper/pull/1"},"issue":{"href":"https://api.github.com/repos/zozi/csv_shaper/issues/1"},"comments":{"href":"https://api.github.com/repos/zozi/csv_shaper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/zozi/csv_shaper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/zozi/csv_shaper/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/zozi/csv_shaper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/zozi/csv_shaper/statuses/c9a982cb2b2f08ba8bd48ba7d6d3a6cd6314a53f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":105,"deletions":51,"changed_files":8}}