{"action":"created","comment":{"url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/comments/42464050","id":42464050,"diff_hunk":"@@ -0,0 +1,67 @@\n+#if ! __has_feature(objc_arc)\n+#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).\n+#endif\n+\n+#import \"LPReflectionRoute.h\"\n+#import <objc/runtime.h>\n+\n+@interface LPReflectionRoute ()\n+\n+- (NSArray *) libraryNames;\n+- (NSArray *) classNames;\n+\n+@end\n+\n+@implementation LPReflectionRoute\n+\n+- (BOOL) supportsMethod:(NSString *) method atPath:(NSString *) path {\n+  return [method isEqualToString:@\"GET\"];\n+}\n+\n+- (NSDictionary *) JSONResponseForMethod:(NSString *) method\n+                                     URI:(NSString *) path\n+                                    data:(NSDictionary *) data {\n+\n+  return @{\n+           @\"libraries\" : [self libraryNames],\n+           @\"classes\" : [self classNames]\n+           };\n+}\n+\n+- (NSArray *) libraryNames {\n+  unsigned int number = 0;\n+\n+  const char **names = objc_copyImageNames(&number);\n+\n+  NSMutableArray *array = [NSMutableArray arrayWithCapacity:number];","path":"calabash/Classes/FranklyServer/Routes/LPReflectionRoute.m","position":36,"original_position":36,"commit_id":"1b0379e58b543a6300379849439476a8b0a1aab5","original_commit_id":"1b0379e58b543a6300379849439476a8b0a1aab5","user":{"login":"jmoody","id":466104,"avatar_url":"https://avatars.githubusercontent.com/u/466104?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoody","html_url":"https://github.com/jmoody","followers_url":"https://api.github.com/users/jmoody/followers","following_url":"https://api.github.com/users/jmoody/following{/other_user}","gists_url":"https://api.github.com/users/jmoody/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoody/subscriptions","organizations_url":"https://api.github.com/users/jmoody/orgs","repos_url":"https://api.github.com/users/jmoody/repos","events_url":"https://api.github.com/users/jmoody/events{/privacy}","received_events_url":"https://api.github.com/users/jmoody/received_events","type":"User","site_admin":false},"body":"Yeah, I was thinking 3 would be a magic number for extracting a generic method.\r\n\r\n","created_at":"2015-10-20T07:38:52Z","updated_at":"2015-10-20T07:38:52Z","html_url":"https://github.com/calabash/calabash-ios-server/pull/269#discussion_r42464050","pull_request_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269","_links":{"self":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/comments/42464050"},"html":{"href":"https://github.com/calabash/calabash-ios-server/pull/269#discussion_r42464050"},"pull_request":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269"}}},"pull_request":{"url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269","id":48112546,"html_url":"https://github.com/calabash/calabash-ios-server/pull/269","diff_url":"https://github.com/calabash/calabash-ios-server/pull/269.diff","patch_url":"https://github.com/calabash/calabash-ios-server/pull/269.patch","issue_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/269","number":269,"state":"open","locked":false,"title":"Reflection route","user":{"login":"jmoody","id":466104,"avatar_url":"https://avatars.githubusercontent.com/u/466104?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoody","html_url":"https://github.com/jmoody","followers_url":"https://api.github.com/users/jmoody/followers","following_url":"https://api.github.com/users/jmoody/following{/other_user}","gists_url":"https://api.github.com/users/jmoody/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoody/subscriptions","organizations_url":"https://api.github.com/users/jmoody/orgs","repos_url":"https://api.github.com/users/jmoody/repos","events_url":"https://api.github.com/users/jmoody/events{/privacy}","received_events_url":"https://api.github.com/users/jmoody/received_events","type":"User","site_admin":false},"body":"@sapieneptus Can you have a look?  Useful?","created_at":"2015-10-19T19:07:47Z","updated_at":"2015-10-20T07:38:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"364fbf733fbb0a8abd5269c8102d32dc90d9b867","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269/commits","review_comments_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269/comments","review_comment_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/269/comments","statuses_url":"https://api.github.com/repos/calabash/calabash-ios-server/statuses/1b0379e58b543a6300379849439476a8b0a1aab5","head":{"label":"calabash:feature/reflection-route","ref":"feature/reflection-route","sha":"1b0379e58b543a6300379849439476a8b0a1aab5","user":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"repo":{"id":3192691,"name":"calabash-ios-server","full_name":"calabash/calabash-ios-server","owner":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calabash/calabash-ios-server","description":"An embedded HTTP server for performing queries and gestures","fork":false,"url":"https://api.github.com/repos/calabash/calabash-ios-server","forks_url":"https://api.github.com/repos/calabash/calabash-ios-server/forks","keys_url":"https://api.github.com/repos/calabash/calabash-ios-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/calabash-ios-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/calabash-ios-server/teams","hooks_url":"https://api.github.com/repos/calabash/calabash-ios-server/hooks","issue_events_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/calabash-ios-server/events","assignees_url":"https://api.github.com/repos/calabash/calabash-ios-server/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/calabash-ios-server/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/calabash-ios-server/tags","blobs_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/calabash-ios-server/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/calabash-ios-server/languages","stargazers_url":"https://api.github.com/repos/calabash/calabash-ios-server/stargazers","contributors_url":"https://api.github.com/repos/calabash/calabash-ios-server/contributors","subscribers_url":"https://api.github.com/repos/calabash/calabash-ios-server/subscribers","subscription_url":"https://api.github.com/repos/calabash/calabash-ios-server/subscription","commits_url":"https://api.github.com/repos/calabash/calabash-ios-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/calabash-ios-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/calabash-ios-server/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/calabash-ios-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/calabash-ios-server/merges","archive_url":"https://api.github.com/repos/calabash/calabash-ios-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/calabash-ios-server/downloads","issues_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/calabash-ios-server/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/calabash-ios-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/calabash-ios-server/labels{/name}","releases_url":"https://api.github.com/repos/calabash/calabash-ios-server/releases{/id}","created_at":"2012-01-16T17:56:20Z","updated_at":"2015-09-09T00:14:42Z","pushed_at":"2015-10-19T19:07:47Z","git_url":"git://github.com/calabash/calabash-ios-server.git","ssh_url":"git@github.com:calabash/calabash-ios-server.git","clone_url":"https://github.com/calabash/calabash-ios-server.git","svn_url":"https://github.com/calabash/calabash-ios-server","homepage":"https://github.com/calabash/calabash-ios","size":34181,"stargazers_count":55,"watchers_count":55,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":21,"forks":51,"open_issues":21,"watchers":55,"default_branch":"develop"}},"base":{"label":"calabash:develop","ref":"develop","sha":"610154ad0aa805619f45dbf4adc48c88cdd9161f","user":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"repo":{"id":3192691,"name":"calabash-ios-server","full_name":"calabash/calabash-ios-server","owner":{"login":"calabash","id":1325677,"avatar_url":"https://avatars.githubusercontent.com/u/1325677?v=3","gravatar_id":"","url":"https://api.github.com/users/calabash","html_url":"https://github.com/calabash","followers_url":"https://api.github.com/users/calabash/followers","following_url":"https://api.github.com/users/calabash/following{/other_user}","gists_url":"https://api.github.com/users/calabash/gists{/gist_id}","starred_url":"https://api.github.com/users/calabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calabash/subscriptions","organizations_url":"https://api.github.com/users/calabash/orgs","repos_url":"https://api.github.com/users/calabash/repos","events_url":"https://api.github.com/users/calabash/events{/privacy}","received_events_url":"https://api.github.com/users/calabash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calabash/calabash-ios-server","description":"An embedded HTTP server for performing queries and gestures","fork":false,"url":"https://api.github.com/repos/calabash/calabash-ios-server","forks_url":"https://api.github.com/repos/calabash/calabash-ios-server/forks","keys_url":"https://api.github.com/repos/calabash/calabash-ios-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/calabash-ios-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/calabash-ios-server/teams","hooks_url":"https://api.github.com/repos/calabash/calabash-ios-server/hooks","issue_events_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/calabash-ios-server/events","assignees_url":"https://api.github.com/repos/calabash/calabash-ios-server/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/calabash-ios-server/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/calabash-ios-server/tags","blobs_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/calabash-ios-server/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/calabash-ios-server/languages","stargazers_url":"https://api.github.com/repos/calabash/calabash-ios-server/stargazers","contributors_url":"https://api.github.com/repos/calabash/calabash-ios-server/contributors","subscribers_url":"https://api.github.com/repos/calabash/calabash-ios-server/subscribers","subscription_url":"https://api.github.com/repos/calabash/calabash-ios-server/subscription","commits_url":"https://api.github.com/repos/calabash/calabash-ios-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/calabash-ios-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/calabash-ios-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/calabash-ios-server/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/calabash-ios-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/calabash-ios-server/merges","archive_url":"https://api.github.com/repos/calabash/calabash-ios-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/calabash-ios-server/downloads","issues_url":"https://api.github.com/repos/calabash/calabash-ios-server/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/calabash-ios-server/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/calabash-ios-server/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/calabash-ios-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/calabash-ios-server/labels{/name}","releases_url":"https://api.github.com/repos/calabash/calabash-ios-server/releases{/id}","created_at":"2012-01-16T17:56:20Z","updated_at":"2015-09-09T00:14:42Z","pushed_at":"2015-10-19T19:07:47Z","git_url":"git://github.com/calabash/calabash-ios-server.git","ssh_url":"git@github.com:calabash/calabash-ios-server.git","clone_url":"https://github.com/calabash/calabash-ios-server.git","svn_url":"https://github.com/calabash/calabash-ios-server","homepage":"https://github.com/calabash/calabash-ios","size":34181,"stargazers_count":55,"watchers_count":55,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":21,"forks":51,"open_issues":21,"watchers":55,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269"},"html":{"href":"https://github.com/calabash/calabash-ios-server/pull/269"},"issue":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/issues/269"},"comments":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/issues/269/comments"},"review_comments":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269/comments"},"review_comment":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/pulls/269/commits"},"statuses":{"href":"https://api.github.com/repos/calabash/calabash-ios-server/statuses/1b0379e58b543a6300379849439476a8b0a1aab5"}}}}