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 +4 -4
- data/CHANGELOG.md +4 -0
- data/src/remote_generator/services/command_generator.rb +4 -2
- data/src/remote_generator/services/domain_generator.rb +1 -1
- data/src/remote_generator/services/error_generator.rb +3 -1
- data/src/remote_generator/services/typescript_from_manifest_base_generator.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acd95f1d6e58abba0e5c2498107a8a66d304fe3d79e96247c404c6a7fd55cb46
|
|
4
|
+
data.tar.gz: fdf0f9918b4c74941322ed5fdf3c750deaf47a1db6a4255475e3c980ec9f0862
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 021b3c0a4c20daa2ba07a563b62aa2cf714e3108cab6d7441f875bbcd2cdee45e68eb5be99c17c0760993e245f065d7f40578c5997b5d0c35a251e590200f8dd
|
|
7
|
+
data.tar.gz: 27b3915c5fea3ef8770c26d16aff9ff4309cd3f031e4fd4a6bfd61f6fd81191defd7dad6e54e311a37825ade623ae4402b3c946ed1cbc5f99e97a0de9bd18173
|
data/CHANGELOG.md
CHANGED
|
@@ -18,11 +18,13 @@ module Foobara
|
|
|
18
18
|
@domain_generator ||= Services::DomainGenerator.new(domain)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
|
|
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&.
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
157
|
-
|
|
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 &&
|
|
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
|
-
|
|
404
|
+
manifest_path.hash
|
|
403
405
|
end
|
|
404
406
|
|
|
405
407
|
def path_to_root
|