{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/comments/27331395","id":27331395,"diff_hunk":"@@ -30,6 +32,121 @@ def initialize(origin, stack)\n \n   attr_reader :stack\n \n+  def new_copy(status, origin)\n+    if status != resolve_status\n+      raise Hocon::ConfigError::ConfigBugOrBrokenError.new(\n+                \"attempt to create resolved ConfigDelayedMergeObject\")\n+    end\n+    Hocon::Impl::ConfigDelayedMergeObject.new(origin, @stack)\n+  end\n+\n+  def resolve_substitutions(context, source)\n+    merged = Hocon::Impl::ConfigDelayedMerge.resolve_substitutions(self, @stack, context, source)\n+    merged.as_object_result\n+  end\n+\n+  def make_replacement(context, skipping)\n+    Hocon::Impl::ConfigDelayedMerge.make_replacement(context, @stack, skipping)\n+  end\n+\n+  def resolve_status\n+    Hocon::Impl::ResolveStatus::UNRESOLVED\n+  end\n+\n+  def replace_child(child, replacement)\n+    new_stack = Hocon::Impl::AbstractConfigValue.replace_child_in_list(@stack, child, replacement)\n+    if new_stack == nil\n+      nil\n+    else\n+      self.class.new(origin, new_stack)\n+    end\n+  end\n+\n+  def has_descendant?(descendant)\n+    has_descendant_in_list?(@stack, descendant)\n+  end\n+\n+  def relativized(prefix)\n+    new_stack = []\n+    @stack.each { |o|\n+      new_stack << o.relativized(prefix)\n+    }\n+    self.class.new(origin, new_stack)\n+  end\n+\n+  def ignores_fallbacks?\n+    Hocon::Impl::ConfigDelayedMerge.stack_ignores_fallbacks?(@stack)\n+  end\n+\n+  def merged_with_the_unmergeable(fallback)\n+    require_not_ignoring_fallbacks\n+\n+    merged_stack_with_the_unmergeable(@stack, fallback)\n+  end\n+\n+  def merged_with_object(fallback)\n+    merged_with_non_object(fallback)\n+  end\n+\n+  def merged_with_non_object(fallback)\n+    require_not_ignoring_fallbacks\n+\n+    merged_stack_with_non_object(@stack, fallback)\n+  end\n+\n+  # No implementation of withFallback here,\n+  # just use the implementation in the super-class","path":"lib/hocon/impl/config_delayed_merge_object.rb","position":76,"original_position":76,"commit_id":"3f4d7fe055f5661de49c914284525b4394f2ee4e","original_commit_id":"3f4d7fe055f5661de49c914284525b4394f2ee4e","user":{"login":"cprice404","id":1341071,"avatar_url":"https://avatars.githubusercontent.com/u/1341071?v=3","gravatar_id":"","url":"https://api.github.com/users/cprice404","html_url":"https://github.com/cprice404","followers_url":"https://api.github.com/users/cprice404/followers","following_url":"https://api.github.com/users/cprice404/following{/other_user}","gists_url":"https://api.github.com/users/cprice404/gists{/gist_id}","starred_url":"https://api.github.com/users/cprice404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cprice404/subscriptions","organizations_url":"https://api.github.com/users/cprice404/orgs","repos_url":"https://api.github.com/users/cprice404/repos","events_url":"https://api.github.com/users/cprice404/events{/privacy}","received_events_url":"https://api.github.com/users/cprice404/received_events","type":"User","site_admin":false},"body":"any reason not to just put the impl in here and call super explicitly?","created_at":"2015-03-27T21:09:28Z","updated_at":"2015-03-27T21:09:28Z","html_url":"https://github.com/puppetlabs/ruby-hocon/pull/46#discussion_r27331395","pull_request_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/comments/27331395"},"html":{"href":"https://github.com/puppetlabs/ruby-hocon/pull/46#discussion_r27331395"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46","id":32144878,"html_url":"https://github.com/puppetlabs/ruby-hocon/pull/46","diff_url":"https://github.com/puppetlabs/ruby-hocon/pull/46.diff","patch_url":"https://github.com/puppetlabs/ruby-hocon/pull/46.patch","issue_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/46","number":46,"state":"open","locked":false,"title":"implement rest of CDMO + other bugfixes","user":{"login":"KevinCorcoran","id":2945462,"avatar_url":"https://avatars.githubusercontent.com/u/2945462?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinCorcoran","html_url":"https://github.com/KevinCorcoran","followers_url":"https://api.github.com/users/KevinCorcoran/followers","following_url":"https://api.github.com/users/KevinCorcoran/following{/other_user}","gists_url":"https://api.github.com/users/KevinCorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinCorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinCorcoran/subscriptions","organizations_url":"https://api.github.com/users/KevinCorcoran/orgs","repos_url":"https://api.github.com/users/KevinCorcoran/repos","events_url":"https://api.github.com/users/KevinCorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/KevinCorcoran/received_events","type":"User","site_admin":false},"body":"No rush on merging this, I just wanted to put the little bugs I've been fixing up here in case @cprice404 or @jpinsonault need these fixes for the work they're currently doing.","created_at":"2015-03-27T21:04:45Z","updated_at":"2015-03-27T21:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c3e2fb82da64be54ec715ff3370a6dc05d88a22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/46/comments","statuses_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/statuses/3f4d7fe055f5661de49c914284525b4394f2ee4e","head":{"label":"KevinCorcoran:delayed-merge","ref":"delayed-merge","sha":"3f4d7fe055f5661de49c914284525b4394f2ee4e","user":{"login":"KevinCorcoran","id":2945462,"avatar_url":"https://avatars.githubusercontent.com/u/2945462?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinCorcoran","html_url":"https://github.com/KevinCorcoran","followers_url":"https://api.github.com/users/KevinCorcoran/followers","following_url":"https://api.github.com/users/KevinCorcoran/following{/other_user}","gists_url":"https://api.github.com/users/KevinCorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinCorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinCorcoran/subscriptions","organizations_url":"https://api.github.com/users/KevinCorcoran/orgs","repos_url":"https://api.github.com/users/KevinCorcoran/repos","events_url":"https://api.github.com/users/KevinCorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/KevinCorcoran/received_events","type":"User","site_admin":false},"repo":{"id":32046926,"name":"ruby-hocon","full_name":"KevinCorcoran/ruby-hocon","owner":{"login":"KevinCorcoran","id":2945462,"avatar_url":"https://avatars.githubusercontent.com/u/2945462?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinCorcoran","html_url":"https://github.com/KevinCorcoran","followers_url":"https://api.github.com/users/KevinCorcoran/followers","following_url":"https://api.github.com/users/KevinCorcoran/following{/other_user}","gists_url":"https://api.github.com/users/KevinCorcoran/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinCorcoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinCorcoran/subscriptions","organizations_url":"https://api.github.com/users/KevinCorcoran/orgs","repos_url":"https://api.github.com/users/KevinCorcoran/repos","events_url":"https://api.github.com/users/KevinCorcoran/events{/privacy}","received_events_url":"https://api.github.com/users/KevinCorcoran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KevinCorcoran/ruby-hocon","description":"","fork":true,"url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon","forks_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/forks","keys_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/teams","hooks_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/hooks","issue_events_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/issues/events{/number}","events_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/events","assignees_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/assignees{/user}","branches_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/branches{/branch}","tags_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/tags","blobs_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/git/refs{/sha}","trees_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/statuses/{sha}","languages_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/languages","stargazers_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/stargazers","contributors_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/contributors","subscribers_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/subscribers","subscription_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/subscription","commits_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/commits{/sha}","git_commits_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/git/commits{/sha}","comments_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/comments{/number}","issue_comment_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/issues/comments{/number}","contents_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/contents/{+path}","compare_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/merges","archive_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/downloads","issues_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/issues{/number}","pulls_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/pulls{/number}","milestones_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/milestones{/number}","notifications_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/labels{/name}","releases_url":"https://api.github.com/repos/KevinCorcoran/ruby-hocon/releases{/id}","created_at":"2015-03-11T23:36:57Z","updated_at":"2015-03-11T23:36:57Z","pushed_at":"2015-03-27T21:03:10Z","git_url":"git://github.com/KevinCorcoran/ruby-hocon.git","ssh_url":"git@github.com:KevinCorcoran/ruby-hocon.git","clone_url":"https://github.com/KevinCorcoran/ruby-hocon.git","svn_url":"https://github.com/KevinCorcoran/ruby-hocon","homepage":null,"size":520,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"puppetlabs:master","ref":"master","sha":"a01c2214de3f855700431ff478e437951935c3da","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17326988,"name":"ruby-hocon","full_name":"puppetlabs/ruby-hocon","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/ruby-hocon","description":"","fork":false,"url":"https://api.github.com/repos/puppetlabs/ruby-hocon","forks_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/forks","keys_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/teams","hooks_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/events","assignees_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/tags","blobs_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/subscription","commits_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/merges","archive_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/downloads","issues_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/ruby-hocon/releases{/id}","created_at":"2014-03-01T23:44:17Z","updated_at":"2015-03-27T20:22:51Z","pushed_at":"2015-03-27T21:04:46Z","git_url":"git://github.com/puppetlabs/ruby-hocon.git","ssh_url":"git@github.com:puppetlabs/ruby-hocon.git","clone_url":"https://github.com/puppetlabs/ruby-hocon.git","svn_url":"https://github.com/puppetlabs/ruby-hocon","homepage":null,"size":1201,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46"},"html":{"href":"https://github.com/puppetlabs/ruby-hocon/pull/46"},"issue":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/46"},"comments":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/ruby-hocon/statuses/3f4d7fe055f5661de49c914284525b4394f2ee4e"}}}}