unitsdb 2.2.4 → 2.2.5

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: '098dae7946c10a2e7ed4b5c7f5b3e75e8aed43c0112f9bd49137e629c4c1dfad'
4
- data.tar.gz: c8fc41cfa9f239b892cf5baf4b8febc48b00db6d433c8421f6b1c24a92ef1dcb
3
+ metadata.gz: a8341d69d3ef4df51f2d52e93b9991d89a3d8f9e5dfb3eebd98b935c14cfb4fd
4
+ data.tar.gz: 424704e3b30b3301f42096ae6391b0425011b070aad525b7d53ef6e9af0a532f
5
5
  SHA512:
6
- metadata.gz: e31bda3acc961a0720c039072a6fe13ed94e0790bed425104d455b239569faebd2cb003827ca518c4935e6a89252e0a5b8d4e9d95a37d82a449e7286f62a1bcb
7
- data.tar.gz: 0d0cc478a993d34134c6fc0f5aa9b62275b8d7de8b66df60dc64895fc94accb273356391086beae96e706a1699117217bf89841c58b8f738918fac59b2208e10
6
+ metadata.gz: f60bbeb919a46f632059d745645f31897d0992bf6147dab0acd27a39842e81c60ac3ba26d0ba93546b112f69940886b23fe407b73cd6b71200f54ccf58e4a474
7
+ data.tar.gz: c1c4fa598df86e08eb8d03590c0eccc9070e7029ddd3393b2059bce87fd56f805297926a796bc2a6c326b583e2941ca9e8412d2df00d284f86b517f11f278b5d
@@ -0,0 +1,52 @@
1
+ # Not auto-generated by Cimas — hand-maintained cross-repo trigger.
2
+ name: notify-unitsdb-js
3
+
4
+ # After every unitsdb release (which bumps lib/unitsdb/version.rb on
5
+ # main), dispatch to unitsml/unitsdb-js so it can compile the new
6
+ # version and publish to npm as @unitsml/unitsdb.
7
+ #
8
+ # unitsdb-js's release.yml is idempotent: if a version is already on
9
+ # npm it skips cleanly, so re-running after a transient failure (or
10
+ # re-dispatching) is safe.
11
+
12
+ on:
13
+ push:
14
+ branches: [main]
15
+ paths:
16
+ - "lib/unitsdb/version.rb"
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ dispatch:
23
+ if: contains(github.event.head_commit.message, 'Bump unitsdb to')
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ with:
28
+ fetch-depth: 2
29
+
30
+ - name: Extract released version
31
+ id: ver
32
+ run: |
33
+ set -eu
34
+ VERSION=$(grep -oE 'VERSION = "[^"]+"' lib/unitsdb/version.rb | head -1 | cut -d'"' -f2)
35
+ if [ -z "$VERSION" ]; then
36
+ echo "::error::could not read VERSION from lib/unitsdb/version.rb"
37
+ exit 1
38
+ fi
39
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
40
+ echo "Detected version $VERSION"
41
+
42
+ - name: Dispatch do-release to unitsml/unitsdb-js
43
+ uses: peter-evans/repository-dispatch@v3
44
+ with:
45
+ token: ${{ secrets.UNITSML_CI_PAT_TOKEN }}
46
+ repository: unitsml/unitsdb-js
47
+ event-type: do-release
48
+ client-payload: |
49
+ {
50
+ "version": "${{ steps.ver.outputs.version }}",
51
+ "ruby_ref": "v${{ steps.ver.outputs.version }}"
52
+ }
@@ -51,7 +51,7 @@ module Unitsdb
51
51
  output_path = File.join(@options[:output_dir],
52
52
  "unitsdb-#{@options[:version]}.zip")
53
53
 
54
- Zip::File.open(output_path, Zip::File::CREATE) do |zipfile|
54
+ Zip::File.open(output_path, create: true) do |zipfile|
55
55
  {
56
56
  dimensions: Unitsdb::Dimensions,
57
57
  unit_systems: Unitsdb::UnitSystems,
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Unitsdb
4
- VERSION = "2.2.4"
4
+ VERSION = "2.2.5"
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.
data/unitsdb.gemspec CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency "lutaml-model", "~> 0.8.0"
39
39
  spec.add_dependency "rdf", "~> 3.1"
40
40
  spec.add_dependency "rdf-turtle", "~> 3.1"
41
- spec.add_dependency "rubyzip", "~> 2.3"
41
+ spec.add_dependency "rubyzip", "~> 3.4"
42
42
  spec.add_dependency "table_tennis", "~> 0.0.7"
43
43
  spec.add_dependency "thor", "~> 1.0"
44
44
  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.4
4
+ version: 2.2.5
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-06-29 00:00:00.000000000 Z
11
+ date: 2026-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fuzzy_match
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.3'
89
+ version: '3.4'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.3'
96
+ version: '3.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: table_tennis
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +132,7 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - ".github/workflows/dependent-repos.json"
134
134
  - ".github/workflows/depenedent-gems.yml"
135
+ - ".github/workflows/notify-unitsdb-js.yml"
135
136
  - ".github/workflows/opal.yml"
136
137
  - ".github/workflows/rake.yml"
137
138
  - ".github/workflows/release.yml"