{"action":"created","comment":{"url":"https://api.github.com/repos/openstax/rescue_from/pulls/comments/40337791","id":40337791,"diff_hunk":"@@ -0,0 +1,62 @@\n+require 'rails/generators'\n+\n+module OpenStax\n+  module RescueFrom\n+    class InstallGenerator < Rails::Generators::Base\n+      source_root File.expand_path(\"../templates\", __FILE__)\n+\n+      def copy_templates\n+        copy_file \"any.html.erb\", \"app/views/errors/any.html.erb\"\n+      end\n+\n+      def copy_initializer\n+        copy_file \"rescue_from.rb\", \"config/initializers/rescue_from.rb\"\n+      end\n+\n+      def configure_environments\n+        test_file = \"test.rb\"\n+        test_middleware = <<-TEST\n+  config.middleware.use ExceptionNotification::Rack, email: {","path":"lib/generators/open_stax/rescue_from/install/install_generator.rb","position":19,"original_position":19,"commit_id":"af5422619f1fdc944344ed0b474b0766c3137925","original_commit_id":"af5422619f1fdc944344ed0b474b0766c3137925","user":{"login":"jpslav","id":1001691,"avatar_url":"https://avatars.githubusercontent.com/u/1001691?v=3","gravatar_id":"","url":"https://api.github.com/users/jpslav","html_url":"https://github.com/jpslav","followers_url":"https://api.github.com/users/jpslav/followers","following_url":"https://api.github.com/users/jpslav/following{/other_user}","gists_url":"https://api.github.com/users/jpslav/gists{/gist_id}","starred_url":"https://api.github.com/users/jpslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpslav/subscriptions","organizations_url":"https://api.github.com/users/jpslav/orgs","repos_url":"https://api.github.com/users/jpslav/repos","events_url":"https://api.github.com/users/jpslav/events{/privacy}","received_events_url":"https://api.github.com/users/jpslav/received_events","type":"User","site_admin":false},"body":"Yep.  All good.","created_at":"2015-09-24T16:08:40Z","updated_at":"2015-09-24T16:08:40Z","html_url":"https://github.com/openstax/rescue_from/pull/5#discussion_r40337791","pull_request_url":"https://api.github.com/repos/openstax/rescue_from/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/comments/40337791"},"html":{"href":"https://github.com/openstax/rescue_from/pull/5#discussion_r40337791"},"pull_request":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/openstax/rescue_from/pulls/5","id":45811509,"html_url":"https://github.com/openstax/rescue_from/pull/5","diff_url":"https://github.com/openstax/rescue_from/pull/5.diff","patch_url":"https://github.com/openstax/rescue_from/pull/5.patch","issue_url":"https://api.github.com/repos/openstax/rescue_from/issues/5","number":5,"state":"open","locked":false,"title":"Install generator","user":{"login":"joemsak","id":98936,"avatar_url":"https://avatars.githubusercontent.com/u/98936?v=3","gravatar_id":"","url":"https://api.github.com/users/joemsak","html_url":"https://github.com/joemsak","followers_url":"https://api.github.com/users/joemsak/followers","following_url":"https://api.github.com/users/joemsak/following{/other_user}","gists_url":"https://api.github.com/users/joemsak/gists{/gist_id}","starred_url":"https://api.github.com/users/joemsak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joemsak/subscriptions","organizations_url":"https://api.github.com/users/joemsak/orgs","repos_url":"https://api.github.com/users/joemsak/repos","events_url":"https://api.github.com/users/joemsak/events{/privacy}","received_events_url":"https://api.github.com/users/joemsak/received_events","type":"User","site_admin":false},"body":"Dependent on #2 and #4 ","created_at":"2015-09-23T18:08:00Z","updated_at":"2015-09-24T16:08:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c7778f067bed72a994c25f9e4a933b7eb15a9de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openstax/rescue_from/pulls/5/commits","review_comments_url":"https://api.github.com/repos/openstax/rescue_from/pulls/5/comments","review_comment_url":"https://api.github.com/repos/openstax/rescue_from/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstax/rescue_from/issues/5/comments","statuses_url":"https://api.github.com/repos/openstax/rescue_from/statuses/af5422619f1fdc944344ed0b474b0766c3137925","head":{"label":"openstax:install-generator","ref":"install-generator","sha":"af5422619f1fdc944344ed0b474b0766c3137925","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":42678097,"name":"rescue_from","full_name":"openstax/rescue_from","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/rescue_from","description":"","fork":false,"url":"https://api.github.com/repos/openstax/rescue_from","forks_url":"https://api.github.com/repos/openstax/rescue_from/forks","keys_url":"https://api.github.com/repos/openstax/rescue_from/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/rescue_from/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/rescue_from/teams","hooks_url":"https://api.github.com/repos/openstax/rescue_from/hooks","issue_events_url":"https://api.github.com/repos/openstax/rescue_from/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/rescue_from/events","assignees_url":"https://api.github.com/repos/openstax/rescue_from/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/rescue_from/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/rescue_from/tags","blobs_url":"https://api.github.com/repos/openstax/rescue_from/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/rescue_from/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/rescue_from/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/rescue_from/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/rescue_from/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/rescue_from/languages","stargazers_url":"https://api.github.com/repos/openstax/rescue_from/stargazers","contributors_url":"https://api.github.com/repos/openstax/rescue_from/contributors","subscribers_url":"https://api.github.com/repos/openstax/rescue_from/subscribers","subscription_url":"https://api.github.com/repos/openstax/rescue_from/subscription","commits_url":"https://api.github.com/repos/openstax/rescue_from/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/rescue_from/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/rescue_from/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/rescue_from/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/rescue_from/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/rescue_from/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/rescue_from/merges","archive_url":"https://api.github.com/repos/openstax/rescue_from/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/rescue_from/downloads","issues_url":"https://api.github.com/repos/openstax/rescue_from/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/rescue_from/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/rescue_from/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/rescue_from/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/rescue_from/labels{/name}","releases_url":"https://api.github.com/repos/openstax/rescue_from/releases{/id}","created_at":"2015-09-17T19:46:20Z","updated_at":"2015-09-17T20:09:48Z","pushed_at":"2015-09-24T02:35:11Z","git_url":"git://github.com/openstax/rescue_from.git","ssh_url":"git@github.com:openstax/rescue_from.git","clone_url":"https://github.com/openstax/rescue_from.git","svn_url":"https://github.com/openstax/rescue_from","homepage":null,"size":348,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"openstax:master","ref":"master","sha":"47a24b27c4f509279b79bb2c6b2a5986cd0f34e8","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":42678097,"name":"rescue_from","full_name":"openstax/rescue_from","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/rescue_from","description":"","fork":false,"url":"https://api.github.com/repos/openstax/rescue_from","forks_url":"https://api.github.com/repos/openstax/rescue_from/forks","keys_url":"https://api.github.com/repos/openstax/rescue_from/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/rescue_from/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/rescue_from/teams","hooks_url":"https://api.github.com/repos/openstax/rescue_from/hooks","issue_events_url":"https://api.github.com/repos/openstax/rescue_from/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/rescue_from/events","assignees_url":"https://api.github.com/repos/openstax/rescue_from/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/rescue_from/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/rescue_from/tags","blobs_url":"https://api.github.com/repos/openstax/rescue_from/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/rescue_from/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/rescue_from/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/rescue_from/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/rescue_from/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/rescue_from/languages","stargazers_url":"https://api.github.com/repos/openstax/rescue_from/stargazers","contributors_url":"https://api.github.com/repos/openstax/rescue_from/contributors","subscribers_url":"https://api.github.com/repos/openstax/rescue_from/subscribers","subscription_url":"https://api.github.com/repos/openstax/rescue_from/subscription","commits_url":"https://api.github.com/repos/openstax/rescue_from/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/rescue_from/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/rescue_from/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/rescue_from/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/rescue_from/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/rescue_from/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/rescue_from/merges","archive_url":"https://api.github.com/repos/openstax/rescue_from/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/rescue_from/downloads","issues_url":"https://api.github.com/repos/openstax/rescue_from/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/rescue_from/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/rescue_from/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/rescue_from/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/rescue_from/labels{/name}","releases_url":"https://api.github.com/repos/openstax/rescue_from/releases{/id}","created_at":"2015-09-17T19:46:20Z","updated_at":"2015-09-17T20:09:48Z","pushed_at":"2015-09-24T02:35:11Z","git_url":"git://github.com/openstax/rescue_from.git","ssh_url":"git@github.com:openstax/rescue_from.git","clone_url":"https://github.com/openstax/rescue_from.git","svn_url":"https://github.com/openstax/rescue_from","homepage":null,"size":348,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/5"},"html":{"href":"https://github.com/openstax/rescue_from/pull/5"},"issue":{"href":"https://api.github.com/repos/openstax/rescue_from/issues/5"},"comments":{"href":"https://api.github.com/repos/openstax/rescue_from/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstax/rescue_from/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/openstax/rescue_from/statuses/af5422619f1fdc944344ed0b474b0766c3137925"}}}}