expressir 2.4.58-arm-linux → 2.4.59-arm-linux

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: 2e9037c9969c05edb5084218ef38de0fb46fb70f4f958449437a98f85f3c3edf
4
- data.tar.gz: 75f12526be071f53d82e04dc5b78de697111a9705a872309ae62558331211db8
3
+ metadata.gz: 88b2c4faa26ba40f3ffabb5bb70ac0a5ecbc2ba72cfc891747d9fbd5ee1cedc3
4
+ data.tar.gz: 8b17373bd40394ed1f2e9376206642c0f2ab838460055f2b885c0ecd137d43b7
5
5
  SHA512:
6
- metadata.gz: eec8ce3ffb7afc50f28ebcf654ead836cc2c2e1a0068ad02b7dfbc2e3efcfc98fc763aa4b03d9817a62850c2de23b81d81f3206dab60c9b8527add85ef444b88
7
- data.tar.gz: 3ca00c2a9ffb6b8049b12829d9e9ddec54f8a2f40a2bd665d3d0f418d6671c374b09fa782f474611b8142f65f31c9f94a432ef6e004a2bb53cb25889cbb94661
6
+ metadata.gz: 1c7d02e4374a96ea2729e8551563dd9f25f5becbf967dda7945490bf393f8504125d3af5564ad7eb6405d7fc59472f5a8c5c38bea6c076346b21a267e060fd4d
7
+ data.tar.gz: c82f9f444d570194ecf30baba70a2458fb2b8c5cbca6aa2dffafb925e9912b35745f4992bce11becb33b49dc3784c902e0ec2f300b16ec7f6718aabfc2c5abc7
Binary file
Binary file
Binary file
Binary file
@@ -182,7 +182,12 @@ module Expressir
182
182
  end
183
183
 
184
184
  def format_data_types_enumeration_item(node)
185
- node.id
185
+ return node.id unless node.respond_to?(:remark_items) && Array(node.remark_items).any?
186
+
187
+ [
188
+ node.id,
189
+ *Array(node.remark_items).map { |item| ["\n", format(item)].join },
190
+ ].join
186
191
  end
187
192
 
188
193
  def format_data_types_generic_entity(node)
@@ -91,6 +91,7 @@ module Expressir
91
91
  end,
92
92
  ";",
93
93
  format_inline_tail_remark(node),
94
+ *format_remark_items(node).map { |x| ["\n", x].join },
94
95
  ].join
95
96
  end
96
97
 
@@ -106,6 +107,7 @@ module Expressir
106
107
  " ",
107
108
  format(node.expression),
108
109
  ";",
110
+ *format_remark_items(node).map { |x| ["\n", x].join },
109
111
  ].join
110
112
  end
111
113
 
@@ -218,6 +220,7 @@ module Expressir
218
220
  indent(node.where_rules.map { |x| format(x) }.join("\n")),
219
221
  ]
220
222
  end,
223
+ *format_remark_items(node).map { |x| indent(x) },
221
224
  [
222
225
  "END_ENTITY",
223
226
  ";",
@@ -302,6 +305,7 @@ module Expressir
302
305
  indent(node.statements.map { |x| format(x) }.join("\n"))
303
306
  end,
304
307
  *format_trailing_region_remarks(node, :statements).map { |x| indent(x) },
308
+ *format_remark_items(node).map { |x| indent(x) },
305
309
  [
306
310
  "END_FUNCTION",
307
311
  ";",
@@ -347,6 +351,7 @@ module Expressir
347
351
  node.id,
348
352
  ]
349
353
  end,
354
+ *format_remark_items(node).map { |x| ["\n", x].join },
350
355
  ].join
351
356
  end
352
357
 
@@ -363,6 +368,7 @@ module Expressir
363
368
  ":",
364
369
  " ",
365
370
  format(node.type),
371
+ *format_remark_items(node).map { |x| ["\n", x].join },
366
372
  ].join
367
373
  end
368
374
 
@@ -426,6 +432,7 @@ module Expressir
426
432
  indent(node.statements.map { |x| format(x) }.join("\n"))
427
433
  end,
428
434
  *format_trailing_region_remarks(node, :statements).map { |x| indent(x) },
