plurimath 0.9.1 → 0.9.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: 23b873e930a70f896da2c23d680e12b80ab437aa7be601c0b9264809ad58b453
4
- data.tar.gz: c17f49fef5b92abc2ffa5f95cfcf252507dce743870421924e1c5fe3b4ca0c2a
3
+ metadata.gz: e88ad9f1e0f653ba649b18558767f46e2aff74f317875248370f6df63d1f5939
4
+ data.tar.gz: 06d6b2d10f0874ff134ec1879d40cd507030d2115a4a5961c1259435db160493
5
5
  SHA512:
6
- metadata.gz: 9ea21eb16322ef07c1afccf3d3d59636762071984022f95cff1c617322631c3c827c7810211a223cd1eaa43d4a375bdf1773e58d1112793d9633d5fbd09e40f0
7
- data.tar.gz: e23655e5cec80451a867d4c30ad5001e363b62da5159f04f836a0b1b55d3483c106ae6b5bb4ece4f5ea249956942e70fbf431682edbeaed0afcff4a71fb50f37
6
+ metadata.gz: 606a945c8a2d9d30e242162f0bff29db50eed474f6b527b746f61d3ba7937e602e0033cfec81e92c604e49b0424c1ed0c7546ef9f77bd46d19d1c0ce59b09107
7
+ data.tar.gz: 434c78d3b2731056f5ed0d94342c18acda6b4c3f851a225978139ce91cf1fd53b2e091569e1c0c61f0aea865817bcd99126eeae6578e6a83c74ae120ed9b1b69
@@ -0,0 +1,5 @@
1
+ {
2
+ "repo": [
3
+ "unitsml/unitsml-ruby"
4
+ ]
5
+ }
@@ -0,0 +1,16 @@
1
+ name: dependent-gems-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: bundle exec rspec
@@ -344,6 +344,7 @@ module Plurimath
344
344
  :@temp_mathml_order,
345
345
  :@using_default,
346
346
  :@displaystyle,
347
+ :@__encoding,
347
348
  :@__ordered,
348
349
  :@unitsml,
349
350
  :@__mixed,
@@ -415,7 +415,7 @@ module Plurimath
415
415
  end
416
416
 
417
417
  def mstyle_value=(value)
418
- return if value.empty?
418
+ return if value.nil? || value.empty?
419
419
 
420
420
  update(
421
421
  filter_values(
@@ -238,7 +238,7 @@ module Plurimath
238
238
  end
239
239
 
240
240
  def mstyle_value=(value)
241
- return if value.empty?
241
+ return if value.nil? || value.empty?
242
242
 
243
243
  update(
244
244
  replace_order_with_value(
@@ -36,8 +36,11 @@ module Plurimath
36
36
  end
37
37
 
38
38
  def value=(content)
39
- internal_content = updated_temp_mathml_values.flatten.map(&:to_ms_value)
40
- @parameter_one = [internal_content, content.is_a?(String) ? content : content].flatten.compact.join(" ")
39
+ temp_content = updated_temp_mathml_values.flatten.map(&:to_ms_value)
40
+ @parameter_one = [
41
+ temp_content,
42
+ content&.empty? ? nil : content,
43
+ ].flatten.compact.join(" ")
41
44
  end
42
45
 
43
46
  def mi_value=(value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
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.1
4
+ version: 0.9.2
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-03-17 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
@@ -116,6 +116,8 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - ".github/workflows/dependent-repos.json"
120
+ - ".github/workflows/dependent-tests.yml"
119
121
  - ".github/workflows/gen_docs.yml"
120
122
  - ".github/workflows/rake.yml"
121
123
  - ".github/workflows/release.yml"