lib/renderer/contents_manifest_generator.rb in playgroundbook-0.4.0 vs lib/renderer/contents_manifest_generator.rb in playgroundbook-0.5.0

- old
+ new

@@ -17,10 +17,10 @@ file.write(manifest_contents(book_metadata).to_plist) end end def manifest_contents(book_metadata) - chapters = book_metadata["chapters"].map { |c| "#{c}.playgroundchapter" } + chapters = book_metadata["chapters"].map { |c| "#{c["name"]}.playgroundchapter" } manifest_contents = { "Name" => book_metadata["name"], "ContentIdentifier" => book_metadata["identifier"], "DeploymentTarget" => book_metadata["deployment_target"] || "ios10.0", "Chapters" => chapters,