foobara-remote-imports 0.0.13 → 1.1.0

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: 6cd2369d4ed24429aebb748f3c8525312c91bf740dcf366669bc858a8bf6b517
4
- data.tar.gz: 3758c3c03c5afaf27fcb0388e27b5bc0c0168d121a647ccff7d9a7c294e23188
3
+ metadata.gz: fc711d9de1d42988b5b7dc5728c209d9799824cb29af45e9de02249bf4ad043a
4
+ data.tar.gz: 1acb351deca1c088a1b42cf71a53529163ae99b67ff2f3711af5fa6f7327c055
5
5
  SHA512:
6
- metadata.gz: f80d75f40cf8ae8d2a1651b995ceef40e1e6056a9d6eb64146e8c5a0fd54edfccc7364a1cb401b2c14ba2fdd4103e2d9af8f7b2d756ebcaf651d638b9fd71772
7
- data.tar.gz: 5f50da3541c6fc7ebd502fed79207255bb85765191f2a56e82fc20d71936925fef573690e96eaf56305d035ea594d965317cbcfef2e8c4ca83e57d7b2b152523
6
+ metadata.gz: 8f0f8fe372ce418207057f4e011c9b3aba7c76d3c9b770a0c49685920e0c51f086d870f2491f4cdb9c083185d21e88e3f395d3c0089953f3e60017ceb7ec232f
7
+ data.tar.gz: 7d15054b7ef96c7ba295cb02a32ee7b5362e58409e60550f376f6849e245cd4d1e6386453853ed050f411f3673d79622569679b976e8284384e514e1dcb82921
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.1.0] - 2025-08-22
2
+
3
+ - Handle new Foobara 0.1.0 type declarations
4
+
5
+ ## [0.0.14] - 2025-05-11
6
+
7
+ - Fix bug that incorrectly leaves a model class anonymous if there's a custom type named "model"
8
+
1
9
  ## [0.0.13] - 2025-05-07
2
10
 
3
11
  - Change :authenticate_with_header to be shorter and a tuple
@@ -76,11 +76,24 @@ module Foobara
76
76
  def build_command
77
77
  url_base = root_manifest.metadata["url"].gsub(/\/manifest$/, "")
78
78
 
79
+ domain = Namespace.global.foobara_lookup_domain!(
80
+ manifest_to_import.domain.scoped_full_path,
81
+ mode: Namespace::LookupMode::ABSOLUTE_SINGLE_NAMESPACE
82
+ )
83
+
84
+ inputs_type = nil
85
+ result_type = nil
86
+
87
+ TypeDeclarations.strict_stringified do
88
+ inputs_type = domain.foobara_type_from_declaration(manifest_to_import.inputs_type.relevant_manifest)
89
+ result_type = domain.foobara_type_from_declaration(manifest_to_import.result_type.relevant_manifest)
90
+ end
91
+
79
92
  subclass_args = {
80
93
  url_base:,
81
94
  description: manifest_to_import.description,
82
- inputs: manifest_to_import.inputs_type.relevant_manifest,
83
- result: manifest_to_import.result_type.relevant_manifest,
95
+ inputs: inputs_type,
96
+ result: result_type,
84
97
  possible_errors: manifest_to_import.possible_errors,
85
98
  name: manifest_to_import.reference,
86
99
  base: determine_base_command_class
@@ -82,7 +82,7 @@ module Foobara
82
82
 
83
83
  type = domain.foobara_type_from_strict_stringified_declaration(declaration_data)
84
84
 
85
- if deanonymize_models? && type.extends?(:model)
85
+ if deanonymize_models? && type.extends_type?(BuiltinTypes[:model])
86
86
  Foobara::Model.deanonymize_class(type.target_class)
87
87
  end
88
88
 
metadata CHANGED
@@ -1,28 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-remote-imports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.0.88
18
+ version: 0.1.1
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.0
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 0.1.1
29
+ - - "<"
24
30
  - !ruby/object:Gem::Version
25
- version: 0.0.88
31
+ version: 2.0.0
26
32
  email:
27
33
  - azimux@gmail.com
28
34
  executables: []
@@ -65,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
71
  - !ruby/object:Gem::Version
66
72
  version: '0'
67
73
  requirements: []
68
- rubygems_version: 3.6.2
74
+ rubygems_version: 3.6.9
69
75
  specification_version: 4
70
76
  summary: Used to import commands/entities/whatever from another system into this one.
71
77
  test_files: []