This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fb1484b Another test
2fb1484b is described below

commit 2fb1484bf61ac638eafdb883aa84a8d35ec124c6
Author: Sebb <[email protected]>
AuthorDate: Sun Feb 25 15:40:39 2024 +0000

    Another test
---
 lib/whimsy/asf/json-utils.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/json-utils.rb b/lib/whimsy/asf/json-utils.rb
index f07a730e..1725d568 100644
--- a/lib/whimsy/asf/json-utils.rb
+++ b/lib/whimsy/asf/json-utils.rb
@@ -61,9 +61,12 @@ module ASFJSON
 end
 
 if __FILE__ == $0
+  require 'stringio'
   old_file = ARGV.shift or raise ArgumentError.new "Old file!"
   new_file = ARGV.shift or raise ArgumentError.new "New file!"
   old_json = JSON.parse(File.read(old_file))
   new_json = JSON.parse(File.read(new_file))
-  ASFJSON.compare_json(old_json, new_json)
+  out = StringIO.new
+  ASFJSON.compare_json(old_json, new_json, out=out)
+  puts out.string
 end

Reply via email to