rsyntaxtree 0.8.3 → 0.8.4

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: c06870de3a591df5cdde4b1061529a81455614447d7f6279dc056b06b1631924
4
- data.tar.gz: '095426d0a0b46db22be01e8b57e631eea535eec751488ede9aeaaa9bb72bc7ac'
3
+ metadata.gz: 46e87b5eb3718ca486b7db30381bf64d2c276f6e60173bbf686c150c3a40a54e
4
+ data.tar.gz: 24c796def12932596bd4a4df5b29a758e4a8f633b986cae1d33663bf19e2836c
5
5
  SHA512:
6
- metadata.gz: 95ebed8e7a176851b1d7eccc0fdd4a95fd8a8e432efd696e63acc60558fa592e223b2b4e53d0a4f0d7afcd8f5dd858cf40b361eb9b3525176276098772b6d168
7
- data.tar.gz: b35881b52f62faf9b6d7a34213b1547ff19f99d7338d15bfd26f81cb1576cf3d642e8c11d4fe2aa66c6d1ef1edeb42c287a5c0033af77833d7a3577e045b4162
6
+ metadata.gz: cf98fca2b5ce268499bfdea7a6d745de7f5bf6c0b26bacff1bea79d42df360dad1ec013d9f96b54f9111c951839d74c84a9725d12a81c364d504d39cec2432c2
7
+ data.tar.gz: 8efcf521ecb186456be69b8060c9a3b6c7724805897fb2aef6716aa5420f0da38fa4639c9798528d32b845498c2484cff56b95bb4e4a1df401972131910a315e
@@ -99,6 +99,9 @@ EOD
99
99
  elsif /\A\-(.+)\-\z/ =~ main
100
100
  main = $1
101
101
  main_decoration= "underline"
102
+ elsif /\A\~(.+)\~\z/ =~ main
103
+ main = $1
104
+ main_decoration= "line-through"
102
105
  else
103
106
  main_decoration= ""
104
107
  end
@@ -137,6 +140,9 @@ EOD
137
140
  elsif /\A\-(.+)\-\z/ =~ sub
138
141
  sub = $1
139
142
  sub_decoration= "underline"
143
+ elsif /\A\~(.+)\~\z/ =~ sub
144
+ sub = $1
145
+ sub_decoration= "line-through"
140
146
  else
141
147
  sub_decoration= ""
142
148
  end
@@ -1,4 +1,4 @@
1
1
  module RSyntaxTree
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
4
4
 
