Sha256: 5722f9cf8e7116e05d4c23cc94da93f628c85e12c1f8ebece3dcbf4dd7d536be
Contents?: true
Size: 707 Bytes
Versions: 74
Compression:
Stored size: 707 Bytes
Contents
module LintRoller module Support class MergesUpstreamMetadata def merge(plugin_yaml, upstream_yaml) common_upstream_values = upstream_yaml.select { |key| plugin_yaml.key?(key) } plugin_yaml.merge(common_upstream_values) { |key, plugin_value, upstream_value| if plugin_value.is_a?(Hash) && upstream_value.is_a?(Hash) plugin_value.merge(upstream_value) { |sub_key, plugin_sub_value, upstream_sub_value| if plugin_value.key?(sub_key) plugin_sub_value else upstream_sub_value end } else plugin_value end } end end end end
Version data entries
74 entries across 74 versions & 3 rubygems