Commit 47682d7e authored by Fabio Pelosin's avatar Fabio Pelosin

[IPC] Convert specs to pretty JSON

parent 266ba22c
......@@ -28,8 +28,9 @@ module Pod
end
def run
require 'json'
spec = Specification.from_file(@path)
output_pipe.puts spec.to_json
output_pipe.puts(JSON.pretty_generate(spec))
end
end
......
......@@ -15,9 +15,9 @@ module Pod
it 'converts a podspec to JSON and prints it to STDOUT' do
out = run_command('ipc', 'spec', fixture('banana-lib/BananaLib.podspec'))
out.should.match /"name":"BananaLib"/
out.should.match /"version":"1.0"/
out.should.match /"description":"Full of chunky bananas."/
out.should.match /"name": "BananaLib"/
out.should.match /"version": "1.0"/
out.should.match /"description": "Full of chunky bananas."/
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment