{"action":"created","comment":{"url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/comments/27590383","id":27590383,"diff_hunk":"@@ -101,6 +101,9 @@ def gettext_xgettext_options\n \n     language_path = File.join(locale_path, language)\n     mkdir_p(language_path)\n-    ruby($0, \"gettext:find\")\n+    b = false\n+    scope = _.scope.reject{|x| b || x == 'gettext' ? b = true : false}.join(':')","path":"lib/gettext_i18n_rails/tasks.rb","position":6,"original_position":6,"commit_id":"d4464205b8b7af99b8d7622e5b46406efdefeee3","original_commit_id":"d4464205b8b7af99b8d7622e5b46406efdefeee3","user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"body":"Does this work ?\r\n```\r\nRake.application.lookup('gettext:find', _.scope).invoke\r\n```","created_at":"2015-04-01T17:23:45Z","updated_at":"2015-04-01T17:23:45Z","html_url":"https://github.com/grosser/gettext_i18n_rails/pull/132#discussion_r27590383","pull_request_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/comments/27590383"},"html":{"href":"https://github.com/grosser/gettext_i18n_rails/pull/132#discussion_r27590383"},"pull_request":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132","id":32386379,"html_url":"https://github.com/grosser/gettext_i18n_rails/pull/132","diff_url":"https://github.com/grosser/gettext_i18n_rails/pull/132.diff","patch_url":"https://github.com/grosser/gettext_i18n_rails/pull/132.patch","issue_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/132","number":132,"state":"open","locked":false,"title":"Inherit scope","user":{"login":"tagoh","id":111994,"avatar_url":"https://avatars.githubusercontent.com/u/111994?v=3","gravatar_id":"","url":"https://api.github.com/users/tagoh","html_url":"https://github.com/tagoh","followers_url":"https://api.github.com/users/tagoh/followers","following_url":"https://api.github.com/users/tagoh/following{/other_user}","gists_url":"https://api.github.com/users/tagoh/gists{/gist_id}","starred_url":"https://api.github.com/users/tagoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagoh/subscriptions","organizations_url":"https://api.github.com/users/tagoh/orgs","repos_url":"https://api.github.com/users/tagoh/repos","events_url":"https://api.github.com/users/tagoh/events{/privacy}","received_events_url":"https://api.github.com/users/tagoh/received_events","type":"User","site_admin":false},"body":"\"rake gettext:find\" here fails when the task has another scope.\r\nthat should be inherited to accomplish the task.","created_at":"2015-04-01T03:22:56Z","updated_at":"2015-04-01T17:23:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4fe6a3b4ba008b6ba4fc3724bfe189fefee9053","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132/commits","review_comments_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132/comments","review_comment_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/132/comments","statuses_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/statuses/d4464205b8b7af99b8d7622e5b46406efdefeee3","head":{"label":"tagoh:master","ref":"master","sha":"d4464205b8b7af99b8d7622e5b46406efdefeee3","user":{"login":"tagoh","id":111994,"avatar_url":"https://avatars.githubusercontent.com/u/111994?v=3","gravatar_id":"","url":"https://api.github.com/users/tagoh","html_url":"https://github.com/tagoh","followers_url":"https://api.github.com/users/tagoh/followers","following_url":"https://api.github.com/users/tagoh/following{/other_user}","gists_url":"https://api.github.com/users/tagoh/gists{/gist_id}","starred_url":"https://api.github.com/users/tagoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagoh/subscriptions","organizations_url":"https://api.github.com/users/tagoh/orgs","repos_url":"https://api.github.com/users/tagoh/repos","events_url":"https://api.github.com/users/tagoh/events{/privacy}","received_events_url":"https://api.github.com/users/tagoh/received_events","type":"User","site_admin":false},"repo":{"id":33224106,"name":"gettext_i18n_rails","full_name":"tagoh/gettext_i18n_rails","owner":{"login":"tagoh","id":111994,"avatar_url":"https://avatars.githubusercontent.com/u/111994?v=3","gravatar_id":"","url":"https://api.github.com/users/tagoh","html_url":"https://github.com/tagoh","followers_url":"https://api.github.com/users/tagoh/followers","following_url":"https://api.github.com/users/tagoh/following{/other_user}","gists_url":"https://api.github.com/users/tagoh/gists{/gist_id}","starred_url":"https://api.github.com/users/tagoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tagoh/subscriptions","organizations_url":"https://api.github.com/users/tagoh/orgs","repos_url":"https://api.github.com/users/tagoh/repos","events_url":"https://api.github.com/users/tagoh/events{/privacy}","received_events_url":"https://api.github.com/users/tagoh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tagoh/gettext_i18n_rails","description":"Rails: FastGettext, I18n integration -- simple, threadsafe and fast!","fork":true,"url":"https://api.github.com/repos/tagoh/gettext_i18n_rails","forks_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/forks","keys_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/teams","hooks_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/hooks","issue_events_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/issues/events{/number}","events_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/events","assignees_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/assignees{/user}","branches_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/branches{/branch}","tags_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/tags","blobs_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/languages","stargazers_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/stargazers","contributors_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/contributors","subscribers_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/subscribers","subscription_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/subscription","commits_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/contents/{+path}","compare_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/merges","archive_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/downloads","issues_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/issues{/number}","pulls_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/labels{/name}","releases_url":"https://api.github.com/repos/tagoh/gettext_i18n_rails/releases{/id}","created_at":"2015-04-01T03:17:05Z","updated_at":"2015-04-01T03:22:25Z","pushed_at":"2015-04-01T03:22:25Z","git_url":"git://github.com/tagoh/gettext_i18n_rails.git","ssh_url":"git@github.com:tagoh/gettext_i18n_rails.git","clone_url":"https://github.com/tagoh/gettext_i18n_rails.git","svn_url":"https://github.com/tagoh/gettext_i18n_rails","homepage":"","size":862,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"grosser:master","ref":"master","sha":"8324176566d54bdf7fcffd3e709ced9b17e9cb3a","user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"repo":{"id":131972,"name":"gettext_i18n_rails","full_name":"grosser/gettext_i18n_rails","owner":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grosser/gettext_i18n_rails","description":"Rails: FastGettext, I18n integration -- simple, threadsafe and fast!","fork":false,"url":"https://api.github.com/repos/grosser/gettext_i18n_rails","forks_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/forks","keys_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/teams","hooks_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/hooks","issue_events_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/events{/number}","events_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/events","assignees_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/assignees{/user}","branches_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/branches{/branch}","tags_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/tags","blobs_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/languages","stargazers_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/stargazers","contributors_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/contributors","subscribers_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/subscribers","subscription_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/subscription","commits_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/contents/{+path}","compare_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/merges","archive_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/downloads","issues_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues{/number}","pulls_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/labels{/name}","releases_url":"https://api.github.com/repos/grosser/gettext_i18n_rails/releases{/id}","created_at":"2009-02-18T20:05:06Z","updated_at":"2015-03-27T08:12:00Z","pushed_at":"2015-04-01T03:22:56Z","git_url":"git://github.com/grosser/gettext_i18n_rails.git","ssh_url":"git@github.com:grosser/gettext_i18n_rails.git","clone_url":"https://github.com/grosser/gettext_i18n_rails.git","svn_url":"https://github.com/grosser/gettext_i18n_rails","homepage":"","size":862,"stargazers_count":146,"watchers_count":146,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":7,"forks":69,"open_issues":7,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132"},"html":{"href":"https://github.com/grosser/gettext_i18n_rails/pull/132"},"issue":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/132"},"comments":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/grosser/gettext_i18n_rails/statuses/d4464205b8b7af99b8d7622e5b46406efdefeee3"}}}}