plurimath 0.9.6 → 0.9.8

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: 25137b188abdff732f47c221a2b04e8a5861cd2d642e8496176ff77c6d991f72
4
- data.tar.gz: b1a9c2180b99f077a0c77293785b5b11a5ea76a6b5b1dc35328b6456e1c7664d
3
+ metadata.gz: 275bcf53ad8b9074d9d1057575ea6320b07fd9e38863a1cd233366e675db6025
4
+ data.tar.gz: fa3c94e0fe0ed5b26c9ab5d41008b4b7e5f89bbe3d7b743466bf79fb3b8603ab
5
5
  SHA512:
6
- metadata.gz: e1ecd1523941d106ab5f5903e874a689ae2ee3a74f0cc002fe0e346451f45d339ed83c7bb330af8897770280a3859047809cf6e55b05d738f1953fb1e1ab2ccb
7
- data.tar.gz: 22b67912e8b99d1ceab2e09b50da7638cfca8d329279ddbcc97174cd5beba8315c23802cc99701b80f41cc64b42bd428fff3bed8f081c3900ec6b489061f5c60
6
+ metadata.gz: 001075f0cff216589f70a5f79c14b986b1d1ad6b643f2b5234a91d0158e41cf209d756a363c8041628ee2eb7c398864b5b12878fc6687b2bd71c513a48034ac4
7
+ data.tar.gz: 94c99c28850ff3a7a3e2c0befefc7e4446ccb8252b6f03cce258b71131fa53c2c076cd0ba19821a1099fb10f7392812e63de60001c07e27fb86acbcb04db97f6
@@ -0,0 +1,5 @@
1
+ {
2
+ "repo": [
3
+ "plurimath/plurimath-js"
4
+ ]
5
+ }
@@ -14,3 +14,4 @@ jobs:
14
14
  uses: metanorma/ci/.github/workflows/dependent-rake.yml@main
15
15
  with:
16
16
  command: bundle exec rspec
17
+ repos-json-file: .github/workflows/dependent-repos-ruby.json
@@ -0,0 +1,18 @@
1
+ name: plurimath-js-test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ tags: [ v* ]
7
+ pull_request:
8
+ workflow_dispatch:
9
+ repository_dispatch:
10
+ types: [ release-passed ]
11
+
12
+ jobs:
13
+ rake:
14
+ uses: metanorma/ci/.github/workflows/dependent-rake.yml@main
15
+ with:
16
+ command: npm run build
17
+ matrix_os: '["ubuntu-latest"]'
18
+ repos-json-file: .github/workflows/dependent-repos-js.json
@@ -11,3 +11,14 @@ on:
11
11
  jobs:
12
12
  rake:
13
13
  uses: metanorma/ci/.github/workflows/generic-rake.yml@main
14
+ with:
15
+ # This is to fix Ruby 3.4 on Windows, as per lutaml/lutaml-model#447
16
+ before-setup-ruby: |
17
+ mkdir -p .bundle
18
+ touch .bundle/config
19
+ cat .bundle/config
20
+ echo "---" >> .bundle/config
21
+ echo 'BUNDLE_BUILD__RUBY___LL: "--with-cflags=-std=gnu17"' >> .bundle/config
22
+ cat .bundle/config
23
+ secrets:
24
+ pat_token: ${{ secrets.PLURIMATH_CI_PAT_TOKEN }}
@@ -110,7 +110,7 @@ module Plurimath
110
110
  end
111
111
 
112
112
  rule(:tr) do
113
- ((left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row) >> comma >> space? >> tr.as(:expr)) |
113
+ ((left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row) >> space? >> comma >> space? >> tr.as(:expr)) |
114
114
  (left_right_open_paren.as(:open_tr) >> td.as(:tds_list) >> left_right_close_paren).as(:table_row)
115
115
  end
116
116
 
@@ -66,7 +66,7 @@ module Plurimath
66
66
  separator = "{#{table_attribute(:latex)}}" if environment&.include?("array")
67
67
  left_paren = open_paren&.to_latex(options: options) || "."
68
68
  right_paren = close_paren&.to_latex(options: options) || "."
69
- left = "\\left #{left_paren}\\begin{matrix}"
69
+ left = "\\left #{left_paren.delete_prefix("\\left")}\\begin{matrix}"
70
70
  right = "\\end{matrix}\\right #{right_paren.delete_prefix("\\right")}"
71
71
  "#{left}#{separator}#{latex_content(options: options)}#{right}"
72
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.9.6"
4
+ VERSION = "0.9.8"
5
5
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "plurimath/xml_engine"
4
- require "plurimath/xml_engine/ox/element"
5
4
  require "ox"
6
5
  Ox.default_options = { encoding: "UTF-8" }
7
6
 
@@ -37,3 +36,5 @@ module Plurimath
37
36
  end
38
37
  end
39
38
  end
39
+
40
+ require "plurimath/xml_engine/ox/element"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plurimath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-24 00:00:00.000000000 Z
11
+ date: 2025-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
@@ -116,9 +116,11 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - ".github/workflows/dependent-repos.json"
119
+ - ".github/workflows/dependent-repos-js.json"
120
+ - ".github/workflows/dependent-repos-ruby.json"
120
121
  - ".github/workflows/dependent-tests.yml"
121
122
  - ".github/workflows/gen_docs.yml"
123
+ - ".github/workflows/plurimath_js.yml"
122
124
  - ".github/workflows/rake.yml"
123
125
  - ".github/workflows/release.yml"
124
126
  - ".gitignore"