structuredmerge-core 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fd7854affef3250b9d7e015641085d12ec3ed07e8472075e1d17f510d3214c9
4
- data.tar.gz: 729222f75c4ee77e03ce28269e0b1f18eeb1191a11ec8921c7e510c1764faee1
3
+ metadata.gz: bb8c59783b6942d82f42d836611367dd18fdaef6313130dfaf2700b8564558e0
4
+ data.tar.gz: 6d620785151f82768049f5eb1672f4c81720d1fa601fed3a08b1e3dbb8a813ad
5
5
  SHA512:
6
- metadata.gz: f2f54a1a67b95f42d6ed7d0f13536d7911473b900bb4fb2c4cf4779ca6850b46468c75111ab35c5a664b335f9944ed2b292e07146a20e5fb213e96972447c8f8
7
- data.tar.gz: ded9dc2f29488c87bdcfbbf091de4297c0d2fe9a15142598947ab9c8e60b47b508fe437de5b2303a7898523a55934c812285b0e98aed80d782a507d227330d1d
6
+ metadata.gz: 47b4f90d5ec62376482f48eb45ef79d32764325193b7d46047e513f4209169e3e3b926f8adad66a3ad5d3519170281bec1133c2264396ddd17a56cb6982e938d
7
+ data.tar.gz: 4a6630f97f8504888e6d224ad9818c3b01f6765805e0b7fcecace29a33951bc7513c87d6dd1f3d1c7d5d0e2001f5c5e20eaefc91c64537bc90538876380a868e
@@ -1,11 +1,11 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:248dc41667d6c3c1532d2456d1c705e956b05de606e73b808c4c17f9379716ee
2
+ # alef:hash:3f69aaa0fa8d53d5d9d774234c10c942d8f20f98bca6084795335abfc4f75690
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
6
6
  [package]
7
7
  name = "structuredmerge-core-rb"
8
- version = "0.2.2"
8
+ version = "0.2.3"
9
9
  edition = "2024"
10
10
  authors = ["Peter Boling"]
11
11
  license = "AGPL-3.0-only OR PolyForm-Small-Business-1.0.0"
@@ -28,7 +28,7 @@ magnus = "0.9"
28
28
  rb-sys = ">=0.9.130, <0.10"
29
29
  serde = { version = "1", features = ["derive"] }
30
30
  serde_json = "1"
31
- structuredmerge-core = { version = "0.2.2" }
31
+ structuredmerge-core = { version = "0.2.3" }
32
32
  tokio = { version = "1", features = ["rt-multi-thread"] }
33
33
  tracing = "0.1"
34
34
 
@@ -41,5 +41,8 @@ dbg_macro = "deny"
41
41
  print_stderr = "deny"
42
42
  print_stdout = "deny"
43
43
 
44
+ [lints.cargo]
45
+ unused_dependencies = "allow"
46
+
44
47
  # Standalone root for the packaged Ruby extension crate.
45
48
  [workspace]
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:d702569352e61828d1070832199d11db501faa3c4099672e40f3a5d696b568df
2
+ // alef:hash:f418dca2ab8f532b6a9b90a4ef64968e9606f6bfe93f9f87692b3da17c9db5b8
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -20,7 +20,7 @@
20
20
  )]
21
21
 
22
22
  use magnus::{
23
- Error, IntoValueFromNative, Ruby, function, method, prelude::*, try_convert::TryConvertOwned,
23
+ function, method, prelude::*, try_convert::TryConvertOwned, Error, IntoValueFromNative, Ruby,
24
24
  };
25
25
  use std::collections::HashMap;
26
26
  use std::sync::Arc;
