foobara-typescript-remote-command-generator 1.2.0 → 1.2.1

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: 9f783af32070cfcdc33c70d34c1b755a66a0a6bb3df7b7e8697345bdc1d148f7
4
- data.tar.gz: fdcfa71700d34b3c42163b586fc2f8cb1c90f420bef3fb76f7a8a5a8d29e6423
3
+ metadata.gz: acd95f1d6e58abba0e5c2498107a8a66d304fe3d79e96247c404c6a7fd55cb46
4
+ data.tar.gz: fdf0f9918b4c74941322ed5fdf3c750deaf47a1db6a4255475e3c980ec9f0862
5
5
  SHA512:
6
- metadata.gz: b5b5d35cc80f88622f2a4ea321574a7af55e9c61ec7bde32d42761a9d9511af07ced97894f4905962bb1803c1871d9a8ab4c9c83722df5caefffe7342b90e474
7
- data.tar.gz: 6d0a1fcb787dc719a330bd58953d42e387f931b35a2eb3d6168ab0d0dfbdec166a1f2215339ea7046b3edfc00473365cdca75e6846408014ed96a3f04d6ef3d8
6
+ metadata.gz: 021b3c0a4c20daa2ba07a563b62aa2cf714e3108cab6d7441f875bbcd2cdee45e68eb5be99c17c0760993e245f065d7f40578c5997b5d0c35a251e590200f8dd
7
+ data.tar.gz: 27b3915c5fea3ef8770c26d16aff9ff4309cd3f031e4fd4a6bfd61f6fd81191defd7dad6e54e311a37825ade623ae4402b3c946ed1cbc5f99e97a0de9bd18173
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.2.1] - 2025-12-19
2
+
3
+ - Handle some foobara_delegate deprecation warnings
4
+
1
5
  ## [1.2.0] - 2025-11-06
2
6
 
3
7
  - If an attribute isn't required but has a default, it will have a non-required create
@@ -18,11 +18,13 @@ module Foobara
18
18
  @domain_generator ||= Services::DomainGenerator.new(domain)
19
19
  end
20
20
 
21
- foobara_delegate :organization_generator, :domain_name, :organization_name, to: :domain_generator
21
+ def organization_generator = domain_generator.organization_generator
22
+ def domain_name = domain_generator.domain_name
23
+ def organization_name = domain_generator.organization_name
22
24
 
23
25
  def errors_in_this_namespace
24
26
  @errors_in_this_namespace ||= possible_errors.values.map(&:error).uniq.sort_by(&:error_name).select do |error|
25
- error.parent&.path&.map(&:to_s) == path.map(&:to_s)
27
+ error.parent&.manifest_path&.map(&:to_s) == manifest_path.map(&:to_s)
26
28
  end.map do |error_manifest|
27
29
  Services::ErrorGenerator.new(error_manifest)
28
30
  end
@@ -70,7 +70,7 @@ module Foobara
70
70
  @organization_generator ||= OrganizationGenerator.new(domain_manifest.organization)
71
71
  end
72
72
 
73
- foobara_delegate :organization_name, to: :organization_generator
73
+ def organization_name = organization_generator.organization_name
74
74
  end
75
75
  end
76
76
  end
@@ -41,7 +41,9 @@ module Foobara
41
41
  end
42
42
 
43
43
  def context_type_declaration
44
- @context_type_declaration ||= Manifest::TypeDeclaration.new(root_manifest, [*path, :context_type_declaration])
44
+ @context_type_declaration ||= Manifest::TypeDeclaration.new(
45
+ root_manifest, [*manifest_path, :context_type_declaration]
46
+ )
45
47
  end
46
48
 
47
49
  def context_ts_type
@@ -153,9 +153,8 @@ module Foobara
153
153
  ts_instance_full_path
154
154
  end
155
155
 
156
- foobara_delegate :organization_name,
157
- :domain_name,
158
- to: :relevant_manifest
156
+ def organization_name = relevant_manifest.organization_name
157
+ def domain_name = relevant_manifest.domain_name
159
158
 
160
159
  def import_path
161
160
  if import_path_array.size == 1
@@ -394,12 +393,15 @@ module Foobara
394
393
  dependency_group.non_colliding_type(generator)
395
394
  end
396
395
 
396
+ # Files generator checks that the relevant_manifest is the same but this is faster
397
397
  def ==(other)
398
- self.class == other.class && path == other.path && root_manifest == other.root_manifest
398
+ self.class == other.class &&
399
+ manifest_path == other.manifest_path &&
400
+ root_manifest == other.root_manifest
399
401
  end
400
402
 
401
403
  def hash
402
- path.hash
404
+ manifest_path.hash
403
405
  end
404
406
 
405
407
  def path_to_root
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-typescript-remote-command-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi