Merge pull request #5597 from cmbernard333/feature/homebrew-cask-json-error
Added missing method to_a to Cask::DSL:ConflictsWith class.
This commit is contained in:
commit
d0202f692f
@ -133,7 +133,7 @@ module Cask
|
||||
end,
|
||||
"caveats" => caveats,
|
||||
"depends_on" => depends_on,
|
||||
"conflicts_with" => conflicts_with.to_a,
|
||||
"conflicts_with" => conflicts_with.to_h,
|
||||
"container" => container,
|
||||
"auto_updates" => auto_updates,
|
||||
}
|
||||
|
||||
@ -25,6 +25,10 @@ module Cask
|
||||
instance_variable_set("@#{key}", instance_variable_get("@#{key}").merge([*value]))
|
||||
end
|
||||
end
|
||||
|
||||
def to_h
|
||||
Hash[VALID_KEYS.map { |key| [key, instance_variable_get("@#{key}").to_a] }]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user