You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ At GitHub, we manage thousands of nodes with a Puppet code base containing 500,0
8
8
9
9
`octocatalog-diff` is written in Ruby and is distributed as a gem. It runs on Mac OS and Unix/Linux platforms.
10
10
11
-
It is under active development at this time. We suspect that with the initial release, some people who try it out could be using configurations of Puppet that we haven't experienced within our environment. We are eager to identify and fix as many of these as we can to expand the compatibility of this tool as much as possible.
11
+
We consider the 1.x release of `octocatalog-diff` to be stable and production-quality. We continue to maintain and enhance `octocatalog-diff` to meet our own internal needs and to incorporate suggestions from the community. Please consult the [change log](/doc/CHANGELOG.md) for details.
Copy file name to clipboardExpand all lines: doc/CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,22 @@
8
8
</tr>
9
9
</thead><tbody>
10
10
<trvalign=top>
11
+
<td>0.99.0rc1</td>
12
+
<td>2017-xx-xx</td>
13
+
<td>
14
+
This is a release candidate for `octocatalog-diff` version 1.0. Please use caution before using this in a production environment. Report any problems to us as <ahref="https://github.com/github/octocatalog-diff/issues/new">in a new issue</a>.
15
+
16
+
<h4>New Features</h4>
17
+
18
+
The most significant change in version 1.0 is the addition of the <ahref="./dev/api.md">V1 API</a>, which permits developers to build catalogs (<code>--catalog-only</code>) and compare/diff catalogs using octocatalog-diff. Under the hood, we've rearranged the code to support these APIs, which should also improve the reliability and allow faster development cycles.
19
+
20
+
<h4>Breaking Changes</h4>
21
+
22
+
The format of the output from <code>--output-format json</code> has changed. In version 0.x of the software, each difference was represented by an array. In version 1.x, each difference is represented by a hash with meaningful English keys. We have added an option <code>--output-format legacy_json</code> if anyone depends upon the output in the old format.
Copy file name to clipboardExpand all lines: doc/dev/api/v1/objects/diff.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ Note that this is a pass-through of information provided in the Puppet catalog,
44
44
45
45
Note also that if the diff represents removal of a resource, this will return `nil`, because the resource does not exist in the new catalog.
46
46
47
+
#### `#new_location` (Hash)
48
+
49
+
Returns a hash containing `:file` (equal to `#new_file`) and `:line` (equal to `#new_line`) when either is defined. Returns `nil` if both are undefined.
50
+
47
51
#### `#new_value` (Object)
48
52
49
53
Returns the value of the resource from the new catalog.
@@ -111,6 +115,10 @@ Note that this is a pass-through of information provided in the Puppet catalog,
111
115
112
116
Note also that if the diff represents addition of a resource, this will return `nil`, because the resource does not exist in the old catalog.
113
117
118
+
#### `#old_location` (Hash)
119
+
120
+
Returns a hash containing `:file` (equal to `#old_file`) and `:line` (equal to `#old_line`) when either is defined. Returns `nil` if both are undefined.
121
+
114
122
#### `#old_value` (Object)
115
123
116
124
Returns the value of the resource from the old catalog.
@@ -249,4 +257,5 @@ These methods are available for debugging or development purposes but are not gu
249
257
-`#inspect` (String): Returns inspection of object
250
258
-`#raw` (Array): Returns internal array data structure of the "diff"
251
259
-`#to_h` (Hash): Returns object as a hash, where keys are above described methods
260
+
-`#to_h_with_string_keys` (Hash): Returns object as a hash, where keys are above described methods; keys are strings, not symbols
252
261
-`#[]` (Object): Retrieve indexed array elements from raw internal array object
Copy file name to clipboardExpand all lines: doc/optionsref.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Usage: octocatalog-diff [command line options]
27
27
--bootstrap-then-exit Bootstrap from-dir and/or to-dir and then exit
28
28
--[no-]color Enable/disable colors in output
29
29
-o, --output-file FILENAME Output results into FILENAME
30
-
--output-format FORMAT Output format: text,json
30
+
--output-format FORMAT Output format: text,json,legacy_json
31
31
-d, --[no-]debug Print debugging messages to STDERR
32
32
-q, --[no-]quiet Quiet (no status messages except errors)
33
33
--ignore "Type1[Title1],Type2[Title2],..."
@@ -708,10 +708,12 @@ to ignore any changes for any defined type where this tag is set. (<a href="../l
708
708
<pre><code>--output-format FORMAT</code></pre>
709
709
</td>
710
710
<td valign=top>
711
-
Output format: text,json
711
+
Output format: text,json,legacy_json
712
712
</td>
713
713
<td valign=top>
714
-
Output format option (<a href="../lib/octocatalog-diff/cli/options/output_format.rb">output_format.rb</a>)
714
+
Output format option. 'text' is human readable text, 'json' is an array of differences
715
+
identified by human readable keys (the preferred octocatalog-diff 1.x format), and 'legacy_json' is an
716
+
array of differences, where each difference is an array (the octocatalog-diff 0.x format). (<ahref="../lib/octocatalog-diff/cli/options/output_format.rb">output_format.rb</a>)
0 commit comments