{"action":"created","comment":{"url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/comments/28626853","id":28626853,"diff_hunk":"@@ -21,31 +21,69 @@ Usage\n \n By default ng-annotate processing is disabled in development and test environments. Processing, however, can be enforced by specifying NG_FORCE=true option.\n \n+### Environment options\n \n-Options available as environment variables:\n+- NG_REGEXP\n+  * regexp passed to ng-annoate\n+  * see ng-annotate documentation\n+- NG_OPT\n+  * comma separate list of \"opt=value\" key pairs passed as options to ng-annotate\n+  * see ng-annotate documentation\n+- NG_FORCE\n+  * force ng-annoate processing in development/test environment\n \n-    NG_REGEXP     - regexp passed to ng-annoate\n-                    see ng-annotate documentation\n-    NG_OPT        - comma separate list of \"opt=value\" key pairs passed as options to ng-annotate\n-                    see ng-annotate documentation\n-    NG_FORCE=true - force ng-annoate processing in development/test environment\n+For example,\n \n-You can also define when ng-annotate should process with the `process` option to the environment configuration\n+    # Test assets compile in rails development environment\n+    # (assuming config/environments/development.rb is adjusted approriately)\n+\n+    # with rails 3.2\n+    NG_FORCE=true RAILS_ENV=development bundle exec rake assets:clean assets:precompile\n+\n+    # with rails 4.1\n+    NG_FORCE=true RAILS_ENV=development bundle exec rake assets:clobber assets:precompile\n+\n+\n+### Rails configuration options\n+\n+Defined in \"config.ng_annotate\"\n+\n+- process\n+  * Is annotation processing done for current environment (NG_FORCE=true takes precedence over this)\n+  * default: true for production, false for development and test\n+- options\n+  * Options for ngannotate (NG_OPT and NG_REGEXP env variables take precedence over this)\n+  * default: {}\n+- paths","path":"README.md","position":44,"original_position":44,"commit_id":"db91b7ff2fb535305ac30e758a2d71909b643b6d","original_commit_id":"db91b7ff2fb535305ac30e758a2d71909b643b6d","user":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"body":"@sars would this option cover your needs (in combination with ignore_paths)","created_at":"2015-04-17T20:19:25Z","updated_at":"2015-04-17T20:19:25Z","html_url":"https://github.com/kikonen/ngannotate-rails/pull/8#discussion_r28626853","pull_request_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/comments/28626853"},"html":{"href":"https://github.com/kikonen/ngannotate-rails/pull/8#discussion_r28626853"},"pull_request":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8","id":17285662,"html_url":"https://github.com/kikonen/ngannotate-rails/pull/8","diff_url":"https://github.com/kikonen/ngannotate-rails/pull/8.diff","patch_url":"https://github.com/kikonen/ngannotate-rails/pull/8.patch","issue_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/8","number":8,"state":"open","locked":false,"title":"Initialize ng-annotate JS only once","user":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"body":"- FIX: It seems that prepare is called once for every file","created_at":"2014-06-18T10:28:18Z","updated_at":"2015-04-17T20:19:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b3364cb9b9e0ba9c79f9b92a655b0c66572519f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8/commits","review_comments_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8/comments","review_comment_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/8/comments","statuses_url":"https://api.github.com/repos/kikonen/ngannotate-rails/statuses/db91b7ff2fb535305ac30e758a2d71909b643b6d","head":{"label":"kikonen:prepare_only_once","ref":"prepare_only_once","sha":"db91b7ff2fb535305ac30e758a2d71909b643b6d","user":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"repo":{"id":19846565,"name":"ngannotate-rails","full_name":"kikonen/ngannotate-rails","owner":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kikonen/ngannotate-rails","description":"ngmin-rails replacement for managing AnguluarJS minification in Rails assets pipeline","fork":false,"url":"https://api.github.com/repos/kikonen/ngannotate-rails","forks_url":"https://api.github.com/repos/kikonen/ngannotate-rails/forks","keys_url":"https://api.github.com/repos/kikonen/ngannotate-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kikonen/ngannotate-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kikonen/ngannotate-rails/teams","hooks_url":"https://api.github.com/repos/kikonen/ngannotate-rails/hooks","issue_events_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/events{/number}","events_url":"https://api.github.com/repos/kikonen/ngannotate-rails/events","assignees_url":"https://api.github.com/repos/kikonen/ngannotate-rails/assignees{/user}","branches_url":"https://api.github.com/repos/kikonen/ngannotate-rails/branches{/branch}","tags_url":"https://api.github.com/repos/kikonen/ngannotate-rails/tags","blobs_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kikonen/ngannotate-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/kikonen/ngannotate-rails/languages","stargazers_url":"https://api.github.com/repos/kikonen/ngannotate-rails/stargazers","contributors_url":"https://api.github.com/repos/kikonen/ngannotate-rails/contributors","subscribers_url":"https://api.github.com/repos/kikonen/ngannotate-rails/subscribers","subscription_url":"https://api.github.com/repos/kikonen/ngannotate-rails/subscription","commits_url":"https://api.github.com/repos/kikonen/ngannotate-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/kikonen/ngannotate-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/kikonen/ngannotate-rails/contents/{+path}","compare_url":"https://api.github.com/repos/kikonen/ngannotate-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kikonen/ngannotate-rails/merges","archive_url":"https://api.github.com/repos/kikonen/ngannotate-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kikonen/ngannotate-rails/downloads","issues_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues{/number}","pulls_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/kikonen/ngannotate-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/kikonen/ngannotate-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kikonen/ngannotate-rails/labels{/name}","releases_url":"https://api.github.com/repos/kikonen/ngannotate-rails/releases{/id}","created_at":"2014-05-16T06:16:43Z","updated_at":"2015-04-15T18:57:09Z","pushed_at":"2015-04-17T20:14:45Z","git_url":"git://github.com/kikonen/ngannotate-rails.git","ssh_url":"git@github.com:kikonen/ngannotate-rails.git","clone_url":"https://github.com/kikonen/ngannotate-rails.git","svn_url":"https://github.com/kikonen/ngannotate-rails","homepage":null,"size":897,"stargazers_count":50,"watchers_count":50,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":50,"default_branch":"master"}},"base":{"label":"kikonen:master","ref":"master","sha":"c81d67440cb9e4a9ea8b4a5ef0994899c587cdcc","user":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"repo":{"id":19846565,"name":"ngannotate-rails","full_name":"kikonen/ngannotate-rails","owner":{"login":"kikonen","id":478935,"avatar_url":"https://avatars.githubusercontent.com/u/478935?v=3","gravatar_id":"","url":"https://api.github.com/users/kikonen","html_url":"https://github.com/kikonen","followers_url":"https://api.github.com/users/kikonen/followers","following_url":"https://api.github.com/users/kikonen/following{/other_user}","gists_url":"https://api.github.com/users/kikonen/gists{/gist_id}","starred_url":"https://api.github.com/users/kikonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikonen/subscriptions","organizations_url":"https://api.github.com/users/kikonen/orgs","repos_url":"https://api.github.com/users/kikonen/repos","events_url":"https://api.github.com/users/kikonen/events{/privacy}","received_events_url":"https://api.github.com/users/kikonen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kikonen/ngannotate-rails","description":"ngmin-rails replacement for managing AnguluarJS minification in Rails assets pipeline","fork":false,"url":"https://api.github.com/repos/kikonen/ngannotate-rails","forks_url":"https://api.github.com/repos/kikonen/ngannotate-rails/forks","keys_url":"https://api.github.com/repos/kikonen/ngannotate-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kikonen/ngannotate-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kikonen/ngannotate-rails/teams","hooks_url":"https://api.github.com/repos/kikonen/ngannotate-rails/hooks","issue_events_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/events{/number}","events_url":"https://api.github.com/repos/kikonen/ngannotate-rails/events","assignees_url":"https://api.github.com/repos/kikonen/ngannotate-rails/assignees{/user}","branches_url":"https://api.github.com/repos/kikonen/ngannotate-rails/branches{/branch}","tags_url":"https://api.github.com/repos/kikonen/ngannotate-rails/tags","blobs_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kikonen/ngannotate-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/kikonen/ngannotate-rails/languages","stargazers_url":"https://api.github.com/repos/kikonen/ngannotate-rails/stargazers","contributors_url":"https://api.github.com/repos/kikonen/ngannotate-rails/contributors","subscribers_url":"https://api.github.com/repos/kikonen/ngannotate-rails/subscribers","subscription_url":"https://api.github.com/repos/kikonen/ngannotate-rails/subscription","commits_url":"https://api.github.com/repos/kikonen/ngannotate-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/kikonen/ngannotate-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/kikonen/ngannotate-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/kikonen/ngannotate-rails/contents/{+path}","compare_url":"https://api.github.com/repos/kikonen/ngannotate-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kikonen/ngannotate-rails/merges","archive_url":"https://api.github.com/repos/kikonen/ngannotate-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kikonen/ngannotate-rails/downloads","issues_url":"https://api.github.com/repos/kikonen/ngannotate-rails/issues{/number}","pulls_url":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/kikonen/ngannotate-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/kikonen/ngannotate-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kikonen/ngannotate-rails/labels{/name}","releases_url":"https://api.github.com/repos/kikonen/ngannotate-rails/releases{/id}","created_at":"2014-05-16T06:16:43Z","updated_at":"2015-04-15T18:57:09Z","pushed_at":"2015-04-17T20:14:45Z","git_url":"git://github.com/kikonen/ngannotate-rails.git","ssh_url":"git@github.com:kikonen/ngannotate-rails.git","clone_url":"https://github.com/kikonen/ngannotate-rails.git","svn_url":"https://github.com/kikonen/ngannotate-rails","homepage":null,"size":897,"stargazers_count":50,"watchers_count":50,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8"},"html":{"href":"https://github.com/kikonen/ngannotate-rails/pull/8"},"issue":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/8"},"comments":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/kikonen/ngannotate-rails/statuses/db91b7ff2fb535305ac30e758a2d71909b643b6d"}}}}