coradoc-mirror 0.1.10 → 0.1.11

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: 4d7f1f75e597c4f6a4afe4b9d290d219ee3563b425dc31583918623f8228d048
4
- data.tar.gz: 408570af8c07418f349e96c129d07f0f21b8ccb9100f7f3aee6a9bae5727443f
3
+ metadata.gz: 43c80d725ac86ec0dfa4719fb98584b1bc50aab0ac82944b7568f1b4c12cb440
4
+ data.tar.gz: 7e1c597a0fb7e985ccf8b3c5b8a9db70e457b897e9e2a98eea9fe1f485c272e1
5
5
  SHA512:
6
- metadata.gz: f2091e8e24d6906ed7b2e40ad53538334d7cabc80a4f480f667b8e343c0e2670866ae50c13550e95bf2b08aa1c79bf629387195503688a16b8ee064b7f3994e3
7
- data.tar.gz: 7e970c3b58e0a6824e1b9eb967cbb5bf8383ac88f9833334874bbf131771a1a571ab9bda4d38bd70a99f8ab8e3292e2c6a1f0cc6f082187c3e76683b37e90236
6
+ metadata.gz: 44dad60806876f957aa41a3d9082d54edbf016d80b33ea778d4a3685833036a90fc9cbd5ae86f7f6c8840ca429310f6d7648e7cc7cf15a922ac639a248c68d5d
7
+ data.tar.gz: 3ef7db968a39167ff36ef656963e3ead178dcde044e1d285df053a6ff5ec02fd02b25d698f923ba691fd8df8665777776246d48a45556fcf09f87c056f102dff
@@ -22,6 +22,8 @@ module Coradoc
22
22
  Node::Include::Attrs.new(
23
23
  target: element.target,
24
24
  tags: tags_value(options),
25
+ tags_wildcard: options&.tags_wildcard,
26
+ tags_inverted: options&.tags_inverted,
25
27
  lines: options&.lines_spec,
26
28
  leveloffset: leveloffset_value(options),
27
29
  indent: options&.indent,
@@ -30,6 +30,12 @@ module Coradoc
30
30
  true
31
31
  end
32
32
 
33
+ # Mirror JSON carries include edges as typed nodes — graph-mode
34
+ # documents round-trip losslessly.
35
+ def preserves_unresolved_includes?
36
+ true
37
+ end
38
+
33
39
  def handles_model?(_model)
34
40
  false
35
41
  end
@@ -29,6 +29,12 @@ module Coradoc
29
29
  true
30
30
  end
31
31
 
32
+ # Mirror YAML carries include edges as typed nodes — graph-mode
33
+ # documents round-trip losslessly.
34
+ def preserves_unresolved_includes?
35
+ true
36
+ end
37
+
32
38
  def handles_model?(_model)
33
39
  false
34
40
  end
@@ -632,6 +632,8 @@ module Coradoc
632
632
  class Attrs < Lutaml::Model::Serializable
633
633
  attribute :target, :string
634
634
  attribute :tags, :string, collection: true
635
+ attribute :tags_wildcard, :boolean
636
+ attribute :tags_inverted, :boolean
635
637
  attribute :lines, :string
636
638
  attribute :leveloffset, :string
637
639
  attribute :indent, :integer
@@ -641,6 +643,8 @@ module Coradoc
641
643
  key_value do
642
644
  map 'target', to: :target
643
645
  map 'tags', to: :tags
646
+ map 'tags_wildcard', to: :tags_wildcard
647
+ map 'tags_inverted', to: :tags_inverted
644
648
  map 'lines', to: :lines
645
649
  map 'leveloffset', to: :leveloffset
646
650
  map 'indent', to: :indent
@@ -22,8 +22,8 @@ module Coradoc
22
22
 
23
23
  CoreModel::IncludeOptions.new(
24
24
  tags: Array(attrs.tags),
25
- tags_wildcard: attrs.tags == ['*'],
26
- tags_inverted: attrs.tags == ['**'],
25
+ tags_wildcard: attrs.tags_wildcard || false,
26
+ tags_inverted: attrs.tags_inverted || false,
27
27
  lines_spec: attrs.lines,
28
28
  leveloffset: parse_leveloffset(attrs.leveloffset),
29
29
  indent: attrs.indent,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Coradoc
4
4
  module Mirror
5
- VERSION = '0.1.10'
5
+ VERSION = '0.1.11'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coradoc-mirror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.