GitHub PullRequestReviewCommentEvent at 2014-08-27 21:34:05
Repository: level_up_exercises
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/16806473","id":16806473,"diff_hunk":"@@ -0,0 +1,76 @@\n+load \"#{File.dirname(__FILE__)}/../main.rb\"\n+\n+describe DinoDex::Catalog do\n+  \n+  c = DinoDex::Catalog.new(\"data/african_dinosaur_export.csv\").import(\"data/dinodex.csv\")\n+\n+  context \"importing\" do\n+    it \"will have contain X entries\" do\n+      expected = 16\n+      expect(c.entries.size).to eq(expected)\n+    end\n+  end\n+\n+  context \"querying\" do\n+\n+    context \"for equality\" do\n+      it \"will match\" do\n+        x = c.where(:diet => :carnivore).and(:locomotion_type => :biped)\n+        expected = [\"afrovenator\", \"albertosaurus\", \"carcharodontosaurus\", \"deinonychus\", \"giganotosaurus\", \"megalosaurus\", \"suchomimus\", \"yangchuanosaurus\"]\n+        expect(x.collect(&:genus).sort.sort).to eq(expected)\n+      end\n+    end\n+\n+    context \"for substring inclusion\" do\n+      it \"will match\" do\n+        x = c.where(:period => :cretaceous)\n+        expected = [\"albertonykus\", \"albertosaurus\", \"baryonyx\", \"deinonychus\", \"giganotosaurus\", \"paralititan\", \"quetzalcoatlus\", \"suchomimus\"]\n+        expect(x.collect(&:genus).sort.sort).to eq(expected)\n+      end\n+    end\n+\n+    context \"for comparison\" do\n+\n+      context \"with symbols\" do\n+        context \"and hashes\" do\n+          it \"will match\" do\n+            x = c.where(:diet => :carnivore).and(:locomotion_type => :biped)","path":"dino_catalog/source/spec/stubs_spec.rb","position":37,"original_position":37,"commit_id":"728e3321e4843650b921541d0ad36ba7954574fb","original_commit_id":"728e3321e4843650b921541d0ad36ba7954574fb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"Use the new Ruby 1.9 hash syntax.","created_at":"2014-08-27T21:34:05Z","updated_at":"2014-08-27T21:34:05Z","html_url":"https://github.com/jmmastey/level_up_exercises/pull/14#discussion_r16806473","pull_request_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/16806473"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/14#discussion_r16806473"},"pull_request":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14","id":20403711,"html_url":"https://github.com/jmmastey/level_up_exercises/pull/14","diff_url":"https://github.com/jmmastey/level_up_exercises/pull/14.diff","patch_url":"https://github.com/jmmastey/level_up_exercises/pull/14.patch","issue_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/14","number":14,"state":"open","locked":false,"title":"dino_catalog: ready for review.","user":{"login":"aeberlin","id":1169939,"avatar_url":"https://avatars.githubusercontent.com/u/1169939?v=2","gravatar_id":"20376b2f524cf9f2a2933afac24e2526","url":"https://api.github.com/users/aeberlin","html_url":"https://github.com/aeberlin","followers_url":"https://api.github.com/users/aeberlin/followers","following_url":"https://api.github.com/users/aeberlin/following{/other_user}","gists_url":"https://api.github.com/users/aeberlin/gists{/gist_id}","starred_url":"https://api.github.com/users/aeberlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeberlin/subscriptions","organizations_url":"https://api.github.com/users/aeberlin/orgs","repos_url":"https://api.github.com/users/aeberlin/repos","events_url":"https://api.github.com/users/aeberlin/events{/privacy}","received_events_url":"https://api.github.com/users/aeberlin/received_events","type":"User","site_admin":false},"body":"Also, see changes to CSV files for spelling corrections. Can rebranch if necessary for a direct pull request.","created_at":"2014-08-27T21:33:54Z","updated_at":"2014-08-27T21:34:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cff68f9656cf36eb6f2c41fa0d20d9c828d267e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14/commits","review_comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14/comments","review_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/14/comments","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/728e3321e4843650b921541d0ad36ba7954574fb","head":{"label":"aeberlin:master","ref":"master","sha":"728e3321e4843650b921541d0ad36ba7954574fb","user":{"login":"aeberlin","id":1169939,"avatar_url":"https://avatars.githubusercontent.com/u/1169939?v=2","gravatar_id":"20376b2f524cf9f2a2933afac24e2526","url":"https://api.github.com/users/aeberlin","html_url":"https://github.com/aeberlin","followers_url":"https://api.github.com/users/aeberlin/followers","following_url":"https://api.github.com/users/aeberlin/following{/other_user}","gists_url":"https://api.github.com/users/aeberlin/gists{/gist_id}","starred_url":"https://api.github.com/users/aeberlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeberlin/subscriptions","organizations_url":"https://api.github.com/users/aeberlin/orgs","repos_url":"https://api.github.com/users/aeberlin/repos","events_url":"https://api.github.com/users/aeberlin/events{/privacy}","received_events_url":"https://api.github.com/users/aeberlin/received_events","type":"User","site_admin":false},"repo":{"id":23405722,"name":"level_up_exercises","full_name":"aeberlin/level_up_exercises","owner":{"login":"aeberlin","id":1169939,"avatar_url":"https://avatars.githubusercontent.com/u/1169939?v=2","gravatar_id":"20376b2f524cf9f2a2933afac24e2526","url":"https://api.github.com/users/aeberlin","html_url":"https://github.com/aeberlin","followers_url":"https://api.github.com/users/aeberlin/followers","following_url":"https://api.github.com/users/aeberlin/following{/other_user}","gists_url":"https://api.github.com/users/aeberlin/gists{/gist_id}","starred_url":"https://api.github.com/users/aeberlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeberlin/subscriptions","organizations_url":"https://api.github.com/users/aeberlin/orgs","repos_url":"https://api.github.com/users/aeberlin/repos","events_url":"https://api.github.com/users/aeberlin/events{/privacy}","received_events_url":"https://api.github.com/users/aeberlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aeberlin/level_up_exercises","description":"A long series of code-related assignments to challenge starting engineers","fork":true,"url":"https://api.github.com/repos/aeberlin/level_up_exercises","forks_url":"https://api.github.com/repos/aeberlin/level_up_exercises/forks","keys_url":"https://api.github.com/repos/aeberlin/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aeberlin/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aeberlin/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/aeberlin/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/aeberlin/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/aeberlin/level_up_exercises/events","assignees_url":"https://api.github.com/repos/aeberlin/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/aeberlin/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/aeberlin/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/aeberlin/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aeberlin/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aeberlin/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/aeberlin/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aeberlin/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/aeberlin/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/aeberlin/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/aeberlin/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/aeberlin/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/aeberlin/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/aeberlin/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/aeberlin/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/aeberlin/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/aeberlin/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/aeberlin/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/aeberlin/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aeberlin/level_up_exercises/merges","archive_url":"https://api.github.com/repos/aeberlin/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aeberlin/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/aeberlin/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/aeberlin/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/aeberlin/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/aeberlin/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aeberlin/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/aeberlin/level_up_exercises/releases{/id}","created_at":"2014-08-27T21:16:22Z","updated_at":"2014-08-27T21:20:09Z","pushed_at":"2014-08-27T21:33:26Z","git_url":"git://github.com/aeberlin/level_up_exercises.git","ssh_url":"git@github.com:aeberlin/level_up_exercises.git","clone_url":"https://github.com/aeberlin/level_up_exercises.git","svn_url":"https://github.com/aeberlin/level_up_exercises","homepage":null,"size":567,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jmmastey:master","ref":"master","sha":"65a78cf8ec1dde31615bde6ce2ba84666224f8fd","user":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=2","gravatar_id":"a9704266587836f7e784235e5073b93e","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"repo":{"id":20705648,"name":"level_up_exercises","full_name":"jmmastey/level_up_exercises","owner":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=2","gravatar_id":"a9704266587836f7e784235e5073b93e","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmmastey/level_up_exercises","description":"A long series of code-related assignments to challenge starting engineers","fork":false,"url":"https://api.github.com/repos/jmmastey/level_up_exercises","forks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/forks","keys_url":"https://api.github.com/repos/jmmastey/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmmastey/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmmastey/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/events","assignees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/jmmastey/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/jmmastey/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/jmmastey/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmmastey/level_up_exercises/merges","archive_url":"https://api.github.com/repos/jmmastey/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmmastey/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/jmmastey/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/jmmastey/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmmastey/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/jmmastey/level_up_exercises/releases{/id}","created_at":"2014-06-10T23:42:24Z","updated_at":"2014-08-18T20:10:41Z","pushed_at":"2014-08-05T15:33:22Z","git_url":"git://github.com/jmmastey/level_up_exercises.git","ssh_url":"git@github.com:jmmastey/level_up_exercises.git","clone_url":"https://github.com/jmmastey/level_up_exercises.git","svn_url":"https://github.com/jmmastey/level_up_exercises","homepage":null,"size":567,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":20,"mirror_url":null,"open_issues_count":9,"forks":20,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/14"},"issue":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/14"},"comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/728e3321e4843650b921541d0ad36ba7954574fb"}}}}