rsyntaxtree 1.2.12 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rsyntaxtree +3 -1
- data/docs/assets/img/000.png +0 -0
- data/docs/assets/img/001.png +0 -0
- data/docs/assets/img/002.png +0 -0
- data/docs/assets/img/003.png +0 -0
- data/docs/assets/img/004.png +0 -0
- data/docs/assets/img/005.png +0 -0
- data/docs/assets/img/006.png +0 -0
- data/docs/assets/img/007.png +0 -0
- data/docs/assets/img/008.png +0 -0
- data/docs/assets/img/009.png +0 -0
- data/docs/assets/img/010.png +0 -0
- data/docs/assets/img/011.png +0 -0
- data/docs/assets/img/012.png +0 -0
- data/docs/assets/img/013.png +0 -0
- data/docs/assets/img/014.png +0 -0
- data/docs/assets/img/015.png +0 -0
- data/docs/assets/img/016.png +0 -0
- data/docs/assets/img/017.png +0 -0
- data/docs/assets/img/018.png +0 -0
- data/docs/assets/img/019.png +0 -0
- data/docs/assets/img/020.png +0 -0
- data/docs/assets/img/021.png +0 -0
- data/docs/assets/img/022.png +0 -0
- data/docs/assets/img/023.png +0 -0
- data/docs/assets/img/024.png +0 -0
- data/docs/assets/img/025.png +0 -0
- data/docs/assets/img/026.png +0 -0
- data/docs/assets/img/027.png +0 -0
- data/docs/assets/img/028.png +0 -0
- data/docs/assets/img/029.png +0 -0
- data/docs/assets/img/030.png +0 -0
- data/docs/assets/img/031.png +0 -0
- data/docs/assets/img/032.png +0 -0
- data/docs/assets/img/033.png +0 -0
- data/docs/assets/img/034.png +0 -0
- data/docs/assets/img/035.png +0 -0
- data/docs/assets/img/036.png +0 -0
- data/docs/assets/img/037.png +0 -0
- data/docs/assets/img/038.png +0 -0
- data/docs/assets/img/039.png +0 -0
- data/docs/assets/img/040.png +0 -0
- data/docs/assets/img/041.png +0 -0
- data/docs/assets/img/042.png +0 -0
- data/docs/assets/img/043.png +0 -0
- data/docs/assets/img/044.png +0 -0
- data/docs/assets/img/045.png +0 -0
- data/docs/assets/img/046.png +0 -0
- data/docs/assets/img/048.png +0 -0
- data/docs/assets/img/049.png +0 -0
- data/docs/assets/img/050.png +0 -0
- data/docs/assets/img/051.png +0 -0
- data/docs/assets/img/052.png +0 -0
- data/lib/rsyntaxtree/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3391346a580d49f8492e2a0d9291c1b90102fd516f6a0052cf58805284dc754
|
4
|
+
data.tar.gz: e56e9dad60a0949cbc562686457526fc283c24e10711e5e6a917c4189e9b3fe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d33f47df1ffc221f4b60bfb1aacbbb2ba19c403eeffee117d1003ea0e56a74b3f44a12d37b561bc496946a22125a2f55fd22129d6e5b473c35810a3f626c06a
|
7
|
+
data.tar.gz: cb82465f750cd98bd309c6cd85b0815bd33e556c76f74b668b4ba027459833565e768325c170a953a1aa952ede5308cf082dbac77c5df65788787c351ba75786
|
data/bin/rsyntaxtree
CHANGED
@@ -18,6 +18,7 @@ opts = Optimist.options do
|
|
18
18
|
BANNER
|
19
19
|
|
20
20
|
opt :outdir, "Output directory", default: "./"
|
21
|
+
opt :outfilename, "Output file base name", default: "syntree"
|
21
22
|
opt :format, "Output format: png, pdf, or svg", default: "png"
|
22
23
|
opt :leafstyle, "visual style of tree leaves: auto, triangle, bar, or nothing", default: "auto"
|
23
24
|
opt :fontstyle, "Font style (available when ttf font is specified): sans, serif, cjk, mono", default: "sans"
|
@@ -69,7 +70,8 @@ begin
|
|
69
70
|
string_opts[:data] = data
|
70
71
|
rsg = RSyntaxTree::RSGenerator.new(string_opts)
|
71
72
|
ext = string_opts[:format]
|
72
|
-
|
73
|
+
outfilename = string_opts[:outfilename] || "syntree"
|
74
|
+
filepath = File.expand_path(string_opts[:outdir]) + "/#{outfilename}." + ext
|
73
75
|
case ext
|
74
76
|
when "pdf"
|
75
77
|
outfile = File.new(filepath, "wb")
|
data/docs/assets/img/000.png
CHANGED
Binary file
|
data/docs/assets/img/001.png
CHANGED
Binary file
|
data/docs/assets/img/002.png
CHANGED
Binary file
|
data/docs/assets/img/003.png
CHANGED
Binary file
|
data/docs/assets/img/004.png
CHANGED
Binary file
|
data/docs/assets/img/005.png
CHANGED
Binary file
|
data/docs/assets/img/006.png
CHANGED
Binary file
|
data/docs/assets/img/007.png
CHANGED
Binary file
|
data/docs/assets/img/008.png
CHANGED
Binary file
|
data/docs/assets/img/009.png
CHANGED
Binary file
|
data/docs/assets/img/010.png
CHANGED
Binary file
|
data/docs/assets/img/011.png
CHANGED
Binary file
|
data/docs/assets/img/012.png
CHANGED
Binary file
|
data/docs/assets/img/013.png
CHANGED
Binary file
|
data/docs/assets/img/014.png
CHANGED
Binary file
|
data/docs/assets/img/015.png
CHANGED
Binary file
|
data/docs/assets/img/016.png
CHANGED
Binary file
|
data/docs/assets/img/017.png
CHANGED
Binary file
|
data/docs/assets/img/018.png
CHANGED
Binary file
|
data/docs/assets/img/019.png
CHANGED
Binary file
|
data/docs/assets/img/020.png
CHANGED
Binary file
|
data/docs/assets/img/021.png
CHANGED
Binary file
|
data/docs/assets/img/022.png
CHANGED
Binary file
|
data/docs/assets/img/023.png
CHANGED
Binary file
|
data/docs/assets/img/024.png
CHANGED
Binary file
|
data/docs/assets/img/025.png
CHANGED
Binary file
|
data/docs/assets/img/026.png
CHANGED
Binary file
|
data/docs/assets/img/027.png
CHANGED
Binary file
|
data/docs/assets/img/028.png
CHANGED
Binary file
|
data/docs/assets/img/029.png
CHANGED
Binary file
|
data/docs/assets/img/030.png
CHANGED
Binary file
|
data/docs/assets/img/031.png
CHANGED
Binary file
|
data/docs/assets/img/032.png
CHANGED
Binary file
|
data/docs/assets/img/033.png
CHANGED
Binary file
|
data/docs/assets/img/034.png
CHANGED
Binary file
|
data/docs/assets/img/035.png
CHANGED
Binary file
|
data/docs/assets/img/036.png
CHANGED
Binary file
|
data/docs/assets/img/037.png
CHANGED
Binary file
|
data/docs/assets/img/038.png
CHANGED
Binary file
|
data/docs/assets/img/039.png
CHANGED
Binary file
|
data/docs/assets/img/040.png
CHANGED
Binary file
|
data/docs/assets/img/041.png
CHANGED
Binary file
|
data/docs/assets/img/042.png
CHANGED
Binary file
|
data/docs/assets/img/043.png
CHANGED
Binary file
|
data/docs/assets/img/044.png
CHANGED
Binary file
|
data/docs/assets/img/045.png
CHANGED
Binary file
|
data/docs/assets/img/046.png
CHANGED
Binary file
|
data/docs/assets/img/048.png
CHANGED
Binary file
|
data/docs/assets/img/049.png
CHANGED
Binary file
|
data/docs/assets/img/050.png
CHANGED
Binary file
|
data/docs/assets/img/051.png
CHANGED
Binary file
|
data/docs/assets/img/052.png
CHANGED
Binary file
|
data/lib/rsyntaxtree/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsyntaxtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoichiro Hasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optimist
|
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
355
355
|
- !ruby/object:Gem::Version
|
356
356
|
version: '0'
|
357
357
|
requirements: []
|
358
|
-
rubygems_version: 3.
|
358
|
+
rubygems_version: 3.5.9
|
359
359
|
signing_key:
|
360
360
|
specification_version: 4
|
361
361
|
summary: RSyntaxTree is a graphical syntax tree generator written in Ruby
|