{"action":"created","comment":{"url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/comments/129995387","pull_request_review_id":52825697,"id":129995387,"diff_hunk":"@@ -0,0 +1,113 @@\n+# coding: utf-8\n+\n+RSpec.describe TTY::Spinner::Multi do\n+  describe '#register' do\n+    let(:output) { StringIO.new('', 'w+') }\n+\n+    it \"creates a TTY::Spinner\" do\n+      spinner = TTY::Spinner::Multi.new(output: output, interval: 100)\n+      allow_any_instance_of(TTY::Spinner).to receive(:add_multispinner)\n+      expect_any_instance_of(TTY::Spinner).to receive(:add_multispinner)\n+\n+      sp = spinner.register \"\"\n+      expect(sp).to be_instance_of TTY::Spinner\n+      expect(spinner.spinners.length).to eq(1)\n+    end\n+  end\n+\n+  describe '#count_line_offset' do\n+    let(:output) { StringIO.new('', 'w+') }","path":"spec/unit/multi_spinner_spec.rb","position":19,"original_position":19,"commit_id":"815ce84efc062ed1ca54d0f482e1b6d79ee00d3c","original_commit_id":"815ce84efc062ed1ca54d0f482e1b6d79ee00d3c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2017-07-28T01:22:56Z","updated_at":"2017-07-28T01:22:57Z","html_url":"https://github.com/piotrmurach/tty-spinner/pull/13#discussion_r129995387","pull_request_url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/comments/129995387"},"html":{"href":"https://github.com/piotrmurach/tty-spinner/pull/13#discussion_r129995387"},"pull_request":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13","id":132815868,"html_url":"https://github.com/piotrmurach/tty-spinner/pull/13","diff_url":"https://github.com/piotrmurach/tty-spinner/pull/13.diff","patch_url":"https://github.com/piotrmurach/tty-spinner/pull/13.patch","issue_url":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/13","number":13,"state":"open","locked":false,"title":"Add TTY MultiSpinner","user":{"login":"austb","id":4520807,"avatar_url":"https://avatars0.githubusercontent.com/u/4520807?v=4","gravatar_id":"","url":"https://api.github.com/users/austb","html_url":"https://github.com/austb","followers_url":"https://api.github.com/users/austb/followers","following_url":"https://api.github.com/users/austb/following{/other_user}","gists_url":"https://api.github.com/users/austb/gists{/gist_id}","starred_url":"https://api.github.com/users/austb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austb/subscriptions","organizations_url":"https://api.github.com/users/austb/orgs","repos_url":"https://api.github.com/users/austb/repos","events_url":"https://api.github.com/users/austb/events{/privacy}","received_events_url":"https://api.github.com/users/austb/received_events","type":"User","site_admin":false},"body":"The only non-identical feature when compared to a single spinner is that clear doesn't remove the line entirely because the spinner has already printed a newline character. A newline character has to be printed (instead of cursor.down), otherwise when using a multispinner at the bottom of your terminal it will overwrite previous lines instead of creating new lines.","created_at":"2017-07-27T18:32:03Z","updated_at":"2017-07-28T01:22:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"154e95accb1622b622a3f281d5f56edf41510494","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13/commits","review_comments_url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13/comments","review_comment_url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/13/comments","statuses_url":"https://api.github.com/repos/piotrmurach/tty-spinner/statuses/815ce84efc062ed1ca54d0f482e1b6d79ee00d3c","head":{"label":"austb:multi_spinner","ref":"multi_spinner","sha":"815ce84efc062ed1ca54d0f482e1b6d79ee00d3c","user":{"login":"austb","id":4520807,"avatar_url":"https://avatars0.githubusercontent.com/u/4520807?v=4","gravatar_id":"","url":"https://api.github.com/users/austb","html_url":"https://github.com/austb","followers_url":"https://api.github.com/users/austb/followers","following_url":"https://api.github.com/users/austb/following{/other_user}","gists_url":"https://api.github.com/users/austb/gists{/gist_id}","starred_url":"https://api.github.com/users/austb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austb/subscriptions","organizations_url":"https://api.github.com/users/austb/orgs","repos_url":"https://api.github.com/users/austb/repos","events_url":"https://api.github.com/users/austb/events{/privacy}","received_events_url":"https://api.github.com/users/austb/received_events","type":"User","site_admin":false},"repo":{"id":98473837,"name":"tty-spinner","full_name":"austb/tty-spinner","owner":{"login":"austb","id":4520807,"avatar_url":"https://avatars0.githubusercontent.com/u/4520807?v=4","gravatar_id":"","url":"https://api.github.com/users/austb","html_url":"https://github.com/austb","followers_url":"https://api.github.com/users/austb/followers","following_url":"https://api.github.com/users/austb/following{/other_user}","gists_url":"https://api.github.com/users/austb/gists{/gist_id}","starred_url":"https://api.github.com/users/austb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austb/subscriptions","organizations_url":"https://api.github.com/users/austb/orgs","repos_url":"https://api.github.com/users/austb/repos","events_url":"https://api.github.com/users/austb/events{/privacy}","received_events_url":"https://api.github.com/users/austb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/austb/tty-spinner","description":"A terminal spinner for tasks that have non-deterministic time frame.","fork":true,"url":"https://api.github.com/repos/austb/tty-spinner","forks_url":"https://api.github.com/repos/austb/tty-spinner/forks","keys_url":"https://api.github.com/repos/austb/tty-spinner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/austb/tty-spinner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/austb/tty-spinner/teams","hooks_url":"https://api.github.com/repos/austb/tty-spinner/hooks","issue_events_url":"https://api.github.com/repos/austb/tty-spinner/issues/events{/number}","events_url":"https://api.github.com/repos/austb/tty-spinner/events","assignees_url":"https://api.github.com/repos/austb/tty-spinner/assignees{/user}","branches_url":"https://api.github.com/repos/austb/tty-spinner/branches{/branch}","tags_url":"https://api.github.com/repos/austb/tty-spinner/tags","blobs_url":"https://api.github.com/repos/austb/tty-spinner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/austb/tty-spinner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/austb/tty-spinner/git/refs{/sha}","trees_url":"https://api.github.com/repos/austb/tty-spinner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/austb/tty-spinner/statuses/{sha}","languages_url":"https://api.github.com/repos/austb/tty-spinner/languages","stargazers_url":"https://api.github.com/repos/austb/tty-spinner/stargazers","contributors_url":"https://api.github.com/repos/austb/tty-spinner/contributors","subscribers_url":"https://api.github.com/repos/austb/tty-spinner/subscribers","subscription_url":"https://api.github.com/repos/austb/tty-spinner/subscription","commits_url":"https://api.github.com/repos/austb/tty-spinner/commits{/sha}","git_commits_url":"https://api.github.com/repos/austb/tty-spinner/git/commits{/sha}","comments_url":"https://api.github.com/repos/austb/tty-spinner/comments{/number}","issue_comment_url":"https://api.github.com/repos/austb/tty-spinner/issues/comments{/number}","contents_url":"https://api.github.com/repos/austb/tty-spinner/contents/{+path}","compare_url":"https://api.github.com/repos/austb/tty-spinner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/austb/tty-spinner/merges","archive_url":"https://api.github.com/repos/austb/tty-spinner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/austb/tty-spinner/downloads","issues_url":"https://api.github.com/repos/austb/tty-spinner/issues{/number}","pulls_url":"https://api.github.com/repos/austb/tty-spinner/pulls{/number}","milestones_url":"https://api.github.com/repos/austb/tty-spinner/milestones{/number}","notifications_url":"https://api.github.com/repos/austb/tty-spinner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/austb/tty-spinner/labels{/name}","releases_url":"https://api.github.com/repos/austb/tty-spinner/releases{/id}","deployments_url":"https://api.github.com/repos/austb/tty-spinner/deployments","created_at":"2017-07-26T23:31:19Z","updated_at":"2017-07-26T23:31:20Z","pushed_at":"2017-07-28T01:22:46Z","git_url":"git://github.com/austb/tty-spinner.git","ssh_url":"git@github.com:austb/tty-spinner.git","clone_url":"https://github.com/austb/tty-spinner.git","svn_url":"https://github.com/austb/tty-spinner","homepage":"https://piotrmurach.github.io/tty/","size":186,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"piotrmurach:master","ref":"master","sha":"0f1c5b927f59dc981ee76dacaad33b3fadf594ac","user":{"login":"piotrmurach","id":444312,"avatar_url":"https://avatars3.githubusercontent.com/u/444312?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrmurach","html_url":"https://github.com/piotrmurach","followers_url":"https://api.github.com/users/piotrmurach/followers","following_url":"https://api.github.com/users/piotrmurach/following{/other_user}","gists_url":"https://api.github.com/users/piotrmurach/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrmurach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrmurach/subscriptions","organizations_url":"https://api.github.com/users/piotrmurach/orgs","repos_url":"https://api.github.com/users/piotrmurach/repos","events_url":"https://api.github.com/users/piotrmurach/events{/privacy}","received_events_url":"https://api.github.com/users/piotrmurach/received_events","type":"User","site_admin":false},"repo":{"id":26693253,"name":"tty-spinner","full_name":"piotrmurach/tty-spinner","owner":{"login":"piotrmurach","id":444312,"avatar_url":"https://avatars3.githubusercontent.com/u/444312?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrmurach","html_url":"https://github.com/piotrmurach","followers_url":"https://api.github.com/users/piotrmurach/followers","following_url":"https://api.github.com/users/piotrmurach/following{/other_user}","gists_url":"https://api.github.com/users/piotrmurach/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrmurach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrmurach/subscriptions","organizations_url":"https://api.github.com/users/piotrmurach/orgs","repos_url":"https://api.github.com/users/piotrmurach/repos","events_url":"https://api.github.com/users/piotrmurach/events{/privacy}","received_events_url":"https://api.github.com/users/piotrmurach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piotrmurach/tty-spinner","description":"A terminal spinner for tasks that have non-deterministic time frame.","fork":false,"url":"https://api.github.com/repos/piotrmurach/tty-spinner","forks_url":"https://api.github.com/repos/piotrmurach/tty-spinner/forks","keys_url":"https://api.github.com/repos/piotrmurach/tty-spinner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piotrmurach/tty-spinner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piotrmurach/tty-spinner/teams","hooks_url":"https://api.github.com/repos/piotrmurach/tty-spinner/hooks","issue_events_url":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/events{/number}","events_url":"https://api.github.com/repos/piotrmurach/tty-spinner/events","assignees_url":"https://api.github.com/repos/piotrmurach/tty-spinner/assignees{/user}","branches_url":"https://api.github.com/repos/piotrmurach/tty-spinner/branches{/branch}","tags_url":"https://api.github.com/repos/piotrmurach/tty-spinner/tags","blobs_url":"https://api.github.com/repos/piotrmurach/tty-spinner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piotrmurach/tty-spinner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piotrmurach/tty-spinner/git/refs{/sha}","trees_url":"https://api.github.com/repos/piotrmurach/tty-spinner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piotrmurach/tty-spinner/statuses/{sha}","languages_url":"https://api.github.com/repos/piotrmurach/tty-spinner/languages","stargazers_url":"https://api.github.com/repos/piotrmurach/tty-spinner/stargazers","contributors_url":"https://api.github.com/repos/piotrmurach/tty-spinner/contributors","subscribers_url":"https://api.github.com/repos/piotrmurach/tty-spinner/subscribers","subscription_url":"https://api.github.com/repos/piotrmurach/tty-spinner/subscription","commits_url":"https://api.github.com/repos/piotrmurach/tty-spinner/commits{/sha}","git_commits_url":"https://api.github.com/repos/piotrmurach/tty-spinner/git/commits{/sha}","comments_url":"https://api.github.com/repos/piotrmurach/tty-spinner/comments{/number}","issue_comment_url":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/comments{/number}","contents_url":"https://api.github.com/repos/piotrmurach/tty-spinner/contents/{+path}","compare_url":"https://api.github.com/repos/piotrmurach/tty-spinner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piotrmurach/tty-spinner/merges","archive_url":"https://api.github.com/repos/piotrmurach/tty-spinner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piotrmurach/tty-spinner/downloads","issues_url":"https://api.github.com/repos/piotrmurach/tty-spinner/issues{/number}","pulls_url":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls{/number}","milestones_url":"https://api.github.com/repos/piotrmurach/tty-spinner/milestones{/number}","notifications_url":"https://api.github.com/repos/piotrmurach/tty-spinner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piotrmurach/tty-spinner/labels{/name}","releases_url":"https://api.github.com/repos/piotrmurach/tty-spinner/releases{/id}","deployments_url":"https://api.github.com/repos/piotrmurach/tty-spinner/deployments","created_at":"2014-11-15T20:42:25Z","updated_at":"2017-07-10T08:43:06Z","pushed_at":"2017-07-28T01:22:47Z","git_url":"git://github.com/piotrmurach/tty-spinner.git","ssh_url":"git@github.com:piotrmurach/tty-spinner.git","clone_url":"https://github.com/piotrmurach/tty-spinner.git","svn_url":"https://github.com/piotrmurach/tty-spinner","homepage":"https://piotrmurach.github.io/tty/","size":182,"stargazers_count":165,"watchers_count":165,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13"},"html":{"href":"https://github.com/piotrmurach/tty-spinner/pull/13"},"issue":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/13"},"comments":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/piotrmurach/tty-spinner/statuses/815ce84efc062ed1ca54d0f482e1b6d79ee00d3c"}}}}
{"actor":{"display_login":"houndci-bot"}}