lutaml 0.5.1 → 0.7.1
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/lutaml_path/document_wrapper.rb +1 -1
- data/lib/lutaml/express/lutaml_path/formatter.rb +6 -6
- data/lib/lutaml/parser.rb +7 -4
- data/lib/lutaml/version.rb +1 -1
- data/lutaml.gemspec +4 -3
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2372cde172cebedf126a9b7a5fe7c5804f01665edf1c0df8e6ec37ed331123b6
|
4
|
+
data.tar.gz: bdadc4307551438db682b0ada9df027649f49c2eb3e12ba1d739acb18908defa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f270391b3bfcff20e9fae105ee225e3328d8ad01ea8bfcb2d84f4e3dc708b8530430dfb181fbce69c608951a9e704f00660c661aa7e8374ab336116d6f342f30
|
7
|
+
data.tar.gz: a354e11497713401b4f9e0571aaf6fd2ff415b50926d5f52e90831fde1a0f0f022d2126faedd0d1aed70a5670177c605a9aece5cbd8c0f067e86540dfcae73c0
|
@@ -1,13 +1,13 @@
|
|
1
|
-
require "expressir/
|
2
|
-
require "expressir/
|
3
|
-
require "expressir/
|
1
|
+
require "expressir/express/formatter"
|
2
|
+
require "expressir/express/schema_head_formatter"
|
3
|
+
require "expressir/express/hyperlink_formatter"
|
4
4
|
|
5
5
|
module Lutaml
|
6
6
|
module Express
|
7
7
|
module LutamlPath
|
8
|
-
class Formatter < Expressir::
|
9
|
-
include Expressir::
|
10
|
-
include Expressir::
|
8
|
+
class Formatter < Expressir::Express::Formatter
|
9
|
+
include Expressir::Express::SchemaHeadFormatter
|
10
|
+
include Expressir::Express::HyperlinkFormatter
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/lutaml/parser.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require "lutaml/express"
|
2
2
|
require "lutaml/uml"
|
3
|
+
require "lutaml/xmi"
|
3
4
|
require "lutaml/uml/lutaml_path/document_wrapper"
|
4
5
|
require "lutaml/express/lutaml_path/document_wrapper"
|
5
|
-
require "expressir/
|
6
|
+
require "expressir/express/cache"
|
6
7
|
|
7
8
|
module Lutaml
|
8
9
|
class Parser
|
@@ -29,7 +30,7 @@ module Lutaml
|
|
29
30
|
|
30
31
|
def parse
|
31
32
|
documents = parse_into_document
|
32
|
-
return
|
33
|
+
return document_wrapper(documents) if ["exp", EXPRESS_CACHE_PARSE_TYPE].include?(parse_type)
|
33
34
|
|
34
35
|
documents.map { |doc| document_wrapper(doc) }
|
35
36
|
end
|
@@ -37,9 +38,11 @@ module Lutaml
|
|
37
38
|
def parse_into_document
|
38
39
|
case parse_type
|
39
40
|
when "exp"
|
40
|
-
Expressir::
|
41
|
+
Expressir::Express::Parser.from_files(file_list.map(&:path))
|
41
42
|
when EXPRESS_CACHE_PARSE_TYPE
|
42
|
-
Expressir::
|
43
|
+
Expressir::Express::Cache.from_file(file_list.first.path)
|
44
|
+
when 'xmi'
|
45
|
+
file_list.map { |file| Lutaml::XMI::Parsers::XML.parse(file) }
|
43
46
|
when "lutaml"
|
44
47
|
file_list.map { |file| Lutaml::Uml::Parsers::Dsl.parse(file) }
|
45
48
|
when "yml"
|
data/lib/lutaml/version.rb
CHANGED
data/lutaml.gemspec
CHANGED
@@ -27,10 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_runtime_dependency "lutaml-express"
|
31
|
-
spec.add_runtime_dependency "lutaml-uml"
|
30
|
+
spec.add_runtime_dependency "lutaml-express"
|
31
|
+
spec.add_runtime_dependency "lutaml-uml"
|
32
|
+
spec.add_runtime_dependency "lutaml-xmi"
|
32
33
|
spec.add_runtime_dependency "thor", "~> 1.0"
|
33
|
-
spec.
|
34
|
+
spec.add_runtime_dependency "nokogiri", "~> 1.10"
|
34
35
|
|
35
36
|
spec.add_development_dependency "bundler", "~> 2.0"
|
36
37
|
spec.add_development_dependency "byebug"
|
metadata
CHANGED
@@ -1,43 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lutaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lutaml-express
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: lutaml-uml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: lutaml-xmi
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: thor
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +73,7 @@ dependencies:
|
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '1.10'
|
62
|
-
type: :
|
76
|
+
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
@@ -207,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
221
|
- !ruby/object:Gem::Version
|
208
222
|
version: '0'
|
209
223
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
224
|
+
rubygems_version: 3.1.6
|
211
225
|
signing_key:
|
212
226
|
specification_version: 4
|
213
227
|
summary: 'LutaML: data models in textual form'
|