Module: Binary::Merge
- Defined in:
- lib/binary/merge.rb,
lib/binary/merge/version.rb
Defined Under Namespace
Modules: Version
Constant Summary collapse
Class Method Summary collapse
- .binary_feature_profile ⇒ Object
- .preservation_report(format:, schema:, matched_schema_paths:, preserved_ranges:) ⇒ Object
- .render_policy(schema_path:, byte_range:, operation:, disposition:, reason:) ⇒ Object
- .unsafe_diagnostic(schema_path:, byte_range:, message:, category: "unsafe_binary_mutation") ⇒ Object
Class Method Details
.binary_feature_profile ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/binary/merge.rb', line 11 def binary_feature_profile { family: "binary", supported_dialects: [], supported_policies: [] } end |
.preservation_report(format:, schema:, matched_schema_paths:, preserved_ranges:) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/binary/merge.rb', line 39 def preservation_report(format:, schema:, matched_schema_paths:, preserved_ranges:) TreeHaver::BinaryMergeReport.new( format: format, schema: schema, matched_schema_paths: matched_schema_paths, preserved_ranges: preserved_ranges, rewritten_nodes: [], checksum_updates: [], nested_dispatches: [], diagnostics: [] ) end |
.render_policy(schema_path:, byte_range:, operation:, disposition:, reason:) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/binary/merge.rb', line 19 def render_policy(schema_path:, byte_range:, operation:, disposition:, reason:) TreeHaver::BinaryRenderPolicy.new( schema_path: schema_path, byte_range: byte_range, operation: operation, disposition: disposition, reason: reason ) end |
.unsafe_diagnostic(schema_path:, byte_range:, message:, category: "unsafe_binary_mutation") ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/binary/merge.rb', line 29 def unsafe_diagnostic(schema_path:, byte_range:, message:, category: "unsafe_binary_mutation") TreeHaver::BinaryDiagnostic.new( severity: "error", category: category, message: , schema_path: schema_path, byte_range: byte_range ) end |