@@ -19050,7 +19050,7 @@ impl magnus::TryConvert for ConflictRecord {
19050
19050
  if let Ok(wrapped) = <&Self as magnus::TryConvert>::try_convert(val) {
19051
19051
  return Ok(wrapped.clone());
19052
19052
  } // For data enums with fields (e.g., PageAction), try to deserialize from JSON first.
19053
- // For unit enums or when passed as a string, fall back to string-based conversion.
19053
+ // For unit enums or when passed as a string, fall back to string-based conversion.
19054
19054
  let json_str: String = if let Ok(s) = <String as magnus::TryConvert>::try_convert(val) {
19055
19055
  s
19056
19056
  } else {
@@ -19347,7 +19347,7 @@ impl magnus::TryConvert for DiagnosticRecord {
19347
19347
  if let Ok(wrapped) = <&Self as magnus::TryConvert>::try_convert(val) {
19348
19348
  return Ok(wrapped.clone());
19349
19349
  } // For data enums with fields (e.g., PageAction), try to deserialize from JSON first.
19350
- // For unit enums or when passed as a string, fall back to string-based conversion.
19350
+ // For unit enums or when passed as a string, fall back to string-based conversion.
19351
19351
  let json_str: String = if let Ok(s) = <String as magnus::TryConvert>::try_convert(val) {
19352
19352
  s
19353
19353
  } else {
@@ -19836,7 +19836,7 @@ impl magnus::TryConvert for OperationPolicy {
19836
19836
  let payload: ThreeWayMergePolicy = val.funcall("value", ())?;
19837
19837
  return Ok(Self::Merge3(payload));
19838
19838
  } // For data enums with fields (e.g., PageAction), try to deserialize from JSON first.
19839
- // For unit enums or when passed as a string, fall back to string-based conversion.
19839
+ // For unit enums or when passed as a string, fall back to string-based conversion.
19840
19840
  let json_str: String = if let Ok(s) = <String as magnus::TryConvert>::try_convert(val) {
19841
19841
  s
19842
19842
  } else {
@@ -21271,7 +21271,7 @@ fn merge_python_declarations(
21271
21271
  requests: Vec<ParseRequest>,
21272
21272
  limits: magnus::Value,
21273
21273
  ) -> Result<NativeMergeResult, Error> {
21274
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21274
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21275
21275
  requests.into_iter().map(Into::into).collect();
21276
21276
  let limits_core: structuredmerge_core::ParseLimits = {
21277
21277
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21292,7 +21292,7 @@ fn merge_python_declarations_controlled(
21292
21292
  limits: magnus::Value,
21293
21293
  control: OperationControl,
21294
21294
  ) -> Result<NativeMergeResult, Error> {
21295
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21295
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21296
21296
  requests.into_iter().map(Into::into).collect();
21297
21297
  let limits_core: structuredmerge_core::ParseLimits = {
21298
21298
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21316,7 +21316,7 @@ fn merge_yaml_mapping(
21316
21316
  requests: Vec<ParseRequest>,
21317
21317
  limits: magnus::Value,
21318
21318
  ) -> Result<NativeMergeResult, Error> {
21319
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21319
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21320
21320
  requests.into_iter().map(Into::into).collect();
21321
21321
  let limits_core: structuredmerge_core::ParseLimits = {
21322
21322
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21337,7 +21337,7 @@ fn merge_yaml_mapping_controlled(
21337
21337
  limits: magnus::Value,
21338
21338
  control: OperationControl,
21339
21339
  ) -> Result<NativeMergeResult, Error> {
21340
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21340
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21341
21341
  requests.into_iter().map(Into::into).collect();
21342
21342
  let limits_core: structuredmerge_core::ParseLimits = {
21343
21343
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21369,7 +21369,7 @@ fn parse_sources(
21369
21369
  requests: Vec<ParseRequest>,
21370
21370
  limits: magnus::Value,
21371
21371
  ) -> Result<Vec<CoreParseResult>, Error> {
21372
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21372
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21373
21373
  requests.into_iter().map(Into::into).collect();
21374
21374
  let limits_core: structuredmerge_core::ParseLimits = {
21375
21375
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21390,7 +21390,7 @@ fn parse_sources_controlled(
21390
21390
  limits: magnus::Value,
21391
21391
  control: OperationControl,
21392
21392
  ) -> Result<Vec<CoreParseResult>, Error> {
21393
- let requests_core: Vec<structuredmerge_core::ParseRequest> =
21393
+ let requests_core: Vec<structuredmerge_core::service::ParseRequest> =
21394
21394
  requests.into_iter().map(Into::into).collect();
21395
21395
  let limits_core: structuredmerge_core::ParseLimits = {
21396
21396
  let binding_val: ParseLimits = ParseLimits::try_convert(limits).map_err(|e| {
@@ -21416,7 +21416,7 @@ fn parser_selection_report(
21416
21416
  request: magnus::Value,
21417
21417
  limits: magnus::Value,
21418
21418
  ) -> Result<SelectionReport, Error> {
21419
- let request: structuredmerge_core::ParserSelectionRequest = {
21419
+ let request: structuredmerge_core::service::ParserSelectionRequest = {
21420
21420
  let binding_val: ParserSelectionRequest = ParserSelectionRequest::try_convert(request)
21421
21421
  .map_err(|e| {
21422
21422
  magnus::Error::new(
@@ -21445,7 +21445,7 @@ fn parser_selection_report_controlled(
21445
21445
  limits: magnus::Value,
21446
21446
  control: OperationControl,
21447
21447
  ) -> Result<SelectionReport, Error> {
21448
- let request: structuredmerge_core::ParserSelectionRequest = {
21448
+ let request: structuredmerge_core::service::ParserSelectionRequest = {
21449
21449
  let binding_val: ParserSelectionRequest = ParserSelectionRequest::try_convert(request)
21450
21450
  .map_err(|e| {
21451
21451
  magnus::Error::new(
@@ -21699,7 +21699,7 @@ fn workflow_selection_reports(
21699
21699
  queries: Vec<MergeSelectionRequest>,
21700
21700
  limits: magnus::Value,
21701
21701
  ) -> Result<Vec<MergeSelectionReport>, Error> {
21702
- let queries_core: Vec<structuredmerge_core::MergeSelectionRequest> =
21702
+ let queries_core: Vec<structuredmerge_core::provider_selection::MergeSelectionRequest> =
21703
21703
  queries.into_iter().map(Into::into).collect();
21704
21704
  let limits_core: structuredmerge_core::WorkflowLimits = {
21705
21705
  let binding_val: WorkflowLimits = WorkflowLimits::try_convert(limits).map_err(|e| {
@@ -21720,7 +21720,7 @@ fn workflow_selection_reports_controlled(
21720
21720
  limits: magnus::Value,
21721
21721
  control: OperationControl,
21722
21722
  ) -> Result<Vec<MergeSelectionReport>, Error> {
21723
- let queries_core: Vec<structuredmerge_core::MergeSelectionRequest> =
21723
+ let queries_core: Vec<structuredmerge_core::provider_selection::MergeSelectionRequest> =
21724
21724
  queries.into_iter().map(Into::into).collect();
21725
21725
  let limits_core: structuredmerge_core::WorkflowLimits = {
21726
21726
  let binding_val: WorkflowLimits = WorkflowLimits::try_convert(limits).map_err(|e| {
@@ -21740,10 +21740,10 @@ fn workflow_selection_reports_controlled(
21740
21740
  Ok(result.into_iter().map(Into::into).collect())
21741
21741
  }
21742
21742
 
21743
- #[allow(unused_imports)]
21744
- use magnus::TryConvert as _;
21745
21743
  #[allow(unused_imports)]
21746
21744
  use magnus::value::InnerValue as _;
21745
+ #[allow(unused_imports)]
21746
+ use magnus::TryConvert as _;
21747
21747
  type RbParserHostBridgeRuntimeJob = Box<dyn FnOnce(&magnus::Ruby, magnus::Value) + Send + 'static>;
21748
21748
 
21749
21749
  #[derive(Clone)]
@@ -21909,7 +21909,7 @@ impl structuredmerge_core::ParserHost for RbParserHostBridge {
21909
21909
  )));
21910
21910
  }
21911
21911
  }; // Native-object return: the binding struct's `TryConvert` accepts the host's native wrapped
21912
- // object (and still a Hash/JSON via `to_json`); `From<ParserProviderDescriptor>` yields core.
21912
+ // object (and still a Hash/JSON via `to_json`); `From<ParserProviderDescriptor>` yields core.
21913
21913
  <ParserProviderDescriptor as magnus::TryConvert>::try_convert(val)
21914
21914
  .map(Into::into)
21915
21915
  .map_err(|e| {
@@ -21957,7 +21957,7 @@ impl structuredmerge_core::ParserHost for RbParserHostBridge {
21957
21957
  )));
21958
21958
  }
21959
21959
  }; // Native-object return: the binding struct's `TryConvert` accepts the host's native wrapped
21960
- // object (and still a Hash/JSON via `to_json`); `From<ProbeBatchResult>` yields core.
21960
+ // object (and still a Hash/JSON via `to_json`); `From<ProbeBatchResult>` yields core.
21961
21961
  <ProbeBatchResult as magnus::TryConvert>::try_convert(val).map(Into::into).map_err(
21962
21962
  |e| {
21963
21963
  structuredmerge_core::CoreError::new(format!(
@@ -22005,7 +22005,7 @@ impl structuredmerge_core::ParserHost for RbParserHostBridge {
22005
22005
  )));
22006
22006
  }
22007
22007
  }; // Native-object return: the binding struct's `TryConvert` accepts the host's native wrapped
22008
- // object (and still a Hash/JSON via `to_json`); `From<ParseBatchResult>` yields core.
22008
+ // object (and still a Hash/JSON via `to_json`); `From<ParseBatchResult>` yields core.
22009
22009
  <ParseBatchResult as magnus::TryConvert>::try_convert(val).map(Into::into).map_err(
22010
22010
  |e| {
22011
22011
  structuredmerge_core::CoreError::new(format!(
@@ -22028,10 +22028,10 @@ impl structuredmerge_core::ParserHost for RbParserHostBridge {
22028
22028
  }
22029
22029
  }
22030
22030
 
22031
- #[allow(unused_imports)]
22032
- use magnus::TryConvert as _;
22033
22031
  #[allow(unused_imports)]
22034
22032
  use magnus::value::InnerValue as _;
22033
+ #[allow(unused_imports)]
22034
+ use magnus::TryConvert as _;
22035
22035
  type RbWorkflowHostBridgeRuntimeJob =
22036
22036
  Box<dyn FnOnce(&magnus::Ruby, magnus::Value) + Send + 'static>;
22037
22037
 
@@ -22192,7 +22192,7 @@ impl structuredmerge_core::WorkflowHost for RbWorkflowHostBridge {
22192
22192
  )));
22193
22193
  }
22194
22194
  }; // Native-object return: the binding struct's `TryConvert` accepts the host's native wrapped
22195
- // object (and still a Hash/JSON via `to_json`); `From<MergeProviderDescriptor>` yields core.
22195
+ // object (and still a Hash/JSON via `to_json`); `From<MergeProviderDescriptor>` yields core.
22196
22196
  <MergeProviderDescriptor as magnus::TryConvert>::try_convert(val)
22197
22197
  .map(Into::into)
22198
22198
  .map_err(|e| {
@@ -22250,7 +22250,7 @@ impl structuredmerge_core::WorkflowHost for RbWorkflowHostBridge {
22250
22250
  )));
22251
22251
  }
22252
22252
  }; // Native-object return: the binding struct's `TryConvert` accepts the host's native wrapped
22253
- // object (and still a Hash/JSON via `to_json`); `From<WorkflowBatchResult>` yields core.
22253
+ // object (and still a Hash/JSON via `to_json`); `From<WorkflowBatchResult>` yields core.
22254
22254
  <WorkflowBatchResult as magnus::TryConvert>::try_convert(val).map(Into::into).map_err(
22255
22255
  |e| {
22256
22256
  structuredmerge_core::CoreError::new(format!(
@@ -4,7 +4,7 @@ module StructuredmergeCore
4
4
  # Version namespace for this gem.
5
5
  module Version
6
6
  # Current gem version.
7
- VERSION = "0.2.2"
7
+ VERSION = "0.2.3"
8
8
  end
9
9
  # Current gem version exposed at the traditional constant location.
10
10
  # Traditional Constant Location
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structuredmerge-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -304,10 +304,10 @@ licenses:
304
304
  - AGPL-3.0-only
305
305
  metadata:
306
306
  homepage_uri: https://structuredmerge-core.galtzo.com
307
- source_code_uri: https://github.com/structuredmerge/structuredmerge/tree/v0.2.2
308
- changelog_uri: https://github.com/structuredmerge/structuredmerge/blob/v0.2.2/CHANGELOG.md
307
+ source_code_uri: https://github.com/structuredmerge/structuredmerge/tree/v0.2.3
308
+ changelog_uri: https://github.com/structuredmerge/structuredmerge/blob/v0.2.3/CHANGELOG.md
309
309
  bug_tracker_uri: https://github.com/structuredmerge/structuredmerge/issues
310
- documentation_uri: https://www.rubydoc.info/gems/structuredmerge-core/0.2.2
310
+ documentation_uri: https://www.rubydoc.info/gems/structuredmerge-core/0.2.3
311
311
  funding_uri: https://github.com/sponsors/pboling
312
312
  wiki_uri: https://github.com/structuredmerge/structuredmerge/wiki
313
313
  news_uri: https://www.railsbling.com/tags/structuredmerge-core