{"action":"created","comment":{"url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/comments/48762783","id":48762783,"diff_hunk":"@@ -1,10 +1,26 @@\n require_relative 'recipe_parsers/shaped_ore'\n \n-recipe = ARGV[0]\n+def go(recipe)\n+  if recipe =~ /^GameRegistry\\.addRecipe\\(new ShapedOreRecipe\\(/\n+    RecipeParsers::ShapedOreRecipeParser.new(recipe).parse\n+    puts \"\"\n+  else\n+    puts 'That recipe type is not currently supported. Please submit a PR so we can support it.\\n'\n+  end\n+end\n \n-if recipe =~ /^GameRegistry\\.addRecipe\\(new ShapedOreRecipe\\(/\n-  maker = RecipeParsers::ShapedOreRecipeParser.new(recipe)\n-  maker.parse\n+if ARGV[0] == nil","path":"lib/main.rb","position":16,"original_position":16,"commit_id":"eb58d684abef23ea864d363b569bb22b4a064470","original_commit_id":"eb58d684abef23ea864d363b569bb22b4a064470","user":{"login":"elifoster","id":4176124,"avatar_url":"https://avatars.githubusercontent.com/u/4176124?v=3","gravatar_id":"","url":"https://api.github.com/users/elifoster","html_url":"https://github.com/elifoster","followers_url":"https://api.github.com/users/elifoster/followers","following_url":"https://api.github.com/users/elifoster/following{/other_user}","gists_url":"https://api.github.com/users/elifoster/gists{/gist_id}","starred_url":"https://api.github.com/users/elifoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifoster/subscriptions","organizations_url":"https://api.github.com/users/elifoster/orgs","repos_url":"https://api.github.com/users/elifoster/repos","events_url":"https://api.github.com/users/elifoster/events{/privacy}","received_events_url":"https://api.github.com/users/elifoster/received_events","type":"User","site_admin":false},"body":"Prefer `ARGV[0].nil?` over `ARGV[0] == nil`","created_at":"2016-01-04T18:35:06Z","updated_at":"2016-01-04T18:35:06Z","html_url":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3#discussion_r48762783","pull_request_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/comments/48762783"},"html":{"href":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3#discussion_r48762783"},"pull_request":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3","id":54999535,"html_url":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3","diff_url":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3.diff","patch_url":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3.patch","issue_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/3","number":3,"state":"open","locked":false,"title":"Allow batch runs","user":{"login":"Chocohead","id":4021725,"avatar_url":"https://avatars.githubusercontent.com/u/4021725?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocohead","html_url":"https://github.com/Chocohead","followers_url":"https://api.github.com/users/Chocohead/followers","following_url":"https://api.github.com/users/Chocohead/following{/other_user}","gists_url":"https://api.github.com/users/Chocohead/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocohead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocohead/subscriptions","organizations_url":"https://api.github.com/users/Chocohead/orgs","repos_url":"https://api.github.com/users/Chocohead/repos","events_url":"https://api.github.com/users/Chocohead/events{/privacy}","received_events_url":"https://api.github.com/users/Chocohead/received_events","type":"User","site_admin":false},"body":"Having to spam long lines into the console is a pain if the mod you're using has a lot of recipes. Being able to dump them into a file and then run off the file makes the process much easier.","created_at":"2016-01-04T17:24:38Z","updated_at":"2016-01-04T18:35:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2733513fb5f8acf45fdd9655c1a86bd906db44d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3/commits","review_comments_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3/comments","review_comment_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/3/comments","statuses_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/statuses/eb58d684abef23ea864d363b569bb22b4a064470","head":{"label":"Chocohead:patch-1","ref":"patch-1","sha":"eb58d684abef23ea864d363b569bb22b4a064470","user":{"login":"Chocohead","id":4021725,"avatar_url":"https://avatars.githubusercontent.com/u/4021725?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocohead","html_url":"https://github.com/Chocohead","followers_url":"https://api.github.com/users/Chocohead/followers","following_url":"https://api.github.com/users/Chocohead/following{/other_user}","gists_url":"https://api.github.com/users/Chocohead/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocohead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocohead/subscriptions","organizations_url":"https://api.github.com/users/Chocohead/orgs","repos_url":"https://api.github.com/users/Chocohead/repos","events_url":"https://api.github.com/users/Chocohead/events{/privacy}","received_events_url":"https://api.github.com/users/Chocohead/received_events","type":"User","site_admin":false},"repo":{"id":49011785,"name":"recipes-rb","full_name":"Chocohead/recipes-rb","owner":{"login":"Chocohead","id":4021725,"avatar_url":"https://avatars.githubusercontent.com/u/4021725?v=3","gravatar_id":"","url":"https://api.github.com/users/Chocohead","html_url":"https://github.com/Chocohead","followers_url":"https://api.github.com/users/Chocohead/followers","following_url":"https://api.github.com/users/Chocohead/following{/other_user}","gists_url":"https://api.github.com/users/Chocohead/gists{/gist_id}","starred_url":"https://api.github.com/users/Chocohead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chocohead/subscriptions","organizations_url":"https://api.github.com/users/Chocohead/orgs","repos_url":"https://api.github.com/users/Chocohead/repos","events_url":"https://api.github.com/users/Chocohead/events{/privacy}","received_events_url":"https://api.github.com/users/Chocohead/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chocohead/recipes-rb","description":"A program to parse Minecraft Forge recipes, and turn them into FTB Wiki templates","fork":true,"url":"https://api.github.com/repos/Chocohead/recipes-rb","forks_url":"https://api.github.com/repos/Chocohead/recipes-rb/forks","keys_url":"https://api.github.com/repos/Chocohead/recipes-rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chocohead/recipes-rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chocohead/recipes-rb/teams","hooks_url":"https://api.github.com/repos/Chocohead/recipes-rb/hooks","issue_events_url":"https://api.github.com/repos/Chocohead/recipes-rb/issues/events{/number}","events_url":"https://api.github.com/repos/Chocohead/recipes-rb/events","assignees_url":"https://api.github.com/repos/Chocohead/recipes-rb/assignees{/user}","branches_url":"https://api.github.com/repos/Chocohead/recipes-rb/branches{/branch}","tags_url":"https://api.github.com/repos/Chocohead/recipes-rb/tags","blobs_url":"https://api.github.com/repos/Chocohead/recipes-rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chocohead/recipes-rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chocohead/recipes-rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chocohead/recipes-rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chocohead/recipes-rb/statuses/{sha}","languages_url":"https://api.github.com/repos/Chocohead/recipes-rb/languages","stargazers_url":"https://api.github.com/repos/Chocohead/recipes-rb/stargazers","contributors_url":"https://api.github.com/repos/Chocohead/recipes-rb/contributors","subscribers_url":"https://api.github.com/repos/Chocohead/recipes-rb/subscribers","subscription_url":"https://api.github.com/repos/Chocohead/recipes-rb/subscription","commits_url":"https://api.github.com/repos/Chocohead/recipes-rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chocohead/recipes-rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chocohead/recipes-rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chocohead/recipes-rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chocohead/recipes-rb/contents/{+path}","compare_url":"https://api.github.com/repos/Chocohead/recipes-rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chocohead/recipes-rb/merges","archive_url":"https://api.github.com/repos/Chocohead/recipes-rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chocohead/recipes-rb/downloads","issues_url":"https://api.github.com/repos/Chocohead/recipes-rb/issues{/number}","pulls_url":"https://api.github.com/repos/Chocohead/recipes-rb/pulls{/number}","milestones_url":"https://api.github.com/repos/Chocohead/recipes-rb/milestones{/number}","notifications_url":"https://api.github.com/repos/Chocohead/recipes-rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chocohead/recipes-rb/labels{/name}","releases_url":"https://api.github.com/repos/Chocohead/recipes-rb/releases{/id}","created_at":"2016-01-04T17:19:35Z","updated_at":"2016-01-03T23:48:49Z","pushed_at":"2016-01-04T17:22:53Z","git_url":"git://github.com/Chocohead/recipes-rb.git","ssh_url":"git@github.com:Chocohead/recipes-rb.git","clone_url":"https://github.com/Chocohead/recipes-rb.git","svn_url":"https://github.com/Chocohead/recipes-rb","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":"FTB-Gamepedia:dev","ref":"dev","sha":"0af379ce9f65ef169bab9eb442e6129b46fb5350","user":{"login":"FTB-Gamepedia","id":14207393,"avatar_url":"https://avatars.githubusercontent.com/u/14207393?v=3","gravatar_id":"","url":"https://api.github.com/users/FTB-Gamepedia","html_url":"https://github.com/FTB-Gamepedia","followers_url":"https://api.github.com/users/FTB-Gamepedia/followers","following_url":"https://api.github.com/users/FTB-Gamepedia/following{/other_user}","gists_url":"https://api.github.com/users/FTB-Gamepedia/gists{/gist_id}","starred_url":"https://api.github.com/users/FTB-Gamepedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FTB-Gamepedia/subscriptions","organizations_url":"https://api.github.com/users/FTB-Gamepedia/orgs","repos_url":"https://api.github.com/users/FTB-Gamepedia/repos","events_url":"https://api.github.com/users/FTB-Gamepedia/events{/privacy}","received_events_url":"https://api.github.com/users/FTB-Gamepedia/received_events","type":"Organization","site_admin":false},"repo":{"id":48923535,"name":"recipes-rb","full_name":"FTB-Gamepedia/recipes-rb","owner":{"login":"FTB-Gamepedia","id":14207393,"avatar_url":"https://avatars.githubusercontent.com/u/14207393?v=3","gravatar_id":"","url":"https://api.github.com/users/FTB-Gamepedia","html_url":"https://github.com/FTB-Gamepedia","followers_url":"https://api.github.com/users/FTB-Gamepedia/followers","following_url":"https://api.github.com/users/FTB-Gamepedia/following{/other_user}","gists_url":"https://api.github.com/users/FTB-Gamepedia/gists{/gist_id}","starred_url":"https://api.github.com/users/FTB-Gamepedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FTB-Gamepedia/subscriptions","organizations_url":"https://api.github.com/users/FTB-Gamepedia/orgs","repos_url":"https://api.github.com/users/FTB-Gamepedia/repos","events_url":"https://api.github.com/users/FTB-Gamepedia/events{/privacy}","received_events_url":"https://api.github.com/users/FTB-Gamepedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FTB-Gamepedia/recipes-rb","description":"A program to parse Minecraft Forge recipes, and turn them into FTB Wiki templates","fork":false,"url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb","forks_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/forks","keys_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/teams","hooks_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/hooks","issue_events_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/events{/number}","events_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/events","assignees_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/assignees{/user}","branches_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/branches{/branch}","tags_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/tags","blobs_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/statuses/{sha}","languages_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/languages","stargazers_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/stargazers","contributors_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/contributors","subscribers_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/subscribers","subscription_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/subscription","commits_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/contents/{+path}","compare_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/merges","archive_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/downloads","issues_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues{/number}","pulls_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls{/number}","milestones_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/milestones{/number}","notifications_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/labels{/name}","releases_url":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/releases{/id}","created_at":"2016-01-02T20:53:50Z","updated_at":"2016-01-03T23:48:49Z","pushed_at":"2016-01-04T17:24:38Z","git_url":"git://github.com/FTB-Gamepedia/recipes-rb.git","ssh_url":"git@github.com:FTB-Gamepedia/recipes-rb.git","clone_url":"https://github.com/FTB-Gamepedia/recipes-rb.git","svn_url":"https://github.com/FTB-Gamepedia/recipes-rb","homepage":"","size":5,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3"},"html":{"href":"https://github.com/FTB-Gamepedia/recipes-rb/pull/3"},"issue":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/3"},"comments":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/FTB-Gamepedia/recipes-rb/statuses/eb58d684abef23ea864d363b569bb22b4a064470"}}}}