metanorma-plugin-asciichem 0.1.0 → 0.1.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: 582411f25fabc8527cec867947b12b663e2e3944724910676c56c562e485de3e
4
- data.tar.gz: d49a888d06069c133646bdc2f7e7ecb628662804a508c35858454d27437af862
3
+ metadata.gz: a1e6223e068d96509f6619ac538a85ea541d519ad2e54105854db79cb15baf2a
4
+ data.tar.gz: 2563c0395dce5b0da17e60ddeec8bcfe2fccdef0c8ab89142674c8754481fe43
5
5
  SHA512:
6
- metadata.gz: d51b92da35d3cf24e9d1da8acca09f8d95abf1f98e6ed9aa3b9e8ada5912c9218f8341b1f7fa4627a16e072bf6d270b2b597d8457ced0d6466082c7298d0650a
7
- data.tar.gz: 73213d86ba4cbc8d7c4adbbc91920e55f2a3c67aa3da2989a442c8af26f7c31a3caf7a6a45d0ae56df3f1bf28f6f5738413ed399c2cea56369511f1b8e2cfc52
6
+ metadata.gz: 9bb88c0779ce121450714ecc60ad45b5acd664a47307fd22564a3a800999f471cb17aa648d1d7acc94f9c1a4826b260643c505f8c01d76596968d2e98878aa5e
7
+ data.tar.gz: 5c2cf2853e2bebfbb30b98e43ff35b78763c8eb0c37f27a7b359419e702da31f33bf83e52f997160c260299671f1ebe9bd8eaa7a8250c6dd16ab156576ad1fc8
data/CHANGELOG.md CHANGED
@@ -4,19 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.1.1] - 2026-09-22
8
+
7
9
  ### Changed
8
10
 
9
- - Requires asciichem >= 0.29.2 (relaton-bib `< 3`), enabling
10
- co-resolution with current metanorma gems; metanorma-standoc is
11
- now a development dependency.
12
- - End-to-end standoc compile wired into the suite
13
- (`standoc_spec.rb`): `[chem]` → `<formula><stem type="MathML">`,
14
- dataset bibitems verbatim in `<references normative="false">`,
15
- InChIKey anchors.
16
- - Citation anchors are derived from the emitted bibitem XML (works
17
- under both relaton-bib major lines) instead of vendor object APIs.
11
+ - Dependency floors raised to the suite-validated versions,
12
+ pessimistically: `asciichem ~> 0.29, >= 0.29.2`, `nokogiri
13
+ ~> 1.18`; `asciidoctor` unchanged.
14
+
15
+ ## [0.1.0] - 2026-09-22
18
16
 
19
- ## [0.1.0] - 2026-09-16
17
+ First release, published under the final name and namespace (the
18
+ rename from the pre-release `asciichem/metanorma-asciichem` layout
19
+ happened before anything shipped, so it is invisible to users).
20
20
 
21
21
  ### Added
22
22
 
@@ -25,24 +25,17 @@ All notable changes to this project will be documented in this file.
25
25
  Metanorma semantic XML). Block ids and titles carry over; invalid
26
26
  sources log an error and keep the block as sourcecode.
27
27
  - `chem:[]` inline macro (target and attribute forms) for inline
28
- chemistry.
28
+ chemistry, emitting the core-stem node shape so metanorma
29
+ converters dispatch it correctly.
29
30
  - Substance citations: `@cite`-annotated molecules in `[chem]` blocks
30
31
  resolve through `AsciiChem::Citation` to dataset-type Relaton
31
32
  bibitems, one per (source, substance), deduplicated, anchored by
32
33
  InChIKey, appended as a `[bibliography]` section.
33
34
  - `:asciichem-cache-dir:` document attribute for offline,
34
35
  reproducible citation resolution.
35
-
36
- ## [0.1.0-renamed] - 2026-09-17
37
- ### Renamed
38
-
39
- - The gem moves to the metanorma org as
40
- `metanorma-plugin-asciichem` (from asciichem/metanorma-asciichem),
41
- following the plugin-family convention (lutaml, glossarist,
42
- plantuml). Namespace is now `Metanorma::Plugin::Asciichem` with
43
- lib at `metanorma/plugin/asciichem`; the require-by-name entry is
44
- `metanorma-plugin-asciichem`. Per the plugin contract the gem no
45
- longer self-registers with Asciidoctor — metanorma-standoc
46
- requires and registers it (as it does for lutaml/glossarist).
47
- Not released under the previous name, so the rename is invisible
48
- to users.
36
+ - End-to-end metanorma-standoc compile spec (`standoc_spec.rb`);
37
+ per the plugin contract the gem exposes extension classes and the
38
+ host (metanorma-standoc) registers them, as it does for
39
+ lutaml/glossarist.
40
+ - Citation anchors are derived from the emitted bibitem XML (works
41
+ under both relaton-bib major lines) instead of vendor object APIs.
@@ -3,7 +3,7 @@
3
3
  module Metanorma
4
4
  module Plugin
5
5
  module Asciichem
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
  end
8
8
  end
9
9
  end
@@ -33,9 +33,12 @@ Gem::Specification.new do |spec|
33
33
  end
34
34
  spec.require_paths = ['lib']
35
35
 
36
- spec.add_dependency 'asciichem', '>= 0.29.2'
36
+ # Floors are the versions the suite validates against (pessimistic
37
+ # ~>); raise them only with a full-suite run. asciichem needs
38
+ # >= 0.29.2 (relaton-bib widening) inside the 0.29 line.
39
+ spec.add_dependency 'asciichem', '~> 0.29', '>= 0.29.2'
37
40
  spec.add_dependency 'asciidoctor', '~> 2.0'
38
- spec.add_dependency 'nokogiri', '~> 1.16'
41
+ spec.add_dependency 'nokogiri', '~> 1.18'
39
42
 
40
43
  # metanorma-standoc lives in the Gemfile dev group: it is the
41
44
  # integration-test backend (spec/metanorma/plugin/asciichem/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-asciichem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -13,6 +13,9 @@ dependencies:
13
13
  name: asciichem
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.29'
16
19
  - - ">="
17
20
  - !ruby/object:Gem::Version
18
21
  version: 0.29.2
@@ -20,6 +23,9 @@ dependencies:
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '0.29'
23
29
  - - ">="
24
30
  - !ruby/object:Gem::Version
25
31
  version: 0.29.2
@@ -43,14 +49,14 @@ dependencies:
43
49
  requirements:
44
50
  - - "~>"
45
51
  - !ruby/object:Gem::Version
46
- version: '1.16'
52
+ version: '1.18'
47
53
  type: :runtime
48
54
  prerelease: false
49
55
  version_requirements: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: '1.16'
59
+ version: '1.18'
54
60
  description: 'Adds [chem] blocks and chem:[] inline macros to Metanorma AsciiDoc:
55
61
  chemistry written in AsciiChem parses to MathML for rendering, and @cite-annotated
56
62
  molecules resolve to dataset-type Relaton bibitems - one per (source, substance),