mini_mindmap 0.4.1 → 0.5.0

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: '0941fbef61833009099b52dc0561ef6c2672bffd0e5e12ae16a54db7a1aa479d'
4
- data.tar.gz: ee55990fa4bced3ce05ff9e69099d806bfc4cb3bf0af5695f5f72501ffa26353
3
+ metadata.gz: ded43843536db25fc831210fc5634ea8471b2cb1dc49c16139be472a31deecad
4
+ data.tar.gz: 61ef0ad9aaea38ec11c51f9354364fbc29b0c70888eaf19a277e37ac2c1949ca
5
5
  SHA512:
6
- metadata.gz: 95894edeafb90a53e04bae3429e5b2e0fbcc7bc487d98b8a9d23524396210c9a594055bf5c316f1b6f731d7d8149f3d2b533c506a1facf69ba3216d69665c6d5
7
- data.tar.gz: 0cf17b703155452c3252be70afbe622b4440736ed92f5c9f28e74d4f74928ea8856e02ee7a2ed948cbee8e437400182ccd61a2e746371c4ac725276706e483e6
6
+ metadata.gz: 2d3456dd56cee10bfdc9f1f98ba84809deeb20aaedcd097435618d7a58d0abef43f72492b87929f9bf7b13ac0645c5d9e326f59f87b7199df50242a99c48e3da
7
+ data.tar.gz: 4d84fb8f18fcd52acdf9ef931b1fd3149e2fc05b445ecb83e1bbcbf6818aa9a26ee7ec5c78d1a385dbaf6288d4e34a00f7961cd2e2d575175f36d8ebfe403a5f
data/README.md CHANGED
@@ -22,6 +22,37 @@ Or install it yourself as:
22
22
 
23
23
  $ gem install mini_mindmap
24
24
 
25
+ ## Syntax
26
+
27
+ PlantUML Mindmap Syntax
28
+
29
+ ```
30
+
31
+ * Subject
32
+ ** Foo
33
+ ** Bar
34
+
35
+ ```
36
+
37
+ Support Markdown Title Syntax
38
+
39
+ ```
40
+ # Subject
41
+ ## Foo
42
+ ## Bar
43
+
44
+ ```
45
+
46
+ Suppo Annotation with //
47
+
48
+ ```
49
+
50
+ // one line annotation
51
+
52
+ ** Foo // you can add annotation here too
53
+
54
+ ```
55
+
25
56
  ## Usage
26
57
 
27
58
  DSL Example
@@ -22,9 +22,9 @@ output = {
22
22
  # online
23
23
 
24
24
  dsl = %Q{
25
- * MiniMindmap
26
- ** name
27
- ** DSL
25
+ # MiniMindmap
26
+ ## name [color=red]
27
+ ** DSL // this is annotion
28
28
  ** output
29
29
  *** dir
30
30
  *** format
@@ -10,8 +10,14 @@ module MiniMindmap
10
10
  basic: {
11
11
  id: "basic",
12
12
  description: "basic expression",
13
- syntax: /^(\*+)\s+([^\s]*[^\[\]]*)\s*(\[.*\])*\s*$/,
13
+ syntax: /^([\*|\#]+)\s+([^\s]*[^\[\]]*)\s*(\[.*\])*\s*(\/\/.*)*\s*$/,
14
14
  processor: "basic_processor",
15
+ },
16
+ annotation: {
17
+ id: "annotation",
18
+ description: "annotation expression",
19
+ syntax: /^\s*\/\/.*\s*/,
20
+ processor: "annotation_processor",
15
21
  }
16
22
  }
17
23
  def self.compiles_meta
@@ -52,8 +58,10 @@ module MiniMindmap
52
58
  end
53
59
 
54
60
  return node
61
+ when @@compiles_meta[:annotation][:syntax]
62
+ # pass annotation
55
63
  else
56
- # pass
64
+ # rest pass
57
65
  end
58
66
  end
59
67
 
@@ -1,3 +1,3 @@
1
1
  module MiniMindmap
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_mindmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark24