{"action":"created","comment":{"url":"https://api.github.com/repos/ontohub/ontohub/pulls/comments/25239949","id":25239949,"diff_hunk":"@@ -1,10 +1,36 @@\n class HetsInstance < ActiveRecord::Base\n+  class Error < ::StandardError; end\n+  class NoRegisteredHetsInstanceError < Error\n+    DEFAULT_MSG = 'There is no registered HetsInstance for this application'\n+\n+    def initialize(msg=DEFAULT_MSG)\n+      super\n+    end\n+  end\n+\n+  class NoSelectableHetsInstanceError < Error\n+    DEFAULT_MSG = <<-MSG\n+There is no HetsInstance which is reachable and\n+has a minimal Hets version of #{Hets.minimal_version_string}\n+    MSG\n+\n+    def initialize(msg=DEFAULT_MSG)","path":"app/models/hets_instance.rb","position":17,"original_position":17,"commit_id":"17dc0ea66e22bd748baab92dd319fadc01dd677d","original_commit_id":"17dc0ea66e22bd748baab92dd319fadc01dd677d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Surrounding space missing in default value assignment.","created_at":"2015-02-24T09:52:09Z","updated_at":"2015-02-24T09:52:09Z","html_url":"https://github.com/ontohub/ontohub/pull/1228#discussion_r25239949","pull_request_url":"https://api.github.com/repos/ontohub/ontohub/pulls/1228","_links":{"self":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/comments/25239949"},"html":{"href":"https://github.com/ontohub/ontohub/pull/1228#discussion_r25239949"},"pull_request":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/1228"}}},"pull_request":{"url":"https://api.github.com/repos/ontohub/ontohub/pulls/1228","id":29883190,"html_url":"https://github.com/ontohub/ontohub/pull/1228","diff_url":"https://github.com/ontohub/ontohub/pull/1228.diff","patch_url":"https://github.com/ontohub/ontohub/pull/1228.patch","issue_url":"https://api.github.com/repos/ontohub/ontohub/issues/1228","number":1228,"state":"open","locked":false,"title":"Add reasonable errors for hets instances","user":{"login":"0robustus1","id":697338,"avatar_url":"https://avatars.githubusercontent.com/u/697338?v=3","gravatar_id":"","url":"https://api.github.com/users/0robustus1","html_url":"https://github.com/0robustus1","followers_url":"https://api.github.com/users/0robustus1/followers","following_url":"https://api.github.com/users/0robustus1/following{/other_user}","gists_url":"https://api.github.com/users/0robustus1/gists{/gist_id}","starred_url":"https://api.github.com/users/0robustus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0robustus1/subscriptions","organizations_url":"https://api.github.com/users/0robustus1/orgs","repos_url":"https://api.github.com/users/0robustus1/repos","events_url":"https://api.github.com/users/0robustus1/events{/privacy}","received_events_url":"https://api.github.com/users/0robustus1/received_events","type":"User","site_admin":false},"body":"Produce a little bit more readable and reasonable errors when there is no (useable) hets instance registered.","created_at":"2015-02-24T09:52:02Z","updated_at":"2015-02-24T09:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d778d11c83095f2996c467d1228ee5131d749933","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ontohub/ontohub/pulls/1228/commits","review_comments_url":"https://api.github.com/repos/ontohub/ontohub/pulls/1228/comments","review_comment_url":"https://api.github.com/repos/ontohub/ontohub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ontohub/ontohub/issues/1228/comments","statuses_url":"https://api.github.com/repos/ontohub/ontohub/statuses/17dc0ea66e22bd748baab92dd319fadc01dd677d","head":{"label":"ontohub:add-reasonable_errors_for_hets_instances","ref":"add-reasonable_errors_for_hets_instances","sha":"17dc0ea66e22bd748baab92dd319fadc01dd677d","user":{"login":"ontohub","id":1575984,"avatar_url":"https://avatars.githubusercontent.com/u/1575984?v=3","gravatar_id":"","url":"https://api.github.com/users/ontohub","html_url":"https://github.com/ontohub","followers_url":"https://api.github.com/users/ontohub/followers","following_url":"https://api.github.com/users/ontohub/following{/other_user}","gists_url":"https://api.github.com/users/ontohub/gists{/gist_id}","starred_url":"https://api.github.com/users/ontohub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontohub/subscriptions","organizations_url":"https://api.github.com/users/ontohub/orgs","repos_url":"https://api.github.com/users/ontohub/repos","events_url":"https://api.github.com/users/ontohub/events{/privacy}","received_events_url":"https://api.github.com/users/ontohub/received_events","type":"Organization","site_admin":false},"repo":{"id":3643206,"name":"ontohub","full_name":"ontohub/ontohub","owner":{"login":"ontohub","id":1575984,"avatar_url":"https://avatars.githubusercontent.com/u/1575984?v=3","gravatar_id":"","url":"https://api.github.com/users/ontohub","html_url":"https://github.com/ontohub","followers_url":"https://api.github.com/users/ontohub/followers","following_url":"https://api.github.com/users/ontohub/following{/other_user}","gists_url":"https://api.github.com/users/ontohub/gists{/gist_id}","starred_url":"https://api.github.com/users/ontohub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontohub/subscriptions","organizations_url":"https://api.github.com/users/ontohub/orgs","repos_url":"https://api.github.com/users/ontohub/repos","events_url":"https://api.github.com/users/ontohub/events{/privacy}","received_events_url":"https://api.github.com/users/ontohub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ontohub/ontohub","description":"A web-based repository for distributed ontologies.","fork":false,"url":"https://api.github.com/repos/ontohub/ontohub","forks_url":"https://api.github.com/repos/ontohub/ontohub/forks","keys_url":"https://api.github.com/repos/ontohub/ontohub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ontohub/ontohub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ontohub/ontohub/teams","hooks_url":"https://api.github.com/repos/ontohub/ontohub/hooks","issue_events_url":"https://api.github.com/repos/ontohub/ontohub/issues/events{/number}","events_url":"https://api.github.com/repos/ontohub/ontohub/events","assignees_url":"https://api.github.com/repos/ontohub/ontohub/assignees{/user}","branches_url":"https://api.github.com/repos/ontohub/ontohub/branches{/branch}","tags_url":"https://api.github.com/repos/ontohub/ontohub/tags","blobs_url":"https://api.github.com/repos/ontohub/ontohub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ontohub/ontohub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ontohub/ontohub/git/refs{/sha}","trees_url":"https://api.github.com/repos/ontohub/ontohub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ontohub/ontohub/statuses/{sha}","languages_url":"https://api.github.com/repos/ontohub/ontohub/languages","stargazers_url":"https://api.github.com/repos/ontohub/ontohub/stargazers","contributors_url":"https://api.github.com/repos/ontohub/ontohub/contributors","subscribers_url":"https://api.github.com/repos/ontohub/ontohub/subscribers","subscription_url":"https://api.github.com/repos/ontohub/ontohub/subscription","commits_url":"https://api.github.com/repos/ontohub/ontohub/commits{/sha}","git_commits_url":"https://api.github.com/repos/ontohub/ontohub/git/commits{/sha}","comments_url":"https://api.github.com/repos/ontohub/ontohub/comments{/number}","issue_comment_url":"https://api.github.com/repos/ontohub/ontohub/issues/comments{/number}","contents_url":"https://api.github.com/repos/ontohub/ontohub/contents/{+path}","compare_url":"https://api.github.com/repos/ontohub/ontohub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ontohub/ontohub/merges","archive_url":"https://api.github.com/repos/ontohub/ontohub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ontohub/ontohub/downloads","issues_url":"https://api.github.com/repos/ontohub/ontohub/issues{/number}","pulls_url":"https://api.github.com/repos/ontohub/ontohub/pulls{/number}","milestones_url":"https://api.github.com/repos/ontohub/ontohub/milestones{/number}","notifications_url":"https://api.github.com/repos/ontohub/ontohub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ontohub/ontohub/labels{/name}","releases_url":"https://api.github.com/repos/ontohub/ontohub/releases{/id}","created_at":"2012-03-06T22:05:27Z","updated_at":"2015-02-23T13:15:19Z","pushed_at":"2015-02-24T09:50:51Z","git_url":"git://github.com/ontohub/ontohub.git","ssh_url":"git@github.com:ontohub/ontohub.git","clone_url":"https://github.com/ontohub/ontohub.git","svn_url":"https://github.com/ontohub/ontohub","homepage":"","size":29907,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":328,"forks":6,"open_issues":328,"watchers":18,"default_branch":"staging"}},"base":{"label":"ontohub:staging","ref":"staging","sha":"64d24b9cca87dcf6e9d1f463f6a14dae7c12a5d7","user":{"login":"ontohub","id":1575984,"avatar_url":"https://avatars.githubusercontent.com/u/1575984?v=3","gravatar_id":"","url":"https://api.github.com/users/ontohub","html_url":"https://github.com/ontohub","followers_url":"https://api.github.com/users/ontohub/followers","following_url":"https://api.github.com/users/ontohub/following{/other_user}","gists_url":"https://api.github.com/users/ontohub/gists{/gist_id}","starred_url":"https://api.github.com/users/ontohub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontohub/subscriptions","organizations_url":"https://api.github.com/users/ontohub/orgs","repos_url":"https://api.github.com/users/ontohub/repos","events_url":"https://api.github.com/users/ontohub/events{/privacy}","received_events_url":"https://api.github.com/users/ontohub/received_events","type":"Organization","site_admin":false},"repo":{"id":3643206,"name":"ontohub","full_name":"ontohub/ontohub","owner":{"login":"ontohub","id":1575984,"avatar_url":"https://avatars.githubusercontent.com/u/1575984?v=3","gravatar_id":"","url":"https://api.github.com/users/ontohub","html_url":"https://github.com/ontohub","followers_url":"https://api.github.com/users/ontohub/followers","following_url":"https://api.github.com/users/ontohub/following{/other_user}","gists_url":"https://api.github.com/users/ontohub/gists{/gist_id}","starred_url":"https://api.github.com/users/ontohub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontohub/subscriptions","organizations_url":"https://api.github.com/users/ontohub/orgs","repos_url":"https://api.github.com/users/ontohub/repos","events_url":"https://api.github.com/users/ontohub/events{/privacy}","received_events_url":"https://api.github.com/users/ontohub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ontohub/ontohub","description":"A web-based repository for distributed ontologies.","fork":false,"url":"https://api.github.com/repos/ontohub/ontohub","forks_url":"https://api.github.com/repos/ontohub/ontohub/forks","keys_url":"https://api.github.com/repos/ontohub/ontohub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ontohub/ontohub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ontohub/ontohub/teams","hooks_url":"https://api.github.com/repos/ontohub/ontohub/hooks","issue_events_url":"https://api.github.com/repos/ontohub/ontohub/issues/events{/number}","events_url":"https://api.github.com/repos/ontohub/ontohub/events","assignees_url":"https://api.github.com/repos/ontohub/ontohub/assignees{/user}","branches_url":"https://api.github.com/repos/ontohub/ontohub/branches{/branch}","tags_url":"https://api.github.com/repos/ontohub/ontohub/tags","blobs_url":"https://api.github.com/repos/ontohub/ontohub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ontohub/ontohub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ontohub/ontohub/git/refs{/sha}","trees_url":"https://api.github.com/repos/ontohub/ontohub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ontohub/ontohub/statuses/{sha}","languages_url":"https://api.github.com/repos/ontohub/ontohub/languages","stargazers_url":"https://api.github.com/repos/ontohub/ontohub/stargazers","contributors_url":"https://api.github.com/repos/ontohub/ontohub/contributors","subscribers_url":"https://api.github.com/repos/ontohub/ontohub/subscribers","subscription_url":"https://api.github.com/repos/ontohub/ontohub/subscription","commits_url":"https://api.github.com/repos/ontohub/ontohub/commits{/sha}","git_commits_url":"https://api.github.com/repos/ontohub/ontohub/git/commits{/sha}","comments_url":"https://api.github.com/repos/ontohub/ontohub/comments{/number}","issue_comment_url":"https://api.github.com/repos/ontohub/ontohub/issues/comments{/number}","contents_url":"https://api.github.com/repos/ontohub/ontohub/contents/{+path}","compare_url":"https://api.github.com/repos/ontohub/ontohub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ontohub/ontohub/merges","archive_url":"https://api.github.com/repos/ontohub/ontohub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ontohub/ontohub/downloads","issues_url":"https://api.github.com/repos/ontohub/ontohub/issues{/number}","pulls_url":"https://api.github.com/repos/ontohub/ontohub/pulls{/number}","milestones_url":"https://api.github.com/repos/ontohub/ontohub/milestones{/number}","notifications_url":"https://api.github.com/repos/ontohub/ontohub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ontohub/ontohub/labels{/name}","releases_url":"https://api.github.com/repos/ontohub/ontohub/releases{/id}","created_at":"2012-03-06T22:05:27Z","updated_at":"2015-02-23T13:15:19Z","pushed_at":"2015-02-24T09:50:51Z","git_url":"git://github.com/ontohub/ontohub.git","ssh_url":"git@github.com:ontohub/ontohub.git","clone_url":"https://github.com/ontohub/ontohub.git","svn_url":"https://github.com/ontohub/ontohub","homepage":"","size":29907,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":328,"forks":6,"open_issues":328,"watchers":18,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/1228"},"html":{"href":"https://github.com/ontohub/ontohub/pull/1228"},"issue":{"href":"https://api.github.com/repos/ontohub/ontohub/issues/1228"},"comments":{"href":"https://api.github.com/repos/ontohub/ontohub/issues/1228/comments"},"review_comments":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/1228/comments"},"review_comment":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ontohub/ontohub/pulls/1228/commits"},"statuses":{"href":"https://api.github.com/repos/ontohub/ontohub/statuses/17dc0ea66e22bd748baab92dd319fadc01dd677d"}}}}