foobara-typescript-remote-command-generator 1.1.0 → 1.1.2

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: db13480080256230a0ee361598357093dd46bbcdf8df77c4f2b1bbfed50b60a9
4
- data.tar.gz: 2a31788c9f7d961562a2464727e041a268beaa4af21a13e9c6ec67bea9ba1eeb
3
+ metadata.gz: b0438fe657fab016fa3afdf25448e54fe00b5dde8dd019bac8dc7fcbe498c999
4
+ data.tar.gz: 17e37d6e0b59083d9fdc4408fd7006bd68eb2fef44c87f3cdbe2694b982be3bb
5
5
  SHA512:
6
- metadata.gz: 2857104d038b376a8110ac80110241c36f3a93c4d50032fb2e2b2f2b4403cd3ec8777cfd687fe498d4e54381544eeedd0b0dec0e4119aca841bc564e9e926754
7
- data.tar.gz: '09a6db101684a17949ce423d72733db28ca8e44eca892033a992de66c37947b92c5f04f29eef659f2b17a1fe3deb04c96124452dc89f77102bd2ed5720833699'
6
+ metadata.gz: 671c4948a97424e330c1104bd4c9cdc238aecc43c639ddeef9b436d1c496df60871b4b2c401a39a8824575ebaa0546af662966d41db97022aa18cc9498a4c754
7
+ data.tar.gz: 31adaca051c4a4e1ab642ef0877f9c4e1c4d5cc162c230d4bc668721b6221e9a5a19c2e55059c926b4dc218ca2bd6b78b93afb16f287139b2f9c673046346dab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.1.2] - 2025-09-27
2
+
3
+ - Fix busted Atom/Aggregate entity import generation
4
+
5
+ ## [1.1.1] - 2025-08-25
6
+
7
+ - Improve location of generated types and their errors
8
+
1
9
  ## [1.1.0] - 2025-08-22
2
10
 
3
11
  - Handle Foobara 0.1.0 type declarations
data/README.md CHANGED
@@ -44,6 +44,15 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
44
44
  version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
45
45
  push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46
46
 
47
+ ### Updating the test fixture manifest JSON files
48
+
49
+ * answer-bot-manifest.json is created from the ai-rack project
50
+ * auth-manifest.json is created from the blog-rails project
51
+ * foobara-manifest is created from the playground-be project
52
+ * detached-manifest is created from the todo-list-backend
53
+
54
+ These were generated with http://localhost:9292/manifest?include_processors=true (or port 3000 for the rails ones)
55
+
47
56
  ## Contributing
48
57
 
49
58
  Bug reports and pull requests are welcome on GitHub
@@ -43,6 +43,10 @@ module Foobara
43
43
  *prefix, name = scoped_full_path
44
44
  [*prefix, "#{name}Aggregate"]
45
45
  end
46
+
47
+ def import_destructure
48
+ "{ #{scoped_short_name}Aggregate }"
49
+ end
46
50
  end
47
51
  end
48
52
  end
@@ -41,6 +41,10 @@ module Foobara
41
41
  *prefix, name = scoped_full_path
42
42
  [*prefix, "#{name}Atom"]
43
43
  end
44
+
45
+ def import_destructure
46
+ "{ #{scoped_short_name}Atom }"
47
+ end
44
48
  end
45
49
  end
46
50
  end
@@ -11,16 +11,20 @@ module Foobara
11
11
 
12
12
  basename = "#{error_name}.ts".split("::")
13
13
 
14
- case parent
15
- when OrganizationGenerator, DomainGenerator, CommandGenerator
16
- [*p.target_dir, "errors", *basename]
17
- when nil
18
- # :nocov:
19
- raise "Expected #{error_name} to have a parent but it did not"
20
- # :nocov:
21
- else
22
- [*p.target_dir, *basename]
23
- end
14
+ prefix = case p
15
+ when OrganizationGenerator, DomainGenerator, CommandGenerator
16
+ [*p.target_dir, "errors"]
17
+ when TypeGenerator
18
+ [*p.target_dir, p.type_short_name, "errors"]
19
+ when nil
20
+ # :nocov:
21
+ raise "Expected #{error_name} to have a parent but it did not"
22
+ # :nocov:
23
+ else
24
+ p.target_dir
25
+ end
26
+
27
+ [*prefix, *basename]
24
28
  end
25
29
 
26
30
  def error_base_class
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.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.1
18
+ version: 0.1.14
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 0.1.1
28
+ version: 0.1.14
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: 2.0.0