kintsugi 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9210fcd7501da6106887f3ff32cd8951ecb6a81ddc156e49bb9b6e486ae37e49
4
- data.tar.gz: c571e02062f74ef3cca2830401a8a74a9d554bd93fb3e3f410cec3359200971b
3
+ metadata.gz: 753d014ed99df9c4fb39b551cc44fbb97031dc6b3ec3ec63412bfc4b6f049054
4
+ data.tar.gz: eb79aa5f506e711144a7c4774841431a3812fb938349b0d97009120c3c7edcb1
5
5
  SHA512:
6
- metadata.gz: acd1dde008c1ddf553547285fe00b044fc4e3a25305d7c1830ab2a55b77f2ffb6a2f3b04740c8c28c1d95f2bdebe201fbe4cf2c3f1e4a5cae51b96965e1e2e51
7
- data.tar.gz: 45691f167ebb859989ce64cb4f171402e8372adbab38dc76f0d1ce279008546f960a011ef66b17f0bf54b72e9b2e840cce028b3a7c5b7381415ff39f3ece7fd2
6
+ metadata.gz: 84e3842505cdaadcd95abfeb4100d9c12f0621be1947f82f4eb7c9022588b29341c6f9241df0d4efa89333e233e2fb80b5fe9fbe6fbd4cb4c457b867154709a7
7
+ data.tar.gz: c5ab8281e2bbac6dde4c985416608fe6440bbee0379f5ad3c7d421bafae89730fe1411041b34180ec64fecb890d6a34515c141d3cb186d6aa44b14d08b21a8db
@@ -306,7 +306,8 @@ module Kintsugi
306
306
  component = child_component(parent_component, change_name)
307
307
  elsif change[:added].is_a?(Array)
308
308
  (change[:added]).each do |added_change|
309
- add_child_to_component(parent_component, added_change, change_path)
309
+ add_child_to_component(parent_component, added_change,
310
+ join_path(change_path, added_change["displayName"]))
310
311
  end
311
312
  elsif !change[:added].nil?
312
313
  raise MergeError, "Unsupported added change type for #{change[:added]}"
@@ -341,9 +342,8 @@ module Kintsugi
341
342
  else
342
343
  parent_component
343
344
  end
344
- parent_change_path = change_path.split("/")[0...-1].join("/")
345
345
  add_child_to_component(non_object_list_parent, source_project_component.to_tree_hash,
346
- parent_change_path)
346
+ change_path)
347
347
  component_at_path(non_object_list_parent.project, change_path)
348
348
  end
349
349
 
@@ -637,9 +637,7 @@ module Kintsugi
637
637
  end
638
638
  end
639
639
 
640
- def add_child_to_component(component, change, component_change_path)
641
- change_path = join_path(component_change_path, change["displayName"])
642
-
640
+ def add_child_to_component(component, change, change_path)
643
641
  if change["ProjectRef"] && change["ProductGroup"]
644
642
  add_subproject_reference(component, change, change_path)
645
643
  return
@@ -1031,13 +1029,14 @@ module Kintsugi
1031
1029
  next
1032
1030
  end
1033
1031
 
1032
+ child_path = join_path(change_path, change_name)
1034
1033
  case change_value
1035
1034
  when Hash
1036
- add_child_to_component(component, change_value, change_path)
1035
+ add_child_to_component(component, change_value, child_path)
1037
1036
  when Array
1038
1037
  change_value.each do |added_attribute_element|
1039
- add_child_to_component(component, added_attribute_element,
1040
- "#{change_path}/#{change_name}")
1038
+ element_path = join_path(child_path, added_attribute_element["displayName"])
1039
+ add_child_to_component(component, added_attribute_element, element_path)
1041
1040
  end
1042
1041
  else
1043
1042
  raise MergeError, "Trying to add attribute of unsupported type '#{change_value.class}' " \
@@ -3,6 +3,6 @@
3
3
  module Kintsugi
4
4
  # This module holds the Kintsugi version information.
5
5
  module Version
6
- STRING = "0.7.5"
6
+ STRING = "0.7.6"
7
7
  end
8
8
  end