drawio_dsl 0.12.1 → 0.12.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/CHANGELOG.md +15 -0
- data/lib/drawio_dsl/formatters/interface_formatter.rb +3 -2
- data/lib/drawio_dsl/formatters/klass_formatter.rb +3 -2
- data/lib/drawio_dsl/schema/node.rb +11 -0
- data/lib/drawio_dsl/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 788fdba0f3ef0424003a2e64c0e8690b6473dc60bf161986b7e6709e837b5c95
|
|
4
|
+
data.tar.gz: 88aa71df907679e0b4e6f4e529039365376f002bcc9be3cf7c57a909541d8534
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 135b9e979fc639078a6839264783ee82e0c8efea0afc1c36f99f75a14241d867cd587e4a1ab46aad98e950238eb351e805884a71d4d9376e5dace3d49ec4a47f
|
|
7
|
+
data.tar.gz: 7af2dce5d290230e621f3c9bbdf145c6aab556572be1acec0e1d61023b991a7e7c89a1b84baa261d4e81f42a382090a2a4f48fc8a8e60b36bedf5b106f0801a8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [0.12.2](https://github.com/klueless-io/drawio_dsl/compare/v0.12.1...v0.12.2) (2022-10-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add description to node class ([63725ec](https://github.com/klueless-io/drawio_dsl/commit/63725ec5cd5cf607c0e96bd39990996ee1e26321))
|
|
7
|
+
|
|
8
|
+
## [0.12.1](https://github.com/klueless-io/drawio_dsl/compare/v0.12.0...v0.12.1) (2022-10-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update gem dependancies ([c175ee8](https://github.com/klueless-io/drawio_dsl/commit/c175ee8f782efd26e56e239a53627ffe4c7eaa78))
|
|
14
|
+
* update gem dependancies ([80864a8](https://github.com/klueless-io/drawio_dsl/commit/80864a8c80b60ee9dfb3d7d9ea816d93fe78ac39))
|
|
15
|
+
|
|
1
16
|
# [0.12.0](https://github.com/klueless-io/drawio_dsl/compare/v0.11.8...v0.12.0) (2022-07-01)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -22,7 +22,7 @@ module DrawioDsl
|
|
|
22
22
|
)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def header(name, description: nil, namespace: nil, interface_type: 'Interface')
|
|
25
|
+
def header(name, description: nil, namespace: nil, interface_type: 'Interface', **args)
|
|
26
26
|
html.p("<i><< #{interface_type} >></i>", text_align: :center)
|
|
27
27
|
html.p("<b>#{name}</b>", text_align: :center)
|
|
28
28
|
html.hr
|
|
@@ -34,7 +34,8 @@ module DrawioDsl
|
|
|
34
34
|
name: name,
|
|
35
35
|
description: description,
|
|
36
36
|
namespace: namespace,
|
|
37
|
-
interface_type: interface_type
|
|
37
|
+
interface_type: interface_type,
|
|
38
|
+
**args
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
self
|
|
@@ -22,7 +22,7 @@ module DrawioDsl
|
|
|
22
22
|
)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def header(name, description: nil, namespace: nil)
|
|
25
|
+
def header(name, description: nil, namespace: nil, **args)
|
|
26
26
|
html.p("<b>#{name}</b>", text_align: :center)
|
|
27
27
|
html.hr
|
|
28
28
|
|
|
@@ -32,7 +32,8 @@ module DrawioDsl
|
|
|
32
32
|
type: :class,
|
|
33
33
|
name: name,
|
|
34
34
|
description: description,
|
|
35
|
-
namespace: namespace
|
|
35
|
+
namespace: namespace,
|
|
36
|
+
**args
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
self
|
|
@@ -5,11 +5,22 @@ module DrawioDsl
|
|
|
5
5
|
# Node is a base class for shapes, connections, positioners and layout rules
|
|
6
6
|
#
|
|
7
7
|
class Node
|
|
8
|
+
# Unique ID so that nodes can be referenced
|
|
8
9
|
attr_accessor :id
|
|
10
|
+
|
|
11
|
+
# What drawio page is this node on?
|
|
9
12
|
attr_accessor :page
|
|
13
|
+
|
|
14
|
+
# What is the parent node?
|
|
10
15
|
attr_accessor :parent
|
|
16
|
+
|
|
17
|
+
# What is the class of this node? [anchor, layout_rule, shape, line, ]
|
|
11
18
|
attr_accessor :classification
|
|
19
|
+
|
|
20
|
+
# Represents the node type as a string [circle, square, diamond, line]
|
|
12
21
|
attr_accessor :key
|
|
22
|
+
|
|
23
|
+
# Child nodes
|
|
13
24
|
attr_accessor :nodes
|
|
14
25
|
|
|
15
26
|
def initialize(page, **args)
|
data/lib/drawio_dsl/version.rb
CHANGED
data/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drawio_dsl",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "drawio_dsl",
|
|
9
|
-
"version": "0.12.
|
|
9
|
+
"version": "0.12.3",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
|
12
12
|
"@semantic-release/changelog": "^6.0.1",
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: drawio_dsl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Cruwys
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: k_config
|