{"action":"opened","number":625,"pull_request":{"url":"https://api.github.com/repos/jenius/roots/pulls/625","id":32059493,"html_url":"https://github.com/jenius/roots/pull/625","diff_url":"https://github.com/jenius/roots/pull/625.diff","patch_url":"https://github.com/jenius/roots/pull/625.patch","issue_url":"https://api.github.com/repos/jenius/roots/issues/625","number":625,"state":"open","locked":false,"title":"Environment merge","user":{"login":"joshrowley","id":1937303,"avatar_url":"https://avatars.githubusercontent.com/u/1937303?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrowley","html_url":"https://github.com/joshrowley","followers_url":"https://api.github.com/users/joshrowley/followers","following_url":"https://api.github.com/users/joshrowley/following{/other_user}","gists_url":"https://api.github.com/users/joshrowley/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrowley/subscriptions","organizations_url":"https://api.github.com/users/joshrowley/orgs","repos_url":"https://api.github.com/users/joshrowley/repos","events_url":"https://api.github.com/users/joshrowley/events{/privacy}","received_events_url":"https://api.github.com/users/joshrowley/received_events","type":"User","site_admin":false},"body":"This PR adds functionality to how environments are loaded into roots. If you have an environment file, such as `app.production.coffee`, roots will now merge the locals and extensions from the environment file  into the default `app.coffee` locals and extensions.\r\n\r\nThis is useful for keeping locals and extension configurations DRY across environments. This way you only need to add locals into the environment specifc config that need to override values in the main `app.coffee`. I found this useful to prevent having to duplicate a lot of helper functions and values in my locals across environments.\r\n\r\nWhen it comes to extensions, since they're already called functions we can't replace the options that were already passed in. So instead, if you have an extension in your environment specific config that matches in class name with one from your `app.coffee`, the environment specific one completely replaces it.","created_at":"2015-03-26T20:54:17Z","updated_at":"2015-03-26T20:54:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenius/roots/pulls/625/commits","review_comments_url":"https://api.github.com/repos/jenius/roots/pulls/625/comments","review_comment_url":"https://api.github.com/repos/jenius/roots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenius/roots/issues/625/comments","statuses_url":"https://api.github.com/repos/jenius/roots/statuses/6dffef4f392ec3aa5a51b3b2373d16ed82323557","head":{"label":"joshrowley:environment-merge","ref":"environment-merge","sha":"6dffef4f392ec3aa5a51b3b2373d16ed82323557","user":{"login":"joshrowley","id":1937303,"avatar_url":"https://avatars.githubusercontent.com/u/1937303?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrowley","html_url":"https://github.com/joshrowley","followers_url":"https://api.github.com/users/joshrowley/followers","following_url":"https://api.github.com/users/joshrowley/following{/other_user}","gists_url":"https://api.github.com/users/joshrowley/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrowley/subscriptions","organizations_url":"https://api.github.com/users/joshrowley/orgs","repos_url":"https://api.github.com/users/joshrowley/repos","events_url":"https://api.github.com/users/joshrowley/events{/privacy}","received_events_url":"https://api.github.com/users/joshrowley/received_events","type":"User","site_admin":false},"repo":{"id":19085402,"name":"roots","full_name":"joshrowley/roots","owner":{"login":"joshrowley","id":1937303,"avatar_url":"https://avatars.githubusercontent.com/u/1937303?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrowley","html_url":"https://github.com/joshrowley","followers_url":"https://api.github.com/users/joshrowley/followers","following_url":"https://api.github.com/users/joshrowley/following{/other_user}","gists_url":"https://api.github.com/users/joshrowley/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrowley/subscriptions","organizations_url":"https://api.github.com/users/joshrowley/orgs","repos_url":"https://api.github.com/users/joshrowley/repos","events_url":"https://api.github.com/users/joshrowley/events{/privacy}","received_events_url":"https://api.github.com/users/joshrowley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshrowley/roots","description":"a toolkit for rapid advanced front-end development","fork":true,"url":"https://api.github.com/repos/joshrowley/roots","forks_url":"https://api.github.com/repos/joshrowley/roots/forks","keys_url":"https://api.github.com/repos/joshrowley/roots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshrowley/roots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshrowley/roots/teams","hooks_url":"https://api.github.com/repos/joshrowley/roots/hooks","issue_events_url":"https://api.github.com/repos/joshrowley/roots/issues/events{/number}","events_url":"https://api.github.com/repos/joshrowley/roots/events","assignees_url":"https://api.github.com/repos/joshrowley/roots/assignees{/user}","branches_url":"https://api.github.com/repos/joshrowley/roots/branches{/branch}","tags_url":"https://api.github.com/repos/joshrowley/roots/tags","blobs_url":"https://api.github.com/repos/joshrowley/roots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshrowley/roots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshrowley/roots/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshrowley/roots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshrowley/roots/statuses/{sha}","languages_url":"https://api.github.com/repos/joshrowley/roots/languages","stargazers_url":"https://api.github.com/repos/joshrowley/roots/stargazers","contributors_url":"https://api.github.com/repos/joshrowley/roots/contributors","subscribers_url":"https://api.github.com/repos/joshrowley/roots/subscribers","subscription_url":"https://api.github.com/repos/joshrowley/roots/subscription","commits_url":"https://api.github.com/repos/joshrowley/roots/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshrowley/roots/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshrowley/roots/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshrowley/roots/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshrowley/roots/contents/{+path}","compare_url":"https://api.github.com/repos/joshrowley/roots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshrowley/roots/merges","archive_url":"https://api.github.com/repos/joshrowley/roots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshrowley/roots/downloads","issues_url":"https://api.github.com/repos/joshrowley/roots/issues{/number}","pulls_url":"https://api.github.com/repos/joshrowley/roots/pulls{/number}","milestones_url":"https://api.github.com/repos/joshrowley/roots/milestones{/number}","notifications_url":"https://api.github.com/repos/joshrowley/roots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshrowley/roots/labels{/name}","releases_url":"https://api.github.com/repos/joshrowley/roots/releases{/id}","created_at":"2014-04-23T20:59:43Z","updated_at":"2015-03-26T17:32:02Z","pushed_at":"2015-03-26T20:49:10Z","git_url":"git://github.com/joshrowley/roots.git","ssh_url":"git@github.com:joshrowley/roots.git","clone_url":"https://github.com/joshrowley/roots.git","svn_url":"https://github.com/joshrowley/roots","homepage":"http://roots.cx","size":7930,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jenius:master","ref":"master","sha":"db6a66dcf5f406bd9d9ea8167813baf10f773e95","user":{"login":"jenius","id":556932,"avatar_url":"https://avatars.githubusercontent.com/u/556932?v=3","gravatar_id":"","url":"https://api.github.com/users/jenius","html_url":"https://github.com/jenius","followers_url":"https://api.github.com/users/jenius/followers","following_url":"https://api.github.com/users/jenius/following{/other_user}","gists_url":"https://api.github.com/users/jenius/gists{/gist_id}","starred_url":"https://api.github.com/users/jenius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenius/subscriptions","organizations_url":"https://api.github.com/users/jenius/orgs","repos_url":"https://api.github.com/users/jenius/repos","events_url":"https://api.github.com/users/jenius/events{/privacy}","received_events_url":"https://api.github.com/users/jenius/received_events","type":"User","site_admin":false},"repo":{"id":5861113,"name":"roots","full_name":"jenius/roots","owner":{"login":"jenius","id":556932,"avatar_url":"https://avatars.githubusercontent.com/u/556932?v=3","gravatar_id":"","url":"https://api.github.com/users/jenius","html_url":"https://github.com/jenius","followers_url":"https://api.github.com/users/jenius/followers","following_url":"https://api.github.com/users/jenius/following{/other_user}","gists_url":"https://api.github.com/users/jenius/gists{/gist_id}","starred_url":"https://api.github.com/users/jenius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenius/subscriptions","organizations_url":"https://api.github.com/users/jenius/orgs","repos_url":"https://api.github.com/users/jenius/repos","events_url":"https://api.github.com/users/jenius/events{/privacy}","received_events_url":"https://api.github.com/users/jenius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jenius/roots","description":"a toolkit for rapid advanced front-end development","fork":false,"url":"https://api.github.com/repos/jenius/roots","forks_url":"https://api.github.com/repos/jenius/roots/forks","keys_url":"https://api.github.com/repos/jenius/roots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenius/roots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenius/roots/teams","hooks_url":"https://api.github.com/repos/jenius/roots/hooks","issue_events_url":"https://api.github.com/repos/jenius/roots/issues/events{/number}","events_url":"https://api.github.com/repos/jenius/roots/events","assignees_url":"https://api.github.com/repos/jenius/roots/assignees{/user}","branches_url":"https://api.github.com/repos/jenius/roots/branches{/branch}","tags_url":"https://api.github.com/repos/jenius/roots/tags","blobs_url":"https://api.github.com/repos/jenius/roots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenius/roots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenius/roots/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenius/roots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenius/roots/statuses/{sha}","languages_url":"https://api.github.com/repos/jenius/roots/languages","stargazers_url":"https://api.github.com/repos/jenius/roots/stargazers","contributors_url":"https://api.github.com/repos/jenius/roots/contributors","subscribers_url":"https://api.github.com/repos/jenius/roots/subscribers","subscription_url":"https://api.github.com/repos/jenius/roots/subscription","commits_url":"https://api.github.com/repos/jenius/roots/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenius/roots/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenius/roots/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenius/roots/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenius/roots/contents/{+path}","compare_url":"https://api.github.com/repos/jenius/roots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenius/roots/merges","archive_url":"https://api.github.com/repos/jenius/roots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenius/roots/downloads","issues_url":"https://api.github.com/repos/jenius/roots/issues{/number}","pulls_url":"https://api.github.com/repos/jenius/roots/pulls{/number}","milestones_url":"https://api.github.com/repos/jenius/roots/milestones{/number}","notifications_url":"https://api.github.com/repos/jenius/roots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenius/roots/labels{/name}","releases_url":"https://api.github.com/repos/jenius/roots/releases{/id}","created_at":"2012-09-18T18:42:13Z","updated_at":"2015-03-24T07:41:42Z","pushed_at":"2015-03-26T20:54:18Z","git_url":"git://github.com/jenius/roots.git","ssh_url":"git@github.com:jenius/roots.git","clone_url":"https://github.com/jenius/roots.git","svn_url":"https://github.com/jenius/roots","homepage":"http://roots.cx","size":10553,"stargazers_count":1128,"watchers_count":1128,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":11,"forks":95,"open_issues":11,"watchers":1128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenius/roots/pulls/625"},"html":{"href":"https://github.com/jenius/roots/pull/625"},"issue":{"href":"https://api.github.com/repos/jenius/roots/issues/625"},"comments":{"href":"https://api.github.com/repos/jenius/roots/issues/625/comments"},"review_comments":{"href":"https://api.github.com/repos/jenius/roots/pulls/625/comments"},"review_comment":{"href":"https://api.github.com/repos/jenius/roots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenius/roots/pulls/625/commits"},"statuses":{"href":"https://api.github.com/repos/jenius/roots/statuses/6dffef4f392ec3aa5a51b3b2373d16ed82323557"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":121,"deletions":23,"changed_files":6}}