File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def self.catalog_diff(options = nil)
5757
5858 # Return diffs and catalogs in expected format
5959 OpenStruct . new (
60- diffs : diffs . map { |x | OctocatalogDiff ::API ::V1 ::Diff . new ( x ) } ,
60+ diffs : diffs . map { |x | OctocatalogDiff ::API ::V1 ::Diff . construct ( x ) } ,
6161 from : OctocatalogDiff ::API ::V1 ::Catalog . new ( catalogs [ :from ] ) ,
6262 to : OctocatalogDiff ::API ::V1 ::Catalog . new ( catalogs [ :to ] )
6363 )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Display
2525 def self . output ( diff_in , options = { } , logger = nil )
2626 diff_x = diff_in . is_a? ( OctocatalogDiff ::CatalogDiff ::Differ ) ? diff_in . diff : diff_in
2727 raise ArgumentError , "text_output requires Array<Diff results>; passed in #{ diff_in . class } " unless diff_x . is_a? ( Array )
28- diff = diff_x . map { |x | OctocatalogDiff ::API ::V1 ::Diff . new ( x ) }
28+ diff = diff_x . map { |x | OctocatalogDiff ::API ::V1 ::Diff . construct ( x ) }
2929
3030 # req_format means 'requested format' because 'format' has a built-in meaning to Ruby
3131 req_format = options . fetch ( :format , :color_text )
You can’t perform that action at this time.
0 commit comments