{"action":"created","comment":{"url":"https://api.github.com/repos/calabash/calabash-ios/pulls/comments/46835064","id":46835064,"diff_hunk":"@@ -131,26 +147,41 @@ def used_cucumber?\n       #\n       # Collect a hash of usage info.\n       def info\n-        {\n+\n+        allowed = allowed_to_track\n+\n+        return {} if allowed == \"none\"\n+\n+        # Events only\n+        hash = {\n           :event_name => \"session\",","path":"calabash-cucumber/lib/calabash-cucumber/usage_tracker.rb","position":44,"original_position":44,"commit_id":"d026e169f8a49a4f0c3104526fb4499606e75a5b","original_commit_id":"d026e169f8a49a4f0c3104526fb4499606e75a5b","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":"> To which does \"session\" refer?\r\n\r\nNone. \r\n\r\nThere are many things we _might_ want to track.  At the moment, we are only doing a head count with some additional info.\r\n\r\nWe are tracking IRB (console) vs cucumber.\r\n\r\nLater, once we've deployed this first version, we can analyze what other information we might collect.","created_at":"2015-12-07T15:44:30Z","updated_at":"2015-12-07T15:44:30Z","html_url":"https://github.com/calabash/calabash-ios/pull/941#discussion_r46835064","pull_request_url":"https://api.github.com/repos/calabash/calabash-ios/pulls/941","_links":{"self":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/comments/46835064"},"html":{"href":"https://github.com/calabash/calabash-ios/pull/941#discussion_r46835064"},"pull_request":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/941"}}},"pull_request":{"url":"https://api.github.com/repos/calabash/calabash-ios/pulls/941","id":52636365,"html_url":"https://github.com/calabash/calabash-ios/pull/941","diff_url":"https://github.com/calabash/calabash-ios/pull/941.diff","patch_url":"https://github.com/calabash/calabash-ios/pull/941.patch","issue_url":"https://api.github.com/repos/calabash/calabash-ios/issues/941","number":941,"state":"open","locked":false,"title":"UsageTracker respects user preferences","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":"### Motivation\r\n\r\nProgress on **Collect information about Calabash sessions** #908\r\n\r\n","created_at":"2015-12-04T07:02:39Z","updated_at":"2015-12-07T15:44:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd5b03eee012c30848d2adbaaa68e40a01c15b22","assignee":{"login":"sapieneptus","id":3009852,"avatar_url":"https://avatars.githubusercontent.com/u/3009852?v=3","gravatar_id":"","url":"https://api.github.com/users/sapieneptus","html_url":"https://github.com/sapieneptus","followers_url":"https://api.github.com/users/sapieneptus/followers","following_url":"https://api.github.com/users/sapieneptus/following{/other_user}","gists_url":"https://api.github.com/users/sapieneptus/gists{/gist_id}","starred_url":"https://api.github.com/users/sapieneptus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapieneptus/subscriptions","organizations_url":"https://api.github.com/users/sapieneptus/orgs","repos_url":"https://api.github.com/users/sapieneptus/repos","events_url":"https://api.github.com/users/sapieneptus/events{/privacy}","received_events_url":"https://api.github.com/users/sapieneptus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/calabash/calabash-ios/pulls/941/commits","review_comments_url":"https://api.github.com/repos/calabash/calabash-ios/pulls/941/comments","review_comment_url":"https://api.github.com/repos/calabash/calabash-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calabash/calabash-ios/issues/941/comments","statuses_url":"https://api.github.com/repos/calabash/calabash-ios/statuses/d026e169f8a49a4f0c3104526fb4499606e75a5b","head":{"label":"calabash:feature/usage-tracker-respects-preferences","ref":"feature/usage-tracker-respects-preferences","sha":"d026e169f8a49a4f0c3104526fb4499606e75a5b","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":3610323,"name":"calabash-ios","full_name":"calabash/calabash-ios","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","description":"Calabash for iOS","fork":false,"url":"https://api.github.com/repos/calabash/calabash-ios","forks_url":"https://api.github.com/repos/calabash/calabash-ios/forks","keys_url":"https://api.github.com/repos/calabash/calabash-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/calabash-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/calabash-ios/teams","hooks_url":"https://api.github.com/repos/calabash/calabash-ios/hooks","issue_events_url":"https://api.github.com/repos/calabash/calabash-ios/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/calabash-ios/events","assignees_url":"https://api.github.com/repos/calabash/calabash-ios/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/calabash-ios/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/calabash-ios/tags","blobs_url":"https://api.github.com/repos/calabash/calabash-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/calabash-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/calabash-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/calabash-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/calabash-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/calabash-ios/languages","stargazers_url":"https://api.github.com/repos/calabash/calabash-ios/stargazers","contributors_url":"https://api.github.com/repos/calabash/calabash-ios/contributors","subscribers_url":"https://api.github.com/repos/calabash/calabash-ios/subscribers","subscription_url":"https://api.github.com/repos/calabash/calabash-ios/subscription","commits_url":"https://api.github.com/repos/calabash/calabash-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/calabash-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/calabash-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/calabash-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/calabash-ios/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/calabash-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/calabash-ios/merges","archive_url":"https://api.github.com/repos/calabash/calabash-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/calabash-ios/downloads","issues_url":"https://api.github.com/repos/calabash/calabash-ios/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/calabash-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/calabash-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/calabash-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/calabash-ios/labels{/name}","releases_url":"https://api.github.com/repos/calabash/calabash-ios/releases{/id}","created_at":"2012-03-03T11:52:47Z","updated_at":"2015-12-03T16:56:07Z","pushed_at":"2015-12-04T15:32:31Z","git_url":"git://github.com/calabash/calabash-ios.git","ssh_url":"git@github.com:calabash/calabash-ios.git","clone_url":"https://github.com/calabash/calabash-ios.git","svn_url":"https://github.com/calabash/calabash-ios","homepage":"http://calaba.sh/","size":62643,"stargazers_count":1154,"watchers_count":1154,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":290,"mirror_url":null,"open_issues_count":57,"forks":290,"open_issues":57,"watchers":1154,"default_branch":"develop"}},"base":{"label":"calabash:develop","ref":"develop","sha":"909fc1622431b1f155599154376d98ee96051a3c","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":3610323,"name":"calabash-ios","full_name":"calabash/calabash-ios","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","description":"Calabash for iOS","fork":false,"url":"https://api.github.com/repos/calabash/calabash-ios","forks_url":"https://api.github.com/repos/calabash/calabash-ios/forks","keys_url":"https://api.github.com/repos/calabash/calabash-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calabash/calabash-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calabash/calabash-ios/teams","hooks_url":"https://api.github.com/repos/calabash/calabash-ios/hooks","issue_events_url":"https://api.github.com/repos/calabash/calabash-ios/issues/events{/number}","events_url":"https://api.github.com/repos/calabash/calabash-ios/events","assignees_url":"https://api.github.com/repos/calabash/calabash-ios/assignees{/user}","branches_url":"https://api.github.com/repos/calabash/calabash-ios/branches{/branch}","tags_url":"https://api.github.com/repos/calabash/calabash-ios/tags","blobs_url":"https://api.github.com/repos/calabash/calabash-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calabash/calabash-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calabash/calabash-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/calabash/calabash-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calabash/calabash-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/calabash/calabash-ios/languages","stargazers_url":"https://api.github.com/repos/calabash/calabash-ios/stargazers","contributors_url":"https://api.github.com/repos/calabash/calabash-ios/contributors","subscribers_url":"https://api.github.com/repos/calabash/calabash-ios/subscribers","subscription_url":"https://api.github.com/repos/calabash/calabash-ios/subscription","commits_url":"https://api.github.com/repos/calabash/calabash-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/calabash/calabash-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/calabash/calabash-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/calabash/calabash-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/calabash/calabash-ios/contents/{+path}","compare_url":"https://api.github.com/repos/calabash/calabash-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calabash/calabash-ios/merges","archive_url":"https://api.github.com/repos/calabash/calabash-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calabash/calabash-ios/downloads","issues_url":"https://api.github.com/repos/calabash/calabash-ios/issues{/number}","pulls_url":"https://api.github.com/repos/calabash/calabash-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/calabash/calabash-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/calabash/calabash-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calabash/calabash-ios/labels{/name}","releases_url":"https://api.github.com/repos/calabash/calabash-ios/releases{/id}","created_at":"2012-03-03T11:52:47Z","updated_at":"2015-12-03T16:56:07Z","pushed_at":"2015-12-04T15:32:31Z","git_url":"git://github.com/calabash/calabash-ios.git","ssh_url":"git@github.com:calabash/calabash-ios.git","clone_url":"https://github.com/calabash/calabash-ios.git","svn_url":"https://github.com/calabash/calabash-ios","homepage":"http://calaba.sh/","size":62643,"stargazers_count":1154,"watchers_count":1154,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":290,"mirror_url":null,"open_issues_count":57,"forks":290,"open_issues":57,"watchers":1154,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/941"},"html":{"href":"https://github.com/calabash/calabash-ios/pull/941"},"issue":{"href":"https://api.github.com/repos/calabash/calabash-ios/issues/941"},"comments":{"href":"https://api.github.com/repos/calabash/calabash-ios/issues/941/comments"},"review_comments":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/941/comments"},"review_comment":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calabash/calabash-ios/pulls/941/commits"},"statuses":{"href":"https://api.github.com/repos/calabash/calabash-ios/statuses/d026e169f8a49a4f0c3104526fb4499606e75a5b"}}}}