{"action":"created","comment":{"url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/comments/24296973","id":24296973,"diff_hunk":"@@ -16,7 +16,10 @@ def show\n         response.headers['Content-Length'] = @person.v_card.size.to_s\n       }\n       format.pdf {\n-          pdf = Services::Token.generate_token_pdf(@person, settings.token_media)\n+          Rails.logger.info \"settings #{settings.token_media}\"\n+          \n+          pdf = Services::Token.generate_token_pdf(@person, settings.token_media,\n+                                        ServiceProvider.find_by_special_role(:registration).token_layout)","path":"app/controllers/people_controller.rb","position":8,"original_position":8,"commit_id":"9b078c5f30078a8c7c679395c28c1ca0c14994dd","original_commit_id":"9b078c5f30078a8c7c679395c28c1ca0c14994dd","user":{"login":"davidbernard","id":4053956,"avatar_url":"https://avatars.githubusercontent.com/u/4053956?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbernard","html_url":"https://github.com/davidbernard","followers_url":"https://api.github.com/users/davidbernard/followers","following_url":"https://api.github.com/users/davidbernard/following{/other_user}","gists_url":"https://api.github.com/users/davidbernard/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbernard/subscriptions","organizations_url":"https://api.github.com/users/davidbernard/orgs","repos_url":"https://api.github.com/users/davidbernard/repos","events_url":"https://api.github.com/users/davidbernard/events{/privacy}","received_events_url":"https://api.github.com/users/davidbernard/received_events","type":"User","site_admin":false},"body":"Agreed. The print wizard stuff could be used to generate specific paper forms for the service provider. Alternatively we could try using a report generator package. I am reasonable comfortable with the ability to layout at least simple single page forms using the current structure. These user stories need to be developed further. ","created_at":"2015-02-08T08:55:18Z","updated_at":"2015-02-08T08:55:18Z","html_url":"https://github.com/FirstStop/DisasterRegistration/pull/19#discussion_r24296973","pull_request_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/comments/24296973"},"html":{"href":"https://github.com/FirstStop/DisasterRegistration/pull/19#discussion_r24296973"},"pull_request":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19","id":28787079,"html_url":"https://github.com/FirstStop/DisasterRegistration/pull/19","diff_url":"https://github.com/FirstStop/DisasterRegistration/pull/19.diff","patch_url":"https://github.com/FirstStop/DisasterRegistration/pull/19.patch","issue_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/19","number":19,"state":"open","locked":false,"title":"Token Print Wizard","user":{"login":"davidbernard","id":4053956,"avatar_url":"https://avatars.githubusercontent.com/u/4053956?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbernard","html_url":"https://github.com/davidbernard","followers_url":"https://api.github.com/users/davidbernard/followers","following_url":"https://api.github.com/users/davidbernard/following{/other_user}","gists_url":"https://api.github.com/users/davidbernard/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbernard/subscriptions","organizations_url":"https://api.github.com/users/davidbernard/orgs","repos_url":"https://api.github.com/users/davidbernard/repos","events_url":"https://api.github.com/users/davidbernard/events{/privacy}","received_events_url":"https://api.github.com/users/davidbernard/received_events","type":"User","site_admin":false},"body":"Added :layout to Wizard Components\r\nWizard components with layouts are used to specify the layout of tokens.\r\nAdded PDFLayoutEngine to generate PDF of tokens from Wizard components.\r\nAdded :token_layout to ServiceProvider.\r\nIn seeds.db a token layout is added to the registration service provider and is the default for token generation.\r\nUpdated cucumber tests and unit tests.","created_at":"2015-02-06T06:01:33Z","updated_at":"2015-02-08T08:55:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6e4c84a2aa2ad1cc65d00c12d970c8e6781d398","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19/commits","review_comments_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19/comments","review_comment_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/19/comments","statuses_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/statuses/9b078c5f30078a8c7c679395c28c1ca0c14994dd","head":{"label":"davidbernard:token_print_wizard","ref":"token_print_wizard","sha":"9b078c5f30078a8c7c679395c28c1ca0c14994dd","user":{"login":"davidbernard","id":4053956,"avatar_url":"https://avatars.githubusercontent.com/u/4053956?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbernard","html_url":"https://github.com/davidbernard","followers_url":"https://api.github.com/users/davidbernard/followers","following_url":"https://api.github.com/users/davidbernard/following{/other_user}","gists_url":"https://api.github.com/users/davidbernard/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbernard/subscriptions","organizations_url":"https://api.github.com/users/davidbernard/orgs","repos_url":"https://api.github.com/users/davidbernard/repos","events_url":"https://api.github.com/users/davidbernard/events{/privacy}","received_events_url":"https://api.github.com/users/davidbernard/received_events","type":"User","site_admin":false},"repo":{"id":23377046,"name":"DisasterRegistration","full_name":"davidbernard/DisasterRegistration","owner":{"login":"davidbernard","id":4053956,"avatar_url":"https://avatars.githubusercontent.com/u/4053956?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbernard","html_url":"https://github.com/davidbernard","followers_url":"https://api.github.com/users/davidbernard/followers","following_url":"https://api.github.com/users/davidbernard/following{/other_user}","gists_url":"https://api.github.com/users/davidbernard/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbernard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbernard/subscriptions","organizations_url":"https://api.github.com/users/davidbernard/orgs","repos_url":"https://api.github.com/users/davidbernard/repos","events_url":"https://api.github.com/users/davidbernard/events{/privacy}","received_events_url":"https://api.github.com/users/davidbernard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidbernard/DisasterRegistration","description":"Blue Mountain Disaster Registration","fork":true,"url":"https://api.github.com/repos/davidbernard/DisasterRegistration","forks_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/forks","keys_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/teams","hooks_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/hooks","issue_events_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/issues/events{/number}","events_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/events","assignees_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/assignees{/user}","branches_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/branches{/branch}","tags_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/tags","blobs_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/statuses/{sha}","languages_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/languages","stargazers_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/stargazers","contributors_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/contributors","subscribers_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/subscribers","subscription_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/subscription","commits_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/issues/comments/{number}","contents_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/contents/{+path}","compare_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/merges","archive_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/downloads","issues_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/issues{/number}","pulls_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/pulls{/number}","milestones_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/milestones{/number}","notifications_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/labels{/name}","releases_url":"https://api.github.com/repos/davidbernard/DisasterRegistration/releases{/id}","created_at":"2014-08-27T04:43:15Z","updated_at":"2015-02-04T01:52:03Z","pushed_at":"2015-02-06T06:00:26Z","git_url":"git://github.com/davidbernard/DisasterRegistration.git","ssh_url":"git@github.com:davidbernard/DisasterRegistration.git","clone_url":"https://github.com/davidbernard/DisasterRegistration.git","svn_url":"https://github.com/davidbernard/DisasterRegistration","homepage":null,"size":4069,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"FirstStop:master","ref":"master","sha":"18f7037a678b69fbb1aa5353dc5861ae47f87ea7","user":{"login":"FirstStop","id":10102806,"avatar_url":"https://avatars.githubusercontent.com/u/10102806?v=3","gravatar_id":"","url":"https://api.github.com/users/FirstStop","html_url":"https://github.com/FirstStop","followers_url":"https://api.github.com/users/FirstStop/followers","following_url":"https://api.github.com/users/FirstStop/following{/other_user}","gists_url":"https://api.github.com/users/FirstStop/gists{/gist_id}","starred_url":"https://api.github.com/users/FirstStop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirstStop/subscriptions","organizations_url":"https://api.github.com/users/FirstStop/orgs","repos_url":"https://api.github.com/users/FirstStop/repos","events_url":"https://api.github.com/users/FirstStop/events{/privacy}","received_events_url":"https://api.github.com/users/FirstStop/received_events","type":"Organization","site_admin":false},"repo":{"id":20350305,"name":"DisasterRegistration","full_name":"FirstStop/DisasterRegistration","owner":{"login":"FirstStop","id":10102806,"avatar_url":"https://avatars.githubusercontent.com/u/10102806?v=3","gravatar_id":"","url":"https://api.github.com/users/FirstStop","html_url":"https://github.com/FirstStop","followers_url":"https://api.github.com/users/FirstStop/followers","following_url":"https://api.github.com/users/FirstStop/following{/other_user}","gists_url":"https://api.github.com/users/FirstStop/gists{/gist_id}","starred_url":"https://api.github.com/users/FirstStop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirstStop/subscriptions","organizations_url":"https://api.github.com/users/FirstStop/orgs","repos_url":"https://api.github.com/users/FirstStop/repos","events_url":"https://api.github.com/users/FirstStop/events{/privacy}","received_events_url":"https://api.github.com/users/FirstStop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FirstStop/DisasterRegistration","description":"Blue Mountain Disaster Registration","fork":false,"url":"https://api.github.com/repos/FirstStop/DisasterRegistration","forks_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/forks","keys_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/teams","hooks_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/hooks","issue_events_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/events{/number}","events_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/events","assignees_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/assignees{/user}","branches_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/branches{/branch}","tags_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/tags","blobs_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/git/refs{/sha}","trees_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/statuses/{sha}","languages_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/languages","stargazers_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/stargazers","contributors_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/contributors","subscribers_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/subscribers","subscription_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/subscription","commits_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/commits{/sha}","git_commits_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/git/commits{/sha}","comments_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/comments{/number}","issue_comment_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/comments/{number}","contents_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/contents/{+path}","compare_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/merges","archive_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/downloads","issues_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues{/number}","pulls_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls{/number}","milestones_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/milestones{/number}","notifications_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/labels{/name}","releases_url":"https://api.github.com/repos/FirstStop/DisasterRegistration/releases{/id}","created_at":"2014-05-31T06:13:25Z","updated_at":"2015-01-28T08:16:26Z","pushed_at":"2015-01-28T08:26:26Z","git_url":"git://github.com/FirstStop/DisasterRegistration.git","ssh_url":"git@github.com:FirstStop/DisasterRegistration.git","clone_url":"https://github.com/FirstStop/DisasterRegistration.git","svn_url":"https://github.com/FirstStop/DisasterRegistration","homepage":null,"size":4717,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19"},"html":{"href":"https://github.com/FirstStop/DisasterRegistration/pull/19"},"issue":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/19"},"comments":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/FirstStop/DisasterRegistration/statuses/9b078c5f30078a8c7c679395c28c1ca0c14994dd"}}}}