unitsdb 2.2.11 → 2.2.13

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.
@@ -27,7 +27,7 @@ module Unitsdb
27
27
 
28
28
  DATABASE_FILES = REQUIRED_DATABASE_FILES.merge(OPTIONAL_DATABASE_FILES).freeze
29
29
 
30
- SUPPORTED_SCHEMA_VERSIONS = %w[2.0.0 2.1.0].freeze
30
+ SUPPORTED_SCHEMA_VERSIONS = %w[2.0.0 2.1.0 2.2.0].freeze
31
31
 
32
32
  # Transitional: 2.1.0 adds optional canonical_conversion/operations
33
33
  # fields only — 2.0.0 data remains valid.
@@ -6,6 +6,7 @@ module Unitsdb
6
6
  attribute :quantity_type, :string
7
7
  attribute :names, LocalizedString, collection: true
8
8
  attribute :short, :string
9
+ attribute :equivalence_class, :string
9
10
  attribute :unit_references, UnitReference, collection: true
10
11
  attribute :dimension_reference, DimensionReference
11
12
  attribute :references, ExternalReference, collection: true
@@ -4,6 +4,7 @@ module Unitsdb
4
4
  class QuantityReference < Identifier
5
5
  attribute :id, :string
6
6
  attribute :type, :string
7
+ attribute :primary, :boolean
7
8
  end
8
9
 
9
10
  Config.register_model(QuantityReference, id: :quantity_reference)
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unitsdb
4
- VERSION = "2.2.11"
4
+ VERSION = "2.2.13"
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.
8
- UNITS_DATA_VERSION = "2.1.1"
8
+ UNITS_DATA_VERSION = "2.2.0"
9
9
  end
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.11
4
+ version: 2.2.13
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-10-28 00:00:00.000000000 Z
11
+ date: 2026-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match