GitHub PullRequestReviewCommentEvent at 2014-11-17 15:53:00
Repository: mrz
Actor: kurbaitis
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/smartpension/mrz/pulls/comments/20443364","id":20443364,"diff_hunk":"@@ -0,0 +1,26 @@\n+module Mrz\n+  module Formatters\n+    class Name < Base\n+\n+      attr_accessor :first_name, :last_name\n+\n+      def initialize(first_name, last_name)\n+        @first_name = first_name\n+        @last_name = last_name\n+      end\n+\n+      def format\n+        name = remove_empty_chars(last_name + SEPARATOR * 2 + first_name).upcase\n+        name = Encoder.new(name).convert\n+        pad_out(name, 39)","path":"lib/mrz/formatters/name.rb","position":15,"original_position":15,"commit_id":"ab6ed6297cbce4182ee0f654c86860f26b40ca4e","original_commit_id":"ab6ed6297cbce4182ee0f654c86860f26b40ca4e","user":{"login":"kurbaitis","id":4309697,"avatar_url":"https://avatars.githubusercontent.com/u/4309697?v=3","gravatar_id":"","url":"https://api.github.com/users/kurbaitis","html_url":"https://github.com/kurbaitis","followers_url":"https://api.github.com/users/kurbaitis/followers","following_url":"https://api.github.com/users/kurbaitis/following{/other_user}","gists_url":"https://api.github.com/users/kurbaitis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurbaitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurbaitis/subscriptions","organizations_url":"https://api.github.com/users/kurbaitis/orgs","repos_url":"https://api.github.com/users/kurbaitis/repos","events_url":"https://api.github.com/users/kurbaitis/events{/privacy}","received_events_url":"https://api.github.com/users/kurbaitis/received_events","type":"User","site_admin":false},"body":"mAGIC NUMBER","created_at":"2014-11-17T15:53:00Z","updated_at":"2014-11-17T15:53:00Z","html_url":"https://github.com/smartpension/mrz/pull/1#discussion_r20443364","pull_request_url":"https://api.github.com/repos/smartpension/mrz/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/smartpension/mrz/pulls/comments/20443364"},"html":{"href":"https://github.com/smartpension/mrz/pull/1#discussion_r20443364"},"pull_request":{"href":"https://api.github.com/repos/smartpension/mrz/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/smartpension/mrz/pulls/1","id":24544438,"html_url":"https://github.com/smartpension/mrz/pull/1","diff_url":"https://github.com/smartpension/mrz/pull/1.diff","patch_url":"https://github.com/smartpension/mrz/pull/1.patch","issue_url":"https://api.github.com/repos/smartpension/mrz/issues/1","number":1,"state":"open","locked":false,"title":"Encapsulated formatters","user":{"login":"kurbaitis","id":4309697,"avatar_url":"https://avatars.githubusercontent.com/u/4309697?v=3","gravatar_id":"","url":"https://api.github.com/users/kurbaitis","html_url":"https://github.com/kurbaitis","followers_url":"https://api.github.com/users/kurbaitis/followers","following_url":"https://api.github.com/users/kurbaitis/following{/other_user}","gists_url":"https://api.github.com/users/kurbaitis/gists{/gist_id}","starred_url":"https://api.github.com/users/kurbaitis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurbaitis/subscriptions","organizations_url":"https://api.github.com/users/kurbaitis/orgs","repos_url":"https://api.github.com/users/kurbaitis/repos","events_url":"https://api.github.com/users/kurbaitis/events{/privacy}","received_events_url":"https://api.github.com/users/kurbaitis/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-17T15:51:53Z","updated_at":"2014-11-17T15:53:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3131c5abe28606991b54f64c817cfd6ce4f066e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smartpension/mrz/pulls/1/commits","review_comments_url":"https://api.github.com/repos/smartpension/mrz/pulls/1/comments","review_comment_url":"https://api.github.com/repos/smartpension/mrz/pulls/comments/{number}","comments_url":"https://api.github.com/repos/smartpension/mrz/issues/1/comments","statuses_url":"https://api.github.com/repos/smartpension/mrz/statuses/ab6ed6297cbce4182ee0f654c86860f26b40ca4e","head":{"label":"smartpension:features/formatters","ref":"features/formatters","sha":"ab6ed6297cbce4182ee0f654c86860f26b40ca4e","user":{"login":"smartpension","id":8361143,"avatar_url":"https://avatars.githubusercontent.com/u/8361143?v=3","gravatar_id":"","url":"https://api.github.com/users/smartpension","html_url":"https://github.com/smartpension","followers_url":"https://api.github.com/users/smartpension/followers","following_url":"https://api.github.com/users/smartpension/following{/other_user}","gists_url":"https://api.github.com/users/smartpension/gists{/gist_id}","starred_url":"https://api.github.com/users/smartpension/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartpension/subscriptions","organizations_url":"https://api.github.com/users/smartpension/orgs","repos_url":"https://api.github.com/users/smartpension/repos","events_url":"https://api.github.com/users/smartpension/events{/privacy}","received_events_url":"https://api.github.com/users/smartpension/received_events","type":"Organization","site_admin":false},"repo":{"id":26482979,"name":"mrz","full_name":"smartpension/mrz","owner":{"login":"smartpension","id":8361143,"avatar_url":"https://avatars.githubusercontent.com/u/8361143?v=3","gravatar_id":"","url":"https://api.github.com/users/smartpension","html_url":"https://github.com/smartpension","followers_url":"https://api.github.com/users/smartpension/followers","following_url":"https://api.github.com/users/smartpension/following{/other_user}","gists_url":"https://api.github.com/users/smartpension/gists{/gist_id}","starred_url":"https://api.github.com/users/smartpension/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartpension/subscriptions","organizations_url":"https://api.github.com/users/smartpension/orgs","repos_url":"https://api.github.com/users/smartpension/repos","events_url":"https://api.github.com/users/smartpension/events{/privacy}","received_events_url":"https://api.github.com/users/smartpension/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartpension/mrz","description":"","fork":false,"url":"https://api.github.com/repos/smartpension/mrz","forks_url":"https://api.github.com/repos/smartpension/mrz/forks","keys_url":"https://api.github.com/repos/smartpension/mrz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartpension/mrz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartpension/mrz/teams","hooks_url":"https://api.github.com/repos/smartpension/mrz/hooks","issue_events_url":"https://api.github.com/repos/smartpension/mrz/issues/events{/number}","events_url":"https://api.github.com/repos/smartpension/mrz/events","assignees_url":"https://api.github.com/repos/smartpension/mrz/assignees{/user}","branches_url":"https://api.github.com/repos/smartpension/mrz/branches{/branch}","tags_url":"https://api.github.com/repos/smartpension/mrz/tags","blobs_url":"https://api.github.com/repos/smartpension/mrz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartpension/mrz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartpension/mrz/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartpension/mrz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartpension/mrz/statuses/{sha}","languages_url":"https://api.github.com/repos/smartpension/mrz/languages","stargazers_url":"https://api.github.com/repos/smartpension/mrz/stargazers","contributors_url":"https://api.github.com/repos/smartpension/mrz/contributors","subscribers_url":"https://api.github.com/repos/smartpension/mrz/subscribers","subscription_url":"https://api.github.com/repos/smartpension/mrz/subscription","commits_url":"https://api.github.com/repos/smartpension/mrz/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartpension/mrz/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartpension/mrz/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartpension/mrz/issues/comments/{number}","contents_url":"https://api.github.com/repos/smartpension/mrz/contents/{+path}","compare_url":"https://api.github.com/repos/smartpension/mrz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartpension/mrz/merges","archive_url":"https://api.github.com/repos/smartpension/mrz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartpension/mrz/downloads","issues_url":"https://api.github.com/repos/smartpension/mrz/issues{/number}","pulls_url":"https://api.github.com/repos/smartpension/mrz/pulls{/number}","milestones_url":"https://api.github.com/repos/smartpension/mrz/milestones{/number}","notifications_url":"https://api.github.com/repos/smartpension/mrz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartpension/mrz/labels{/name}","releases_url":"https://api.github.com/repos/smartpension/mrz/releases{/id}","created_at":"2014-11-11T11:54:53Z","updated_at":"2014-11-11T11:56:38Z","pushed_at":"2014-11-17T15:31:44Z","git_url":"git://github.com/smartpension/mrz.git","ssh_url":"git@github.com:smartpension/mrz.git","clone_url":"https://github.com/smartpension/mrz.git","svn_url":"https://github.com/smartpension/mrz","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"smartpension:master","ref":"master","sha":"8f0752bfffb894d3c6e375f9ebc971ba42a5ad84","user":{"login":"smartpension","id":8361143,"avatar_url":"https://avatars.githubusercontent.com/u/8361143?v=3","gravatar_id":"","url":"https://api.github.com/users/smartpension","html_url":"https://github.com/smartpension","followers_url":"https://api.github.com/users/smartpension/followers","following_url":"https://api.github.com/users/smartpension/following{/other_user}","gists_url":"https://api.github.com/users/smartpension/gists{/gist_id}","starred_url":"https://api.github.com/users/smartpension/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartpension/subscriptions","organizations_url":"https://api.github.com/users/smartpension/orgs","repos_url":"https://api.github.com/users/smartpension/repos","events_url":"https://api.github.com/users/smartpension/events{/privacy}","received_events_url":"https://api.github.com/users/smartpension/received_events","type":"Organization","site_admin":false},"repo":{"id":26482979,"name":"mrz","full_name":"smartpension/mrz","owner":{"login":"smartpension","id":8361143,"avatar_url":"https://avatars.githubusercontent.com/u/8361143?v=3","gravatar_id":"","url":"https://api.github.com/users/smartpension","html_url":"https://github.com/smartpension","followers_url":"https://api.github.com/users/smartpension/followers","following_url":"https://api.github.com/users/smartpension/following{/other_user}","gists_url":"https://api.github.com/users/smartpension/gists{/gist_id}","starred_url":"https://api.github.com/users/smartpension/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartpension/subscriptions","organizations_url":"https://api.github.com/users/smartpension/orgs","repos_url":"https://api.github.com/users/smartpension/repos","events_url":"https://api.github.com/users/smartpension/events{/privacy}","received_events_url":"https://api.github.com/users/smartpension/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartpension/mrz","description":"","fork":false,"url":"https://api.github.com/repos/smartpension/mrz","forks_url":"https://api.github.com/repos/smartpension/mrz/forks","keys_url":"https://api.github.com/repos/smartpension/mrz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartpension/mrz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartpension/mrz/teams","hooks_url":"https://api.github.com/repos/smartpension/mrz/hooks","issue_events_url":"https://api.github.com/repos/smartpension/mrz/issues/events{/number}","events_url":"https://api.github.com/repos/smartpension/mrz/events","assignees_url":"https://api.github.com/repos/smartpension/mrz/assignees{/user}","branches_url":"https://api.github.com/repos/smartpension/mrz/branches{/branch}","tags_url":"https://api.github.com/repos/smartpension/mrz/tags","blobs_url":"https://api.github.com/repos/smartpension/mrz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartpension/mrz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartpension/mrz/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartpension/mrz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartpension/mrz/statuses/{sha}","languages_url":"https://api.github.com/repos/smartpension/mrz/languages","stargazers_url":"https://api.github.com/repos/smartpension/mrz/stargazers","contributors_url":"https://api.github.com/repos/smartpension/mrz/contributors","subscribers_url":"https://api.github.com/repos/smartpension/mrz/subscribers","subscription_url":"https://api.github.com/repos/smartpension/mrz/subscription","commits_url":"https://api.github.com/repos/smartpension/mrz/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartpension/mrz/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartpension/mrz/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartpension/mrz/issues/comments/{number}","contents_url":"https://api.github.com/repos/smartpension/mrz/contents/{+path}","compare_url":"https://api.github.com/repos/smartpension/mrz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartpension/mrz/merges","archive_url":"https://api.github.com/repos/smartpension/mrz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartpension/mrz/downloads","issues_url":"https://api.github.com/repos/smartpension/mrz/issues{/number}","pulls_url":"https://api.github.com/repos/smartpension/mrz/pulls{/number}","milestones_url":"https://api.github.com/repos/smartpension/mrz/milestones{/number}","notifications_url":"https://api.github.com/repos/smartpension/mrz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartpension/mrz/labels{/name}","releases_url":"https://api.github.com/repos/smartpension/mrz/releases{/id}","created_at":"2014-11-11T11:54:53Z","updated_at":"2014-11-11T11:56:38Z","pushed_at":"2014-11-17T15:31:44Z","git_url":"git://github.com/smartpension/mrz.git","ssh_url":"git@github.com:smartpension/mrz.git","clone_url":"https://github.com/smartpension/mrz.git","svn_url":"https://github.com/smartpension/mrz","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/smartpension/mrz/pulls/1"},"html":{"href":"https://github.com/smartpension/mrz/pull/1"},"issue":{"href":"https://api.github.com/repos/smartpension/mrz/issues/1"},"comments":{"href":"https://api.github.com/repos/smartpension/mrz/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/smartpension/mrz/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/smartpension/mrz/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/smartpension/mrz/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/smartpension/mrz/statuses/ab6ed6297cbce4182ee0f654c86860f26b40ca4e"}}}}