{"action":"created","comment":{"url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/comments/71182554","id":71182554,"diff_hunk":"@@ -7,11 +7,39 @@ def initialize\n   end\n \n   def push(item)\n+    if @stack.empty?\n+      @stack[0] = item\n+    else\n+      array = [item]\n+      @stack.each_with_index do |person, index|\n+        array[index + 1] = @stack[index]\n+      end\n+      @stack = array\n+    end\n+    self.top = @stack[0]\n   end\n \n   def pop\n+    if @stack.empty?\n+      return true","path":"01-data-structures/02-stacks-and-queues/mystack/mystack.rb","position":18,"original_position":18,"commit_id":"e2ed8279dee8c6370e115aa761f4e57c3e4825db","original_commit_id":"e2ed8279dee8c6370e115aa761f4e57c3e4825db","user":{"login":"dawsonc623","id":6944054,"avatar_url":"https://avatars.githubusercontent.com/u/6944054?v=3","gravatar_id":"","url":"https://api.github.com/users/dawsonc623","html_url":"https://github.com/dawsonc623","followers_url":"https://api.github.com/users/dawsonc623/followers","following_url":"https://api.github.com/users/dawsonc623/following{/other_user}","gists_url":"https://api.github.com/users/dawsonc623/gists{/gist_id}","starred_url":"https://api.github.com/users/dawsonc623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawsonc623/subscriptions","organizations_url":"https://api.github.com/users/dawsonc623/orgs","repos_url":"https://api.github.com/users/dawsonc623/repos","events_url":"https://api.github.com/users/dawsonc623/events{/privacy}","received_events_url":"https://api.github.com/users/dawsonc623/received_events","type":"User","site_admin":false},"body":"Why are you returning true here?","created_at":"2016-07-18T16:40:29Z","updated_at":"2016-07-18T16:40:29Z","html_url":"https://github.com/eflores0227/sep-assignments/pull/2#discussion_r71182554","pull_request_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/comments/71182554"},"html":{"href":"https://github.com/eflores0227/sep-assignments/pull/2#discussion_r71182554"},"pull_request":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2","id":77828570,"html_url":"https://github.com/eflores0227/sep-assignments/pull/2","diff_url":"https://github.com/eflores0227/sep-assignments/pull/2.diff","patch_url":"https://github.com/eflores0227/sep-assignments/pull/2.patch","issue_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/2","number":2,"state":"open","locked":false,"title":"Checkpoint 2 stacks","user":{"login":"dawsonc623","id":6944054,"avatar_url":"https://avatars.githubusercontent.com/u/6944054?v=3","gravatar_id":"","url":"https://api.github.com/users/dawsonc623","html_url":"https://github.com/dawsonc623","followers_url":"https://api.github.com/users/dawsonc623/followers","following_url":"https://api.github.com/users/dawsonc623/following{/other_user}","gists_url":"https://api.github.com/users/dawsonc623/gists{/gist_id}","starred_url":"https://api.github.com/users/dawsonc623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawsonc623/subscriptions","organizations_url":"https://api.github.com/users/dawsonc623/orgs","repos_url":"https://api.github.com/users/dawsonc623/repos","events_url":"https://api.github.com/users/dawsonc623/events{/privacy}","received_events_url":"https://api.github.com/users/dawsonc623/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-18T15:32:33Z","updated_at":"2016-07-18T16:40:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25cbbb5da8026309c35fc8c353cad53cc18af520","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2/commits","review_comments_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2/comments","review_comment_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/2/comments","statuses_url":"https://api.github.com/repos/eflores0227/sep-assignments/statuses/e2ed8279dee8c6370e115aa761f4e57c3e4825db","head":{"label":"eflores0227:checkpoint-2-stacks","ref":"checkpoint-2-stacks","sha":"e2ed8279dee8c6370e115aa761f4e57c3e4825db","user":{"login":"eflores0227","id":16542922,"avatar_url":"https://avatars.githubusercontent.com/u/16542922?v=3","gravatar_id":"","url":"https://api.github.com/users/eflores0227","html_url":"https://github.com/eflores0227","followers_url":"https://api.github.com/users/eflores0227/followers","following_url":"https://api.github.com/users/eflores0227/following{/other_user}","gists_url":"https://api.github.com/users/eflores0227/gists{/gist_id}","starred_url":"https://api.github.com/users/eflores0227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflores0227/subscriptions","organizations_url":"https://api.github.com/users/eflores0227/orgs","repos_url":"https://api.github.com/users/eflores0227/repos","events_url":"https://api.github.com/users/eflores0227/events{/privacy}","received_events_url":"https://api.github.com/users/eflores0227/received_events","type":"User","site_admin":false},"repo":{"id":63036756,"name":"sep-assignments","full_name":"eflores0227/sep-assignments","owner":{"login":"eflores0227","id":16542922,"avatar_url":"https://avatars.githubusercontent.com/u/16542922?v=3","gravatar_id":"","url":"https://api.github.com/users/eflores0227","html_url":"https://github.com/eflores0227","followers_url":"https://api.github.com/users/eflores0227/followers","following_url":"https://api.github.com/users/eflores0227/following{/other_user}","gists_url":"https://api.github.com/users/eflores0227/gists{/gist_id}","starred_url":"https://api.github.com/users/eflores0227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflores0227/subscriptions","organizations_url":"https://api.github.com/users/eflores0227/orgs","repos_url":"https://api.github.com/users/eflores0227/repos","events_url":"https://api.github.com/users/eflores0227/events{/privacy}","received_events_url":"https://api.github.com/users/eflores0227/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eflores0227/sep-assignments","description":"Software Engineering Principles skeleton solution files","fork":true,"url":"https://api.github.com/repos/eflores0227/sep-assignments","forks_url":"https://api.github.com/repos/eflores0227/sep-assignments/forks","keys_url":"https://api.github.com/repos/eflores0227/sep-assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eflores0227/sep-assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eflores0227/sep-assignments/teams","hooks_url":"https://api.github.com/repos/eflores0227/sep-assignments/hooks","issue_events_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/events{/number}","events_url":"https://api.github.com/repos/eflores0227/sep-assignments/events","assignees_url":"https://api.github.com/repos/eflores0227/sep-assignments/assignees{/user}","branches_url":"https://api.github.com/repos/eflores0227/sep-assignments/branches{/branch}","tags_url":"https://api.github.com/repos/eflores0227/sep-assignments/tags","blobs_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eflores0227/sep-assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/eflores0227/sep-assignments/languages","stargazers_url":"https://api.github.com/repos/eflores0227/sep-assignments/stargazers","contributors_url":"https://api.github.com/repos/eflores0227/sep-assignments/contributors","subscribers_url":"https://api.github.com/repos/eflores0227/sep-assignments/subscribers","subscription_url":"https://api.github.com/repos/eflores0227/sep-assignments/subscription","commits_url":"https://api.github.com/repos/eflores0227/sep-assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/eflores0227/sep-assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/eflores0227/sep-assignments/contents/{+path}","compare_url":"https://api.github.com/repos/eflores0227/sep-assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eflores0227/sep-assignments/merges","archive_url":"https://api.github.com/repos/eflores0227/sep-assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eflores0227/sep-assignments/downloads","issues_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues{/number}","pulls_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/eflores0227/sep-assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/eflores0227/sep-assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eflores0227/sep-assignments/labels{/name}","releases_url":"https://api.github.com/repos/eflores0227/sep-assignments/releases{/id}","deployments_url":"https://api.github.com/repos/eflores0227/sep-assignments/deployments","created_at":"2016-07-11T04:33:05Z","updated_at":"2016-07-11T04:33:05Z","pushed_at":"2016-07-18T15:32:33Z","git_url":"git://github.com/eflores0227/sep-assignments.git","ssh_url":"git@github.com:eflores0227/sep-assignments.git","clone_url":"https://github.com/eflores0227/sep-assignments.git","svn_url":"https://github.com/eflores0227/sep-assignments","homepage":null,"size":22,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"eflores0227:master","ref":"master","sha":"6670caf580021dc645feb35d4b988bbd12a8aef0","user":{"login":"eflores0227","id":16542922,"avatar_url":"https://avatars.githubusercontent.com/u/16542922?v=3","gravatar_id":"","url":"https://api.github.com/users/eflores0227","html_url":"https://github.com/eflores0227","followers_url":"https://api.github.com/users/eflores0227/followers","following_url":"https://api.github.com/users/eflores0227/following{/other_user}","gists_url":"https://api.github.com/users/eflores0227/gists{/gist_id}","starred_url":"https://api.github.com/users/eflores0227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflores0227/subscriptions","organizations_url":"https://api.github.com/users/eflores0227/orgs","repos_url":"https://api.github.com/users/eflores0227/repos","events_url":"https://api.github.com/users/eflores0227/events{/privacy}","received_events_url":"https://api.github.com/users/eflores0227/received_events","type":"User","site_admin":false},"repo":{"id":63036756,"name":"sep-assignments","full_name":"eflores0227/sep-assignments","owner":{"login":"eflores0227","id":16542922,"avatar_url":"https://avatars.githubusercontent.com/u/16542922?v=3","gravatar_id":"","url":"https://api.github.com/users/eflores0227","html_url":"https://github.com/eflores0227","followers_url":"https://api.github.com/users/eflores0227/followers","following_url":"https://api.github.com/users/eflores0227/following{/other_user}","gists_url":"https://api.github.com/users/eflores0227/gists{/gist_id}","starred_url":"https://api.github.com/users/eflores0227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflores0227/subscriptions","organizations_url":"https://api.github.com/users/eflores0227/orgs","repos_url":"https://api.github.com/users/eflores0227/repos","events_url":"https://api.github.com/users/eflores0227/events{/privacy}","received_events_url":"https://api.github.com/users/eflores0227/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eflores0227/sep-assignments","description":"Software Engineering Principles skeleton solution files","fork":true,"url":"https://api.github.com/repos/eflores0227/sep-assignments","forks_url":"https://api.github.com/repos/eflores0227/sep-assignments/forks","keys_url":"https://api.github.com/repos/eflores0227/sep-assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eflores0227/sep-assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eflores0227/sep-assignments/teams","hooks_url":"https://api.github.com/repos/eflores0227/sep-assignments/hooks","issue_events_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/events{/number}","events_url":"https://api.github.com/repos/eflores0227/sep-assignments/events","assignees_url":"https://api.github.com/repos/eflores0227/sep-assignments/assignees{/user}","branches_url":"https://api.github.com/repos/eflores0227/sep-assignments/branches{/branch}","tags_url":"https://api.github.com/repos/eflores0227/sep-assignments/tags","blobs_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eflores0227/sep-assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/eflores0227/sep-assignments/languages","stargazers_url":"https://api.github.com/repos/eflores0227/sep-assignments/stargazers","contributors_url":"https://api.github.com/repos/eflores0227/sep-assignments/contributors","subscribers_url":"https://api.github.com/repos/eflores0227/sep-assignments/subscribers","subscription_url":"https://api.github.com/repos/eflores0227/sep-assignments/subscription","commits_url":"https://api.github.com/repos/eflores0227/sep-assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/eflores0227/sep-assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/eflores0227/sep-assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/eflores0227/sep-assignments/contents/{+path}","compare_url":"https://api.github.com/repos/eflores0227/sep-assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eflores0227/sep-assignments/merges","archive_url":"https://api.github.com/repos/eflores0227/sep-assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eflores0227/sep-assignments/downloads","issues_url":"https://api.github.com/repos/eflores0227/sep-assignments/issues{/number}","pulls_url":"https://api.github.com/repos/eflores0227/sep-assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/eflores0227/sep-assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/eflores0227/sep-assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eflores0227/sep-assignments/labels{/name}","releases_url":"https://api.github.com/repos/eflores0227/sep-assignments/releases{/id}","deployments_url":"https://api.github.com/repos/eflores0227/sep-assignments/deployments","created_at":"2016-07-11T04:33:05Z","updated_at":"2016-07-11T04:33:05Z","pushed_at":"2016-07-18T15:32:33Z","git_url":"git://github.com/eflores0227/sep-assignments.git","ssh_url":"git@github.com:eflores0227/sep-assignments.git","clone_url":"https://github.com/eflores0227/sep-assignments.git","svn_url":"https://github.com/eflores0227/sep-assignments","homepage":null,"size":22,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2"},"html":{"href":"https://github.com/eflores0227/sep-assignments/pull/2"},"issue":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/issues/2"},"comments":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/eflores0227/sep-assignments/statuses/e2ed8279dee8c6370e115aa761f4e57c3e4825db"}}}}
{"actor":{"display_login":"dawsonc623"}}