{"action":"closed","number":106,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler-api/pulls/106","id":44882885,"html_url":"https://github.com/bundler/bundler-api/pull/106","diff_url":"https://github.com/bundler/bundler-api/pull/106.diff","patch_url":"https://github.com/bundler/bundler-api/pull/106.patch","issue_url":"https://api.github.com/repos/bundler/bundler-api/issues/106","number":106,"state":"closed","locked":false,"title":"Fixes so script/web works","user":{"login":"smellsblue","id":150632,"avatar_url":"https://avatars.githubusercontent.com/u/150632?v=3","gravatar_id":"","url":"https://api.github.com/users/smellsblue","html_url":"https://github.com/smellsblue","followers_url":"https://api.github.com/users/smellsblue/followers","following_url":"https://api.github.com/users/smellsblue/following{/other_user}","gists_url":"https://api.github.com/users/smellsblue/gists{/gist_id}","starred_url":"https://api.github.com/users/smellsblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smellsblue/subscriptions","organizations_url":"https://api.github.com/users/smellsblue/orgs","repos_url":"https://api.github.com/users/smellsblue/repos","events_url":"https://api.github.com/users/smellsblue/events{/privacy}","received_events_url":"https://api.github.com/users/smellsblue/received_events","type":"User","site_admin":false},"body":"After a fresh checkout, I ran script/setup which didn't give any errors, so I ran script/web to start the server. It gave 2 errors, which this PR fixes. After I made this patch, it all started fine and seems to work ok.\r\n\r\nThe errors I got:\r\n\r\n```sh\r\n~/ws/bundler-api/lib/bundler_api/metriks.rb:8:in `start': undefined method `new' for BundlerApi::Metriks:Module (NoMethodError)\r\n\tfrom puma.rb:6:in `_load_from'\r\n\tfrom ~/.rvm/gems/ruby-2.2.2/gems/puma-2.11.3/lib/puma/dsl.rb:20:in `instance_eval'\r\n```\r\n\r\n```sh\r\n~/ws/bundler-api/lib/bundler_api/metriks.rb:8:in `start': undefined method `start' for #<BundlerApi::Metriks:0x00000002459fc8> (NoMethodError)\r\n\tfrom puma.rb:6:in `_load_from'\r\n\tfrom ~/.rvm/gems/ruby-2.2.2/gems/puma-2.11.3/lib/puma/dsl.rb:20:in `instance_eval'\r\n```\r\n\r\nI did the most straightforward fix for now... I made the Metriks module a class so new will work, and I dropped the call to start in Metriks::start, as Metriks#initialize seems to already be making the intended start call.","created_at":"2015-09-13T22:55:26Z","updated_at":"2015-09-13T22:56:30Z","closed_at":"2015-09-13T22:56:30Z","merged_at":"2015-09-13T22:56:30Z","merge_commit_sha":"e642397c91f9c8ef1048e5c6d9e0ec9af701a3c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/bundler-api/pulls/106/commits","review_comments_url":"https://api.github.com/repos/bundler/bundler-api/pulls/106/comments","review_comment_url":"https://api.github.com/repos/bundler/bundler-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bundler/bundler-api/issues/106/comments","statuses_url":"https://api.github.com/repos/bundler/bundler-api/statuses/e12963d1f22246488b0ea960d3308c22be20121a","head":{"label":"smellsblue:script-web-fixes","ref":"script-web-fixes","sha":"e12963d1f22246488b0ea960d3308c22be20121a","user":{"login":"smellsblue","id":150632,"avatar_url":"https://avatars.githubusercontent.com/u/150632?v=3","gravatar_id":"","url":"https://api.github.com/users/smellsblue","html_url":"https://github.com/smellsblue","followers_url":"https://api.github.com/users/smellsblue/followers","following_url":"https://api.github.com/users/smellsblue/following{/other_user}","gists_url":"https://api.github.com/users/smellsblue/gists{/gist_id}","starred_url":"https://api.github.com/users/smellsblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smellsblue/subscriptions","organizations_url":"https://api.github.com/users/smellsblue/orgs","repos_url":"https://api.github.com/users/smellsblue/repos","events_url":"https://api.github.com/users/smellsblue/events{/privacy}","received_events_url":"https://api.github.com/users/smellsblue/received_events","type":"User","site_admin":false},"repo":{"id":42414520,"name":"bundler-api","full_name":"smellsblue/bundler-api","owner":{"login":"smellsblue","id":150632,"avatar_url":"https://avatars.githubusercontent.com/u/150632?v=3","gravatar_id":"","url":"https://api.github.com/users/smellsblue","html_url":"https://github.com/smellsblue","followers_url":"https://api.github.com/users/smellsblue/followers","following_url":"https://api.github.com/users/smellsblue/following{/other_user}","gists_url":"https://api.github.com/users/smellsblue/gists{/gist_id}","starred_url":"https://api.github.com/users/smellsblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smellsblue/subscriptions","organizations_url":"https://api.github.com/users/smellsblue/orgs","repos_url":"https://api.github.com/users/smellsblue/repos","events_url":"https://api.github.com/users/smellsblue/events{/privacy}","received_events_url":"https://api.github.com/users/smellsblue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smellsblue/bundler-api","description":"Bundler 1.1+ API","fork":true,"url":"https://api.github.com/repos/smellsblue/bundler-api","forks_url":"https://api.github.com/repos/smellsblue/bundler-api/forks","keys_url":"https://api.github.com/repos/smellsblue/bundler-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smellsblue/bundler-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smellsblue/bundler-api/teams","hooks_url":"https://api.github.com/repos/smellsblue/bundler-api/hooks","issue_events_url":"https://api.github.com/repos/smellsblue/bundler-api/issues/events{/number}","events_url":"https://api.github.com/repos/smellsblue/bundler-api/events","assignees_url":"https://api.github.com/repos/smellsblue/bundler-api/assignees{/user}","branches_url":"https://api.github.com/repos/smellsblue/bundler-api/branches{/branch}","tags_url":"https://api.github.com/repos/smellsblue/bundler-api/tags","blobs_url":"https://api.github.com/repos/smellsblue/bundler-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smellsblue/bundler-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smellsblue/bundler-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/smellsblue/bundler-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smellsblue/bundler-api/statuses/{sha}","languages_url":"https://api.github.com/repos/smellsblue/bundler-api/languages","stargazers_url":"https://api.github.com/repos/smellsblue/bundler-api/stargazers","contributors_url":"https://api.github.com/repos/smellsblue/bundler-api/contributors","subscribers_url":"https://api.github.com/repos/smellsblue/bundler-api/subscribers","subscription_url":"https://api.github.com/repos/smellsblue/bundler-api/subscription","commits_url":"https://api.github.com/repos/smellsblue/bundler-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/smellsblue/bundler-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/smellsblue/bundler-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/smellsblue/bundler-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/smellsblue/bundler-api/contents/{+path}","compare_url":"https://api.github.com/repos/smellsblue/bundler-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smellsblue/bundler-api/merges","archive_url":"https://api.github.com/repos/smellsblue/bundler-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smellsblue/bundler-api/downloads","issues_url":"https://api.github.com/repos/smellsblue/bundler-api/issues{/number}","pulls_url":"https://api.github.com/repos/smellsblue/bundler-api/pulls{/number}","milestones_url":"https://api.github.com/repos/smellsblue/bundler-api/milestones{/number}","notifications_url":"https://api.github.com/repos/smellsblue/bundler-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smellsblue/bundler-api/labels{/name}","releases_url":"https://api.github.com/repos/smellsblue/bundler-api/releases{/id}","created_at":"2015-09-13T21:57:12Z","updated_at":"2015-09-13T21:57:12Z","pushed_at":"2015-09-13T22:46:04Z","git_url":"git://github.com/smellsblue/bundler-api.git","ssh_url":"git@github.com:smellsblue/bundler-api.git","clone_url":"https://github.com/smellsblue/bundler-api.git","svn_url":"https://github.com/smellsblue/bundler-api","homepage":null,"size":8065,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"bundler:master","ref":"master","sha":"d6b1b079a2e422ed43d68fc7c921bd3234ec0570","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":6304323,"name":"bundler-api","full_name":"bundler/bundler-api","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/bundler-api","description":"Bundler 1.1+ API","fork":false,"url":"https://api.github.com/repos/bundler/bundler-api","forks_url":"https://api.github.com/repos/bundler/bundler-api/forks","keys_url":"https://api.github.com/repos/bundler/bundler-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/bundler-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/bundler-api/teams","hooks_url":"https://api.github.com/repos/bundler/bundler-api/hooks","issue_events_url":"https://api.github.com/repos/bundler/bundler-api/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/bundler-api/events","assignees_url":"https://api.github.com/repos/bundler/bundler-api/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/bundler-api/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/bundler-api/tags","blobs_url":"https://api.github.com/repos/bundler/bundler-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/bundler-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/bundler-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/bundler-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/bundler-api/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/bundler-api/languages","stargazers_url":"https://api.github.com/repos/bundler/bundler-api/stargazers","contributors_url":"https://api.github.com/repos/bundler/bundler-api/contributors","subscribers_url":"https://api.github.com/repos/bundler/bundler-api/subscribers","subscription_url":"https://api.github.com/repos/bundler/bundler-api/subscription","commits_url":"https://api.github.com/repos/bundler/bundler-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/bundler-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/bundler-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/bundler-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/bundler-api/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/bundler-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/bundler-api/merges","archive_url":"https://api.github.com/repos/bundler/bundler-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/bundler-api/downloads","issues_url":"https://api.github.com/repos/bundler/bundler-api/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/bundler-api/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/bundler-api/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/bundler-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/bundler-api/labels{/name}","releases_url":"https://api.github.com/repos/bundler/bundler-api/releases{/id}","created_at":"2012-10-20T01:55:07Z","updated_at":"2015-09-10T14:32:22Z","pushed_at":"2015-09-13T22:56:30Z","git_url":"git://github.com/bundler/bundler-api.git","ssh_url":"git@github.com:bundler/bundler-api.git","clone_url":"https://github.com/bundler/bundler-api.git","svn_url":"https://github.com/bundler/bundler-api","homepage":null,"size":16184,"stargazers_count":40,"watchers_count":40,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":9,"forks":25,"open_issues":9,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/106"},"html":{"href":"https://github.com/bundler/bundler-api/pull/106"},"issue":{"href":"https://api.github.com/repos/bundler/bundler-api/issues/106"},"comments":{"href":"https://api.github.com/repos/bundler/bundler-api/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/bundler-api/statuses/e12963d1f22246488b0ea960d3308c22be20121a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}