drawio_dsl 0.12.1 → 0.12.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65c471dd1a3e31a943cd3e243352bb938fef047a187f6485e3d0311079934bee
4
- data.tar.gz: e132eac3c4c373c5d3391c8a1e8710c597bff2432d5ca301d2e37b9fd8d1fc8f
3
+ metadata.gz: 801691dbce6c90979b5e7a846d534cd17b0ecb47355b46ae44b7a9c22880cf00
4
+ data.tar.gz: a845f18009404add0f3dc977ccf3c849fd9ce04bf584b1b4731a1b52b98987d5
5
5
  SHA512:
6
- metadata.gz: 9c3bdcd70b50ee3e1a1e261a8e58df8ca7042d2ee4eff5c10eeb9bdbc894e5cb5a59a55380f9e122382e9eee138c7aaf94a18a05b49a6c64119f73fa23eee056
7
- data.tar.gz: 2ba3a7f7c916f718a217b4369ffd5aeee7e2bc11aba98b99a88c3ae40955df1f61164d635f1b3be75375e1fa64e916fa85f1a0cd78df90f5d36e3c4f72557386
6
+ metadata.gz: 469d4b856a22352335a4d2749220fb0be129d1a6f3b54e33306beccdfe5b19c2cbb36c0100d01f93cdfd400e4a866ebac5fd801106bb95e27eac95e473c8133c
7
+ data.tar.gz: 2e8d92433608dfe1ae1dc8d674f7ec7d823ca7fe220a83dddd0768617ee28641117883d027412a4ceae3d1d89452e98d0ad57fc8476b9e53dec61b6b58c20a46
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.12.1](https://github.com/klueless-io/drawio_dsl/compare/v0.12.0...v0.12.1) (2022-10-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update gem dependancies ([c175ee8](https://github.com/klueless-io/drawio_dsl/commit/c175ee8f782efd26e56e239a53627ffe4c7eaa78))
7
+ * update gem dependancies ([80864a8](https://github.com/klueless-io/drawio_dsl/commit/80864a8c80b60ee9dfb3d7d9ea816d93fe78ac39))
8
+
1
9
  # [0.12.0](https://github.com/klueless-io/drawio_dsl/compare/v0.11.8...v0.12.0) (2022-07-01)
2
10
 
3
11
 
@@ -5,13 +5,27 @@ 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
 
26
+ # Optional description of this node, this can be useful for json output
27
+ attr_accessor :description
28
+
15
29
  def initialize(page, **args)
16
30
  @page = page
17
31
  @id = args[:id]
@@ -19,6 +33,7 @@ module DrawioDsl
19
33
  @classification = args[:classification] || :unknown
20
34
  @key = args[:key] || :unknown
21
35
  @nodes = NodeList.new
36
+ @description = args[:description]
22
37
  end
23
38
 
24
39
  def to_h
@@ -28,6 +43,7 @@ module DrawioDsl
28
43
  classification: classification,
29
44
  key: key
30
45
  }
46
+ result[:description] = description unless description.nil?
31
47
  result[:nodes] = nodes.to_h if nodes.any?
32
48
  result
33
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DrawioDsl
4
- VERSION = '0.12.1'
4
+ VERSION = '0.12.2'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "drawio_dsl",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "drawio_dsl",
9
- "version": "0.12.1",
9
+ "version": "0.12.2",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drawio_dsl",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "DrawIO DSL can build DrawIO diagrams using a Domain Specific Language",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drawio_dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys