unitsdb 2.2.5 → 2.2.6

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: a8341d69d3ef4df51f2d52e93b9991d89a3d8f9e5dfb3eebd98b935c14cfb4fd
4
- data.tar.gz: 424704e3b30b3301f42096ae6391b0425011b070aad525b7d53ef6e9af0a532f
3
+ metadata.gz: a418f16f99743a63da962323a1fe62e63fed756c6592a86388b0af76fdd63a6b
4
+ data.tar.gz: 3b658e4d2575c24d4c02d7b3920b638f68ec635870722a498e04ba8874415070
5
5
  SHA512:
6
- metadata.gz: f60bbeb919a46f632059d745645f31897d0992bf6147dab0acd27a39842e81c60ac3ba26d0ba93546b112f69940886b23fe407b73cd6b71200f54ccf58e4a474
7
- data.tar.gz: c1c4fa598df86e08eb8d03590c0eccc9070e7029ddd3393b2059bce87fd56f805297926a796bc2a6c326b583e2941ca9e8412d2df00d284f86b517f11f278b5d
6
+ metadata.gz: 42bea9f0cdd098714a1696e9e9838409aa18274dd2dd42efd80a42f9e05d7e9d8bfbdf2fd20772ee1c00ece0b1fe2df098b77b79164f6bce71c6128afd40b69c
7
+ data.tar.gz: 5d49a53a80f736cb46b6b59e0148ebe98a93410aadb306e16f64731c7b42ad7cf74904538810a55c01d92250372294f4238b24d630e4ba73ad64f9b3a179a9e0
data/lib/unitsdb/ucum.rb CHANGED
@@ -11,7 +11,7 @@ module Unitsdb
11
11
  attribute :code, :string
12
12
  attribute :dimension, :string
13
13
  attribute :name, :string
14
- attribute :print_symbol, :string, raw: true
14
+ attribute :print_symbol, :string
15
15
  attribute :property, :string
16
16
 
17
17
  xml do
@@ -20,7 +20,7 @@ module Unitsdb
20
20
  map_attribute "CODE", to: :code
21
21
  map_attribute "dim", to: :dimension
22
22
  map_element "name", to: :name
23
- map_element "printSymbol", to: :print_symbol
23
+ map_element "printSymbol", to: :print_symbol, raw: :content
24
24
  map_element "property", to: :property
25
25
  end
26
26
 
@@ -53,7 +53,7 @@ module Unitsdb
53
53
  attribute :code_sensitive, :string
54
54
  attribute :code, :string
55
55
  attribute :name, :string
56
- attribute :print_symbol, :string, raw: true
56
+ attribute :print_symbol, :string
57
57
  attribute :value, UcumPrefixValue
58
58
 
59
59
  xml do
@@ -61,7 +61,7 @@ module Unitsdb
61
61
  map_attribute "Code", to: :code_sensitive
62
62
  map_attribute "CODE", to: :code
63
63
  map_element "name", to: :name
64
- map_element "printSymbol", to: :print_symbol
64
+ map_element "printSymbol", to: :print_symbol, raw: :content
65
65
  map_element "value", to: :value
66
66
  end
67
67
 
@@ -145,7 +145,7 @@ module Unitsdb
145
145
  attribute :is_special, :string
146
146
  attribute :klass, :string
147
147
  attribute :name, :string, collection: true
148
- attribute :print_symbol, :string, raw: true
148
+ attribute :print_symbol, :string
149
149
  attribute :property, :string
150
150
  attribute :value, UcumUnitValue
151
151
 
@@ -159,7 +159,7 @@ module Unitsdb
159
159
  map_attribute "class", to: :klass
160
160
 
161
161
  map_element "name", to: :name
162
- map_element "printSymbol", to: :print_symbol
162
+ map_element "printSymbol", to: :print_symbol, raw: :content
163
163
  map_element "property", to: :property
164
164
  map_element "value", to: :value
165
165
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unitsdb
4
- VERSION = "2.2.5"
4
+ VERSION = "2.2.6"
5
5
 
6
6
  # The version of the bundled UnitsDB data (from the data/ submodule).
7
7
  # This version corresponds to a tag/commit in https://github.com/unitsml/unitsdb.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unitsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-17 00:00:00.000000000 Z
11
+ date: 2026-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match