data/syntree.svg ADDED
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg width="1847.0" height="992.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
5
+ <text style='fill: green; font-size: 64px; ; ;' x='536.0' y='961.0' text-decoration='' font-family='sans-serif'>the</text>
6
+ <text style='fill: green; font-size: 64px; ; ;' x='699.0' y='961.0' text-decoration='' font-family='sans-serif'>president</text>
7
+ <text style='fill: green; font-size: 64px; ; ;' x='408.0' y='785.0' text-decoration='' font-family='sans-serif'>of</text>
8
+ <text style='fill: blue; font-size: 64px; ; ;' x='562.0' y='785.0' text-decoration='' font-family='sans-serif'>D</text>
9
+ <line style='stroke:black; stroke-width:2;' x1='586' y1='890' x2='586' y2='806' />
10
+ <text style='fill: blue; font-size: 64px; ; ;' x='818.0' y='785.0' text-decoration='' font-family='sans-serif'>N</text>
11
+ <line style='stroke:black; stroke-width:2;' x1='843' y1='890' x2='843' y2='806' />
12
+ <text style='fill: green; font-size: 64px; ; ;' x='1243.0' y='785.0' text-decoration='' font-family='sans-serif'>blame</text>
13
+ <text style='fill: green; font-size: 64px; ; ;' x='1495.0' y='785.0' text-decoration='' font-family='sans-serif'>* himself</text>
14
+ <text style='fill: green; font-size: 64px; ; ;' x='10.0' y='609.0' text-decoration='line-through' font-family='sans-serif'>Supporters</text>
15
+ <text style='fill: blue; font-size: 64px; ; ;' x='420.5' y='609.0' text-decoration='' font-family='sans-serif'>P</text>
16
+ <line style='stroke:black; stroke-width:2;' x1='440' y1='714' x2='440' y2='630' />
17
+ <text style='fill: blue; font-size: 64px; ; ;' x='671.0' y='609.0' text-decoration='' font-family='sans-serif'>DP</text>
18
+ <line style='stroke:black; stroke-width:2;' x1='586' y1='714' x2='714' y2='630' />
19
+ <line style='stroke:black; stroke-width:2;' x1='843' y1='714' x2='714' y2='630' />
20
+ <text style='fill: green; font-size: 64px; ; ;' x='1050.0' y='609.0' text-decoration='' font-family='sans-serif'>may</text>
21
+ <text style='fill: blue; font-size: 64px; ; ;' x='1317.5' y='609.0' text-decoration='' font-family='sans-serif'>V</text>
22
+ <line style='stroke:black; stroke-width:2;' x1='1337' y1='714' x2='1337' y2='630' />
23
+ <text style='fill: blue; font-size: 64px; ; ;' x='1570.0' y='609.0' text-decoration='' font-family='sans-serif'>PRN</text>
24
+ <polygon style='fill: none; stroke: black; stroke-width:2;' points='1773 714 1495 714 1634 630' />
25
+ <text style='fill: blue; font-size: 64px; ; ;' x='152.5' y='433.0' text-decoration='' font-family='sans-serif'>N</text>
26
+ <line style='stroke:black; stroke-width:2;' x1='177' y1='538' x2='177' y2='454' />
27
+ <text style='fill: blue; font-size: 64px; ; ;' x='538.0' y='433.0' text-decoration='' font-family='sans-serif'>PP</text>
28
+ <line style='stroke:black; stroke-width:2;' x1='440' y1='538' x2='577' y2='454' />
29
+ <line style='stroke:black; stroke-width:2;' x1='714' y1='538' x2='577' y2='454' />
30
+ <text style='fill: blue; font-size: 64px; ; ;' x='1096.5' y='433.0' text-decoration='' font-family='sans-serif'>T</text>
31
+ <line style='stroke:black; stroke-width:2;' x1='1115' y1='538' x2='1115' y2='454' />
32
+ <text style='fill: blue; font-size: 64px; ; ;' x='1447.0' y='433.0' text-decoration='' font-family='sans-serif'>VP</text>
33
+ <line style='stroke:black; stroke-width:2;' x1='1337' y1='538' x2='1486' y2='454' />
34
+ <line style='stroke:black; stroke-width:2;' x1='1634' y1='538' x2='1486' y2='454' />
35
+ <text style='fill: blue; font-size: 64px; ; ;' x='333.0' y='257.0' text-decoration='' font-family='sans-serif'>NP</text>
36
+ <line style='stroke:black; stroke-width:2;' x1='177' y1='362' x2='377' y2='278' />
37
+ <line style='stroke:black; stroke-width:2;' x1='577' y1='362' x2='377' y2='278' />
38
+ <text style='fill: blue; font-size: 64px; ; ;' x='1275.0' y='257.0' text-decoration='' font-family='sans-serif'>T'</text>
39
+ <line style='stroke:black; stroke-width:2;' x1='1115' y1='362' x2='1300' y2='278' />
40
+ <line style='stroke:black; stroke-width:2;' x1='1486' y1='362' x2='1300' y2='278' />
41
+ <text style='fill: blue; font-size: 64px; ; ;' x='801.0' y='81.0' text-decoration='' font-family='sans-serif'>TP</text>
42
+ <line style='stroke:black; stroke-width:2;' x1='377' y1='186' x2='839' y2='102' />
43
+ <line style='stroke:black; stroke-width:2;' x1='1300' y1='186' x2='839' y2='102' />
44
+ </svg>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsyntaxtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
@@ -91,6 +91,7 @@ files:
91
91
  - lib/rsyntaxtree/utils.rb
92
92
  - lib/rsyntaxtree/version.rb
93
93
  - rsyntaxtree.gemspec
94
+ - syntree.svg
94
95
  homepage: http://github.com/yohasebe/rsyntaxtree
95
96
  licenses:
96
97
  - MIT