lutaml-express 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lutaml/express/version.rb +1 -1
- metadata +1 -2
- data/spec/express/lutaml_path/document_wrapper_spec.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2afd4694b629baf6292d7af41eae646965d6ec62a25ca3f6aef0421fd78d6662
|
4
|
+
data.tar.gz: bf3746f7f4ef3d07a639ece05c187c0e02a3cf0f73880eafa2bc735607a5798e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2342c4721df180a7d15edbc46ddd10b42cc24333a55e347b12e8cbdb9021530c526a08f273684404217c8b21e57754212d052a04e850977978cf84d3583249b4
|
7
|
+
data.tar.gz: 9de725fc639ec77e601c9b2433fd72b2bb3e9448547d48aa482d7c8d7b723da9326f293c62d311c1c2556e8bda54d2f125cc662b2f29cb7722eed3a0e23ff66e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lutaml-express
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -130,7 +130,6 @@ files:
|
|
130
130
|
- lib/lutaml/express/version.rb
|
131
131
|
- lutaml-express.gemspec
|
132
132
|
- spec/express/express_spec.rb
|
133
|
-
- spec/express/lutaml_path/document_wrapper_spec.rb
|
134
133
|
- spec/express/parsers/exp_spec.rb
|
135
134
|
- spec/fixtures/test.exp
|
136
135
|
- spec/spec_helper.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
RSpec.describe Lutaml::Express::LutamlPath::DocumentWrapper do
|
6
|
-
describe ".parse" do
|
7
|
-
subject(:lutaml_path) { described_class.new(repository) }
|
8
|
-
subject(:serialized_document) do
|
9
|
-
lutaml_path.serialized_document
|
10
|
-
end
|
11
|
-
|
12
|
-
context "when simple diagram without attributes" do
|
13
|
-
let(:repository) do
|
14
|
-
Lutaml::Express::Parsers::Exp.parse(File.new(fixtures_path("test.exp")))
|
15
|
-
end
|
16
|
-
let(:schema) { 'annotated_3d_model_data_quality_criteria_schema' }
|
17
|
-
let(:entities_names) do
|
18
|
-
%w[
|
19
|
-
a3m_data_quality_criteria_representation
|
20
|
-
a3m_data_quality_criterion
|
21
|
-
a3m_data_quality_criterion_specific_applied_value
|
22
|
-
a3m_data_quality_target_accuracy_association
|
23
|
-
a3m_detailed_report_request
|
24
|
-
a3m_summary_report_request_with_representative_value]
|
25
|
-
end
|
26
|
-
|
27
|
-
it "serializes repository attributes" do
|
28
|
-
expect(serialized_document.keys).to(eq(['schemas', schema]))
|
29
|
-
expect(serialized_document['schemas'].map {|n| n['id'] }).to(eq([schema]))
|
30
|
-
end
|
31
|
-
|
32
|
-
it "correctly finds elements by jmespath expression" do
|
33
|
-
expect(serialized_document['schemas'].first['entities']
|
34
|
-
.map {|n| n['id'] }).to(eq(entities_names))
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|