rsyntaxtree 1.2.12 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rsyntaxtree +3 -1
  3. data/docs/assets/img/000.png +0 -0
  4. data/docs/assets/img/001.png +0 -0
  5. data/docs/assets/img/002.png +0 -0
  6. data/docs/assets/img/003.png +0 -0
  7. data/docs/assets/img/004.png +0 -0
  8. data/docs/assets/img/005.png +0 -0
  9. data/docs/assets/img/006.png +0 -0
  10. data/docs/assets/img/007.png +0 -0
  11. data/docs/assets/img/008.png +0 -0
  12. data/docs/assets/img/009.png +0 -0
  13. data/docs/assets/img/010.png +0 -0
  14. data/docs/assets/img/011.png +0 -0
  15. data/docs/assets/img/012.png +0 -0
  16. data/docs/assets/img/013.png +0 -0
  17. data/docs/assets/img/014.png +0 -0
  18. data/docs/assets/img/015.png +0 -0
  19. data/docs/assets/img/016.png +0 -0
  20. data/docs/assets/img/017.png +0 -0
  21. data/docs/assets/img/018.png +0 -0
  22. data/docs/assets/img/019.png +0 -0
  23. data/docs/assets/img/020.png +0 -0
  24. data/docs/assets/img/021.png +0 -0
  25. data/docs/assets/img/022.png +0 -0
  26. data/docs/assets/img/023.png +0 -0
  27. data/docs/assets/img/024.png +0 -0
  28. data/docs/assets/img/025.png +0 -0
  29. data/docs/assets/img/026.png +0 -0
  30. data/docs/assets/img/027.png +0 -0
  31. data/docs/assets/img/028.png +0 -0
  32. data/docs/assets/img/029.png +0 -0
  33. data/docs/assets/img/030.png +0 -0
  34. data/docs/assets/img/031.png +0 -0
  35. data/docs/assets/img/032.png +0 -0
  36. data/docs/assets/img/033.png +0 -0
  37. data/docs/assets/img/034.png +0 -0
  38. data/docs/assets/img/035.png +0 -0
  39. data/docs/assets/img/036.png +0 -0
  40. data/docs/assets/img/037.png +0 -0
  41. data/docs/assets/img/038.png +0 -0
  42. data/docs/assets/img/039.png +0 -0
  43. data/docs/assets/img/040.png +0 -0
  44. data/docs/assets/img/041.png +0 -0
  45. data/docs/assets/img/042.png +0 -0
  46. data/docs/assets/img/043.png +0 -0
  47. data/docs/assets/img/044.png +0 -0
  48. data/docs/assets/img/045.png +0 -0
  49. data/docs/assets/img/046.png +0 -0
  50. data/docs/assets/img/048.png +0 -0
  51. data/docs/assets/img/049.png +0 -0
  52. data/docs/assets/img/050.png +0 -0
  53. data/docs/assets/img/051.png +0 -0
  54. data/docs/assets/img/052.png +0 -0
  55. data/lib/rsyntaxtree/version.rb +1 -1
  56. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7de54cb3d1262ff084403ab3eada539ba7a88f030aa405716f6b1c8ca0167b02
4
- data.tar.gz: df2e706db9e7edd381bc0f56c5462e838e28636eda1f22016eebeb67024b7024
3
+ metadata.gz: f3391346a580d49f8492e2a0d9291c1b90102fd516f6a0052cf58805284dc754
4
+ data.tar.gz: e56e9dad60a0949cbc562686457526fc283c24e10711e5e6a917c4189e9b3fe2
5
5
  SHA512:
6
- metadata.gz: 75166406524c0dcf301b7d71445c5bb25c1c5f7000189332ba517ebe125a60a3f0a35c0103ad070b737a9aa5fa9c59e49e80eb087d428a4bcce17f8c4c75ee9e
7
- data.tar.gz: ec4035e5cc23440c84c4d087b206e8d0f5abab8b7ab8855704eea0e65971dcdefd8fcdbd39fb7cd329f62ac9405d6f12f8042e764a4c7788f7001385d3aab784
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
- filepath = File.expand_path(string_opts[:outdir]) + "/syntree." + ext
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")
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSyntaxTree
4
- VERSION = "1.2.12"
4
+ VERSION = "1.3.0"
5
5
  end
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.2.12
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-05-01 00:00:00.000000000 Z
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.4.12
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