lib/app_manifest.rb in app_manifest-0.1.2 vs lib/app_manifest.rb in app_manifest-0.2.0
- old
+ new
@@ -55,10 +55,11 @@
def canonicalize_formation(manifest)
canonicalize_key(manifest, :formation) do |formation|
if formation.is_a? Array
Hash[
formation
+ .map { |entry| keys_to_sym(entry) }
.reject { |entry| entry[:process].to_s.empty? }
.map do |entry|
process = entry.fetch(:process)
entry = entry.reject { |k, _| k == :process }
[process.to_sym, entry]
@@ -81,10 +82,10 @@
if entry.is_a? String
{
plan: entry,
}
else
- entry
+ keys_to_sym(entry)
end
end
end
end