JSON output #58

Merged
merged 6 commits into from Jan 11, 2017

Projects

None yet

1 participant

@kpaulisse
Contributor

This PR:

  • Changes the default JSON output from an array:

    ["~", "File\f/etc/foo\fparameters\fcontent", ...]
    

    to a hash with meaningful keys:

    { "diff_type": "~", "type": "File", "title": "/etc/foo", ... }
    
  • Adds an output format named legacy_json to output the old way.

kpaulisse added some commits Jan 10, 2017
@kpaulisse kpaulisse Add old_location, new_location, and to_h_with_string_keys 0bab80d
@kpaulisse kpaulisse Add legacy JSON display format 3873e0e
@kpaulisse kpaulisse Merge remote-tracking branch 'origin/kpaulisse-release-0-7' into kpau…
…lisse-json-output
c4d3b99
@kpaulisse kpaulisse Handle diff method being initialized with an instance of itself 7b1cff3
@kpaulisse kpaulisse Require array input to printer() 36c9c20
@kpaulisse kpaulisse Add output format option for legacy_json
aedee64
@kpaulisse kpaulisse merged commit 66383a9 into kpaulisse-release-1-0 Jan 11, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@kpaulisse kpaulisse deleted the kpaulisse-json-output branch Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment