GitHub PullRequestReviewCommentEvent at 2014-04-22 20:05:17
Repository: Coolsoft-14
Actor: KhaledHelmy
Payload: {"comment":{"url":"https://api.github.com/repos/alaashafaee/Coolsoft-14/pulls/comments/11873048","id":11873048,"diff_hunk":"@@ -21,7 +21,33 @@ def create\n \t\t\tredirect_to :back\n \t\telsif params[:commit] == 'Compile'\n \t\t\tcompile_solution\n+\t\telsif params[:commit] == 'Run Test Case'\n+\t\t\tcompile_solution\n+\t\t\tif flash[:compiler_fail] || flash[:alert]\n+\t\t\t\tredirect_to :back and return\n+\t\t\tend\n+\t\t\texecute\n \t\tend\n+\tend\t\n+\n+\t# [Compiler: Test - Story 3.15]\n+\t# This Action runs the execute method from the Executer model\n+\t# Parameters:\n+\t#\t@solution: The submitted solution\n+\t# Returns:\n+\t# \tA flash message containing the appropriate reply\n+\t# Author: Ahmed Akram\n+\tdef execute\n+\t\tfile_name = @solution.file_name\n+\t\tif Executer.execute(file_name, input[:input], solution_params[:problem_id])\n+\t\t\toutput = Executer.get_output()\n+\t\t\tflash[:msg] = output\n+\t\telse\n+\t\t\toutput = Executer.get_runtime_error(file_name, 'CoolSoft')\n+\t\t\tflash[:msg] = output[:error]\n+\t\t\tflash[:exp] = output[:explaination]","path":"tutor/app/controllers/solutions_controller.rb","position":39,"original_position":39,"commit_id":"922780b938bf02dc91ecc3b4ebc16bcd8c584261","original_commit_id":"922780b938bf02dc91ecc3b4ebc16bcd8c584261","user":{"login":"KhaledHelmy","id":6735475,"avatar_url":"https://avatars.githubusercontent.com/u/6735475?","gravatar_id":"943e246417efffca9306d384685a807d","url":"https://api.github.com/users/KhaledHelmy","html_url":"https://github.com/KhaledHelmy","followers_url":"https://api.github.com/users/KhaledHelmy/followers","following_url":"https://api.github.com/users/KhaledHelmy/following{/other_user}","gists_url":"https://api.github.com/users/KhaledHelmy/gists{/gist_id}","starred_url":"https://api.github.com/users/KhaledHelmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhaledHelmy/subscriptions","organizations_url":"https://api.github.com/users/KhaledHelmy/orgs","repos_url":"https://api.github.com/users/KhaledHelmy/repos","events_url":"https://api.github.com/users/KhaledHelmy/events{/privacy}","received_events_url":"https://api.github.com/users/KhaledHelmy/received_events","type":"User","site_admin":false},"body":"Wrong spelling in \":explanation\".","created_at":"2014-04-22T20:05:17Z","updated_at":"2014-04-22T20:05:17Z","html_url":"https://github.com/alaashafaee/Coolsoft-14/pull/323#discussion_r11873048","pull_request_url":"https://api.github.com/repos/alaashafaee/Coolsoft-14/pulls/323","_links":{"self":{"href":"https://api.github.com/repos/alaashafaee/Coolsoft-14/pulls/comments/11873048"},"html":{"href":"https://github.com/alaashafaee/Coolsoft-14/pull/323#discussion_r11873048"},"pull_request":{"href":"https://api.github.com/repos/alaashafaee/Coolsoft-14/pulls/323"}}}}