expressir 2.1.3 → 2.1.4

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: 8748267e0eee4976d8920a39894eb6ecc70439b0c3b54acd224ec2b5511a8726
4
- data.tar.gz: 06f7292f40061e983550ce9761585fe13dc33f2fa3aacda52f9310b6bd2e964c
3
+ metadata.gz: 6332097442bcc1944b232cb35d7087a77d53b6e5c4c774dfd8858b5e7e844d12
4
+ data.tar.gz: ba77289decd02d53fd3af744b2285f4af560b080042024dedffba71a377768cc
5
5
  SHA512:
6
- metadata.gz: b714aac2b8a1ddf5561e45998d06a99b11dec2b45c0403984b4c4c4e245d4d8d39b4166e590d9a0d9e098da41ed6a13525386bc13bea9334e5fbce7295518d74
7
- data.tar.gz: cef3bcbdf1329cd2a9c2f2aaba1c79f1038af1ffb62c8ee97efdf652dc1162aea3152e9348cc3d8c3472c333aeda93d1e438c097b368091cb3f34bdeaf5e580d
6
+ metadata.gz: 8570065d318a194afada69883530b4352695c5338dbddec69c3c63859a2352ba0a6c6eaf28dddc3025cdc18ea5e079e1a0cc3d3a35cc87161774912570e70f08
7
+ data.tar.gz: 7af0380673d43c089b61f7845a3a4edaf3c824e1533f9703c1e2108fcf339f388fb25e449e34a109168328aedbf5cbddf54023b0b6d919298ba336011cb03ced
@@ -0,0 +1,48 @@
1
+ name: "validate_schemas"
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ concurrency:
10
+ group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ schemas:
15
+ name: Validate schemas
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ test-group:
21
+ [
22
+ 'iso-10303/schemas-srl.yml',
23
+ 'iso-10303/schemas_module.yml',
24
+ 'iso-10303/schemas_bom.yml',
25
+ ]
26
+
27
+ steps:
28
+ - name: Checkout
29
+ uses: actions/checkout@v4
30
+
31
+ - name: Checkout
32
+ uses: actions/checkout@v4
33
+ with:
34
+ repository: 'metanorma/iso-10303'
35
+ path: iso-10303
36
+ token: ${{ secrets.LUTAML_CI_PAT_TOKEN }}
37
+
38
+ - name: Install Ruby
39
+ uses: ruby/setup-ruby@master
40
+ with:
41
+ ruby-version: 3.2
42
+ bundler-cache: true
43
+ cache-version: 0 # Increment this number if you need to re-download cached gems
44
+
45
+ - name: Validate schemas ${{ matrix.test-group }}
46
+ run: |
47
+ yq '.schemas[].path | sub("schemas", "iso-10303/schemas")' ${{ matrix.test-group }} | xargs bundle exec ./exe/expressir validate
48
+
@@ -37,7 +37,7 @@ module Expressir
37
37
 
38
38
  yaml_compressed = File.binread(file)
39
39
  yaml = Zlib::Inflate.inflate(yaml_compressed)
40
- hash = YAML.safe_load(yaml)
40
+ hash = YAML.safe_load(yaml, permitted_classes: [Symbol])
41
41
  cache = Model::ModelElement.from_hash(hash, root_path: root_path)
42
42
 
43
43
  if cache.version != version
@@ -1,3 +1,3 @@
1
1
  module Expressir
2
- VERSION = "2.1.3".freeze
2
+ VERSION = "2.1.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-29 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid
@@ -64,6 +64,7 @@ files:
64
64
  - ".github/workflows/rake.yml"
65
65
  - ".github/workflows/release.yml"
66
66
  - ".github/workflows/stress.yml"
67
+ - ".github/workflows/validate_schemas.yml"
67
68
  - ".gitignore"
68
69
  - ".hound.yml"
69
70
  - ".rspec"