{"action":"created","comment":{"url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/comments/39752032","id":39752032,"diff_hunk":"@@ -32,24 +29,22 @@ def supported_locales\n     end\n \n     def check_file_status(language_code)\n-      begin\n-        res = @my_smartling.status(upload_file_path, :locale => language_code)\n-        total_strings =  res['stringCount'].to_i\n-        completed_strings =  res['completedStringCount'].to_i\n-        file_complete = completed_strings >= total_strings \n-        SmartlingRails.print_msg \"#{language_code} completed: #{file_complete} (#{completed_strings} / #{total_strings})\"\n-      rescue Exception => e\n-        puts e.message\n-      end\n+      res = @my_smartling.status(upload_file_path, locale: language_code)\n+      total_strings =  res['stringCount'].to_i\n+      completed_strings =  res['completedStringCount'].to_i\n+      file_complete = completed_strings >= total_strings\n+      SmartlingRails.print_msg \"#{language_code} completed: #{file_complete} (#{completed_strings} / #{total_strings})\"\n+    rescue Exception => e\n+      puts e.message\n     end\n \n     def put_files\n-      SmartlingRails.print_msg \"Uploading the english file to smartling to process:\", true\n-      upload_english_file()\n+      SmartlingRails.print_msg('Uploading the english file to smartling to process:', true)\n+      upload_english_file\n     end\n \n-    def upload_english_file()\n-      SmartlingRails.print_msg \"uploading #{local_file_path_for_locale('en-us')} to #{upload_file_path}\"\n+    def upload_english_file\n+      SmartlingRails.print_msg(\"uploading #{local_file_path_for_locale('en-us')} to #{upload_file_path}\")","path":"lib/smartling_rails/smartling_processor.rb","position":62,"original_position":62,"commit_id":"af5c8791d27a9f14ec0241b4d553b4b710fc504c","original_commit_id":"a0bab61eaa6802c63a1350673798c19ccfb0019b","user":{"login":"usbsnowcrash","id":882850,"avatar_url":"https://avatars.githubusercontent.com/u/882850?v=3","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"body":"Im fine adding some space","created_at":"2015-09-17T14:32:52Z","updated_at":"2015-09-17T14:32:52Z","html_url":"https://github.com/careerbuilder/smartling-rails/pull/9#discussion_r39752032","pull_request_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/comments/39752032"},"html":{"href":"https://github.com/careerbuilder/smartling-rails/pull/9#discussion_r39752032"},"pull_request":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9","id":45197808,"html_url":"https://github.com/careerbuilder/smartling-rails/pull/9","diff_url":"https://github.com/careerbuilder/smartling-rails/pull/9.diff","patch_url":"https://github.com/careerbuilder/smartling-rails/pull/9.patch","issue_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/9","number":9,"state":"open","locked":false,"title":"Ruby Style guide updates, add code climate, add code coverage, bump version","user":{"login":"usbsnowcrash","id":882850,"avatar_url":"https://avatars.githubusercontent.com/u/882850?v=3","gravatar_id":"","url":"https://api.github.com/users/usbsnowcrash","html_url":"https://github.com/usbsnowcrash","followers_url":"https://api.github.com/users/usbsnowcrash/followers","following_url":"https://api.github.com/users/usbsnowcrash/following{/other_user}","gists_url":"https://api.github.com/users/usbsnowcrash/gists{/gist_id}","starred_url":"https://api.github.com/users/usbsnowcrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usbsnowcrash/subscriptions","organizations_url":"https://api.github.com/users/usbsnowcrash/orgs","repos_url":"https://api.github.com/users/usbsnowcrash/repos","events_url":"https://api.github.com/users/usbsnowcrash/events{/privacy}","received_events_url":"https://api.github.com/users/usbsnowcrash/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-16T17:02:26Z","updated_at":"2015-09-17T14:32:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df374bd3a5482f4436c2ca8cd81f404d513219ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9/commits","review_comments_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9/comments","review_comment_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/9/comments","statuses_url":"https://api.github.com/repos/careerbuilder/smartling-rails/statuses/af5c8791d27a9f14ec0241b4d553b4b710fc504c","head":{"label":"careerbuilder:match-styles","ref":"match-styles","sha":"af5c8791d27a9f14ec0241b4d553b4b710fc504c","user":{"login":"careerbuilder","id":1043090,"avatar_url":"https://avatars.githubusercontent.com/u/1043090?v=3","gravatar_id":"","url":"https://api.github.com/users/careerbuilder","html_url":"https://github.com/careerbuilder","followers_url":"https://api.github.com/users/careerbuilder/followers","following_url":"https://api.github.com/users/careerbuilder/following{/other_user}","gists_url":"https://api.github.com/users/careerbuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/careerbuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/careerbuilder/subscriptions","organizations_url":"https://api.github.com/users/careerbuilder/orgs","repos_url":"https://api.github.com/users/careerbuilder/repos","events_url":"https://api.github.com/users/careerbuilder/events{/privacy}","received_events_url":"https://api.github.com/users/careerbuilder/received_events","type":"Organization","site_admin":false},"repo":{"id":31093166,"name":"smartling-rails","full_name":"careerbuilder/smartling-rails","owner":{"login":"careerbuilder","id":1043090,"avatar_url":"https://avatars.githubusercontent.com/u/1043090?v=3","gravatar_id":"","url":"https://api.github.com/users/careerbuilder","html_url":"https://github.com/careerbuilder","followers_url":"https://api.github.com/users/careerbuilder/followers","following_url":"https://api.github.com/users/careerbuilder/following{/other_user}","gists_url":"https://api.github.com/users/careerbuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/careerbuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/careerbuilder/subscriptions","organizations_url":"https://api.github.com/users/careerbuilder/orgs","repos_url":"https://api.github.com/users/careerbuilder/repos","events_url":"https://api.github.com/users/careerbuilder/events{/privacy}","received_events_url":"https://api.github.com/users/careerbuilder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/careerbuilder/smartling-rails","description":"Gem for uploading, checking and getting information from smartling into a rails app using I18N","fork":false,"url":"https://api.github.com/repos/careerbuilder/smartling-rails","forks_url":"https://api.github.com/repos/careerbuilder/smartling-rails/forks","keys_url":"https://api.github.com/repos/careerbuilder/smartling-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/careerbuilder/smartling-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/careerbuilder/smartling-rails/teams","hooks_url":"https://api.github.com/repos/careerbuilder/smartling-rails/hooks","issue_events_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/events{/number}","events_url":"https://api.github.com/repos/careerbuilder/smartling-rails/events","assignees_url":"https://api.github.com/repos/careerbuilder/smartling-rails/assignees{/user}","branches_url":"https://api.github.com/repos/careerbuilder/smartling-rails/branches{/branch}","tags_url":"https://api.github.com/repos/careerbuilder/smartling-rails/tags","blobs_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/careerbuilder/smartling-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/careerbuilder/smartling-rails/languages","stargazers_url":"https://api.github.com/repos/careerbuilder/smartling-rails/stargazers","contributors_url":"https://api.github.com/repos/careerbuilder/smartling-rails/contributors","subscribers_url":"https://api.github.com/repos/careerbuilder/smartling-rails/subscribers","subscription_url":"https://api.github.com/repos/careerbuilder/smartling-rails/subscription","commits_url":"https://api.github.com/repos/careerbuilder/smartling-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/careerbuilder/smartling-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/careerbuilder/smartling-rails/contents/{+path}","compare_url":"https://api.github.com/repos/careerbuilder/smartling-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/careerbuilder/smartling-rails/merges","archive_url":"https://api.github.com/repos/careerbuilder/smartling-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/careerbuilder/smartling-rails/downloads","issues_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues{/number}","pulls_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/careerbuilder/smartling-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/careerbuilder/smartling-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/careerbuilder/smartling-rails/labels{/name}","releases_url":"https://api.github.com/repos/careerbuilder/smartling-rails/releases{/id}","created_at":"2015-02-21T00:42:39Z","updated_at":"2015-09-16T16:20:44Z","pushed_at":"2015-09-16T17:33:41Z","git_url":"git://github.com/careerbuilder/smartling-rails.git","ssh_url":"git@github.com:careerbuilder/smartling-rails.git","clone_url":"https://github.com/careerbuilder/smartling-rails.git","svn_url":"https://github.com/careerbuilder/smartling-rails","homepage":"https://github.com","size":307,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"careerbuilder:master","ref":"master","sha":"318220825104bb874bd222588beb77f99336702a","user":{"login":"careerbuilder","id":1043090,"avatar_url":"https://avatars.githubusercontent.com/u/1043090?v=3","gravatar_id":"","url":"https://api.github.com/users/careerbuilder","html_url":"https://github.com/careerbuilder","followers_url":"https://api.github.com/users/careerbuilder/followers","following_url":"https://api.github.com/users/careerbuilder/following{/other_user}","gists_url":"https://api.github.com/users/careerbuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/careerbuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/careerbuilder/subscriptions","organizations_url":"https://api.github.com/users/careerbuilder/orgs","repos_url":"https://api.github.com/users/careerbuilder/repos","events_url":"https://api.github.com/users/careerbuilder/events{/privacy}","received_events_url":"https://api.github.com/users/careerbuilder/received_events","type":"Organization","site_admin":false},"repo":{"id":31093166,"name":"smartling-rails","full_name":"careerbuilder/smartling-rails","owner":{"login":"careerbuilder","id":1043090,"avatar_url":"https://avatars.githubusercontent.com/u/1043090?v=3","gravatar_id":"","url":"https://api.github.com/users/careerbuilder","html_url":"https://github.com/careerbuilder","followers_url":"https://api.github.com/users/careerbuilder/followers","following_url":"https://api.github.com/users/careerbuilder/following{/other_user}","gists_url":"https://api.github.com/users/careerbuilder/gists{/gist_id}","starred_url":"https://api.github.com/users/careerbuilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/careerbuilder/subscriptions","organizations_url":"https://api.github.com/users/careerbuilder/orgs","repos_url":"https://api.github.com/users/careerbuilder/repos","events_url":"https://api.github.com/users/careerbuilder/events{/privacy}","received_events_url":"https://api.github.com/users/careerbuilder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/careerbuilder/smartling-rails","description":"Gem for uploading, checking and getting information from smartling into a rails app using I18N","fork":false,"url":"https://api.github.com/repos/careerbuilder/smartling-rails","forks_url":"https://api.github.com/repos/careerbuilder/smartling-rails/forks","keys_url":"https://api.github.com/repos/careerbuilder/smartling-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/careerbuilder/smartling-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/careerbuilder/smartling-rails/teams","hooks_url":"https://api.github.com/repos/careerbuilder/smartling-rails/hooks","issue_events_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/events{/number}","events_url":"https://api.github.com/repos/careerbuilder/smartling-rails/events","assignees_url":"https://api.github.com/repos/careerbuilder/smartling-rails/assignees{/user}","branches_url":"https://api.github.com/repos/careerbuilder/smartling-rails/branches{/branch}","tags_url":"https://api.github.com/repos/careerbuilder/smartling-rails/tags","blobs_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/careerbuilder/smartling-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/careerbuilder/smartling-rails/languages","stargazers_url":"https://api.github.com/repos/careerbuilder/smartling-rails/stargazers","contributors_url":"https://api.github.com/repos/careerbuilder/smartling-rails/contributors","subscribers_url":"https://api.github.com/repos/careerbuilder/smartling-rails/subscribers","subscription_url":"https://api.github.com/repos/careerbuilder/smartling-rails/subscription","commits_url":"https://api.github.com/repos/careerbuilder/smartling-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/careerbuilder/smartling-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/careerbuilder/smartling-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/careerbuilder/smartling-rails/contents/{+path}","compare_url":"https://api.github.com/repos/careerbuilder/smartling-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/careerbuilder/smartling-rails/merges","archive_url":"https://api.github.com/repos/careerbuilder/smartling-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/careerbuilder/smartling-rails/downloads","issues_url":"https://api.github.com/repos/careerbuilder/smartling-rails/issues{/number}","pulls_url":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/careerbuilder/smartling-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/careerbuilder/smartling-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/careerbuilder/smartling-rails/labels{/name}","releases_url":"https://api.github.com/repos/careerbuilder/smartling-rails/releases{/id}","created_at":"2015-02-21T00:42:39Z","updated_at":"2015-09-16T16:20:44Z","pushed_at":"2015-09-16T17:33:41Z","git_url":"git://github.com/careerbuilder/smartling-rails.git","ssh_url":"git@github.com:careerbuilder/smartling-rails.git","clone_url":"https://github.com/careerbuilder/smartling-rails.git","svn_url":"https://github.com/careerbuilder/smartling-rails","homepage":"https://github.com","size":307,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9"},"html":{"href":"https://github.com/careerbuilder/smartling-rails/pull/9"},"issue":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/9"},"comments":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/careerbuilder/smartling-rails/statuses/af5c8791d27a9f14ec0241b4d553b4b710fc504c"}}}}