expressir 2.1.2 → 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 +4 -4
- data/.github/workflows/validate_schemas.yml +48 -0
- data/lib/expressir/express/cache.rb +1 -1
- data/lib/expressir/express/parser.rb +1 -1
- data/lib/expressir/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6332097442bcc1944b232cb35d7087a77d53b6e5c4c774dfd8858b5e7e844d12
|
4
|
+
data.tar.gz: ba77289decd02d53fd3af744b2285f4af560b080042024dedffba71a377768cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -340,7 +340,7 @@ module Expressir
|
|
340
340
|
rule(:simpleExpression) { (term >> (addLikeOp.as(:operator) >> term).as(:item).repeat.as(:rhs)).as(:simpleExpression) }
|
341
341
|
rule(:simpleFactor) do
|
342
342
|
(
|
343
|
-
aggregateInitializer | entityConstructor | interval | queryExpression |
|
343
|
+
simpleFactorExpression | aggregateInitializer | entityConstructor | interval | queryExpression |
|
344
344
|
simpleFactorUnaryExpression | enumerationReference
|
345
345
|
).as(:simpleFactor)
|
346
346
|
end
|
data/lib/expressir/version.rb
CHANGED
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.
|
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
|
+
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"
|