435
+ *format_remark_items(node).map { |x| indent(x) },
429
436
  [
430
437
  "END_PROCEDURE",
431
438
  ";",
@@ -529,6 +536,7 @@ module Expressir
529
536
  end,
530
537
  # A comment after the last where rule closes the WHERE section.
531
538
  *format_trailing_region_remarks(node, :where_rules).map { |x| indent(x) },
539
+ *format_remark_items(node).map { |x| indent(x) },
532
540
  [
533
541
  "END_RULE",
534
542
  ";",
@@ -611,6 +619,7 @@ module Expressir
611
619
  "",
612
620
  ]
613
621
  end,
622
+ *format_remark_items(node),
614
623
  [
615
624
  "END_SCHEMA",
616
625
  ";",
@@ -667,6 +676,7 @@ module Expressir
667
676
  ";",
668
677
  ].join)
669
678
  end,
679
+ *format_remark_items(node).map { |x| indent(x) },
670
680
  [
671
681
  "END_SUBTYPE_CONSTRAINT",
672
682
  ";",
@@ -693,6 +703,7 @@ module Expressir
693
703
  indent(node.where_rules.map { |x| format(x) }.join("\n")),
694
704
  ]
695
705
  end,
706
+ *format_remark_items(node).map { |x| indent(x) },
696
707
  [
697
708
  "END_TYPE",
698
709
  ";",
@@ -712,6 +723,7 @@ module Expressir
712
723
  end,
713
724
  Array(node.attributes).map { |x| format(x) }.join(", "),
714
725
  ";",
726
+ *format_remark_items(node).map { |x| ["\n", x].join },
715
727
  ].join
716
728
  end
717
729
 
@@ -745,6 +757,7 @@ module Expressir
745
757
  end,
746
758
  format(node.expression),
747
759
  ";",
760
+ *format_remark_items(node).map { |x| ["\n", x].join },
748
761
  ].join
749
762
  end
750
763
 
@@ -757,6 +770,7 @@ module Expressir
757
770
  " ",
758
771
  ].join
759
772
  end,
773
+ *format_remark_items(node).map { |x| ["\n", x].join },
760
774
  ].join
761
775
  end
762
776
  end
@@ -289,6 +289,15 @@ module Expressir
289
289
 
290
290
  remarks
291
291
  end
292
+
293
+ # The tagged remark-item blocks attached to this node
294
+ # (expressir#603: RemarkItem children render with their owners).
295
+ def format_remark_items(node)
296
+ return [] if @no_remarks
297
+ return [] unless node.respond_to?(:remark_items)
298
+
299
+ Array(node.remark_items).map { |item| format(item) }.reject(&:empty?)
300
+ end
292
301
  end
293
302
  end
294
303
  end
@@ -12,14 +12,24 @@ module Expressir
12
12
 
13
13
  # Check if any remark contains newlines
14
14
  has_newlines = node.remarks.any? { |r| r.to_s.include?("\n") }
15
+ remarks_text = node.remarks.join("\n")
15
16
 
16
- if has_newlines
17
+ # The tag is the schema-relative EXPRESS path: node.path is
18
+ # rooted at the ExpFile, whose id is the file path — drop that
19
+ # leading segment so the tag reads like the source form
20
+ # (expressir#603).
21
+ tag = node.path.to_s
22
+ root = node
23
+ root = root.parent while root.respond_to?(:parent) && root.parent
24
+ prefix = "#{root.id}." if root.respond_to?(:id) && root.id
25
+ tag = tag.delete_prefix(prefix) if prefix && tag.start_with?(prefix)
26
+
27
+ if has_newlines || node.remarks.length > 1
17
28
  # Multi-line format: (*"path" remarks *)
18
- remarks_text = node.remarks.join("\n")
19
- "(*\"#{node.path}\"\n#{remarks_text}\n*)"
29
+ "(*\"#{tag}\"\n#{remarks_text}\n*)"
20
30
  else
21
- # Single-line format: --"path"
22
- "--\"#{node.path}\""
31
+ # Single-line format: --"path" text
32
+ "--\"#{tag}\" #{remarks_text}"
23
33
  end
24
34
  end
25
35
  end
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.4.58".freeze
6
+ VERSION = "2.4.59".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.58
4
+ version: 2.4.59
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-07 00:00:00.000000000 Z
11
+ date: 2026-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64