ea 0.2.2 → 0.2.3
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/lib/ea/cli/app.rb +11 -4
- data/lib/ea/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a642cd1f62347458131574d9cbc1f67c603ddbb92f17791d315565c3d0139644
|
|
4
|
+
data.tar.gz: ae95dec5c47a2e47e4fda8c6423e1d9d528e5efc38d941e08ec768ac16f6e526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be396117551658582cb2bc6b3fb0b248d011ff415e96c205e64e379f414dafc5c2619c42271bf96237d00396d541626f8e0da2635be266300175acccd0a16f2f
|
|
7
|
+
data.tar.gz: 482dbbaa5bc81215cc05c0987c9bc14d8211b0e6c5ce17f85c35bd4c393c6fd74532d1a6057e9e5682435b5e9fb3eb372c9d0c94ecfa219a687e98f9d739278d
|
data/lib/ea/cli/app.rb
CHANGED
|
@@ -5,6 +5,13 @@ require "thor"
|
|
|
5
5
|
module Ea
|
|
6
6
|
module Cli
|
|
7
7
|
class App < Thor
|
|
8
|
+
# Shared kwargs for any command that writes to a file. Keeping
|
|
9
|
+
# the short-form alias in one place makes the CLI surface
|
|
10
|
+
# consistent and the convention a single source of truth:
|
|
11
|
+
# changing `-o` everywhere is a one-line edit, not a per-command
|
|
12
|
+
# search, and every output-bearing command honours the same flag.
|
|
13
|
+
OUTPUT_OPTION = { type: :string, aliases: :o }.freeze
|
|
14
|
+
|
|
8
15
|
class << self
|
|
9
16
|
def exit_on_failure?
|
|
10
17
|
true
|
|
@@ -28,7 +35,7 @@ module Ea
|
|
|
28
35
|
desc "diagrams ACTION FILE [NAME]",
|
|
29
36
|
"Diagram operations: list FILE | extract NAME FILE"
|
|
30
37
|
option :format, type: :string, default: "table"
|
|
31
|
-
option :output,
|
|
38
|
+
option :output, **OUTPUT_OPTION, desc: "Output path (extract only)"
|
|
32
39
|
def diagrams(action, file = nil, name = nil)
|
|
33
40
|
Command::Diagrams
|
|
34
41
|
.new(action: action, file: file, name: name, **symbolize(options))
|
|
@@ -56,15 +63,15 @@ module Ea
|
|
|
56
63
|
|
|
57
64
|
desc "convert FILE", "Convert between EA formats (e.g. QEA → XMI)"
|
|
58
65
|
option :to, type: :string, required: true, desc: "Target format: xmi"
|
|
59
|
-
option :output,
|
|
66
|
+
option :output, **OUTPUT_OPTION, desc: "Output path"
|
|
60
67
|
option :format, type: :string, default: "table"
|
|
61
68
|
def convert(file)
|
|
62
69
|
Command::Convert.new(file: file, **symbolize(options)).call
|
|
63
70
|
end
|
|
64
71
|
|
|
65
72
|
desc "spa FILE", "Generate single-page app (SPA) from QEA/XMI/LUR"
|
|
66
|
-
option :output,
|
|
67
|
-
|
|
73
|
+
option :output, **OUTPUT_OPTION,
|
|
74
|
+
desc: "Output path (default: <basename>.html)"
|
|
68
75
|
option :mode, type: :string, default: "single_file",
|
|
69
76
|
desc: "Output mode: single_file | multi_file"
|
|
70
77
|
def spa(file)
|
data/lib/ea/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ea
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
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-07-
|
|
11
|
+
date: 2026-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
@@ -72,20 +72,20 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0.
|
|
75
|
+
version: '0.6'
|
|
76
76
|
- - ">="
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
|
-
version: 0.
|
|
78
|
+
version: 0.6.0
|
|
79
79
|
type: :runtime
|
|
80
80
|
prerelease: false
|
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
|
83
83
|
- - "~>"
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: '0.
|
|
85
|
+
version: '0.6'
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: 0.
|
|
88
|
+
version: 0.6.0
|
|
89
89
|
- !ruby/object:Gem::Dependency
|
|
90
90
|
name: nokogiri
|
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,14 +148,14 @@ dependencies:
|
|
|
148
148
|
requirements:
|
|
149
149
|
- - "~>"
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version:
|
|
151
|
+
version: 0.5.0
|
|
152
152
|
type: :development
|
|
153
153
|
prerelease: false
|
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements:
|
|
156
156
|
- - "~>"
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
|
-
version:
|
|
158
|
+
version: 0.5.0
|
|
159
159
|
- !ruby/object:Gem::Dependency
|
|
160
160
|
name: rubocop
|
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|