rsyntaxtree 1.2.10 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
data/rsyntaxtree.gemspec CHANGED
@@ -17,10 +17,11 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ["lib"]
18
18
 
19
19
  # specify any dependencies here; for example:
20
- s.add_runtime_dependency "optimist", "~> 3.0", ">= 3.0.1"
20
+ s.add_runtime_dependency "optimist", ">= 3.0.1"
21
21
  s.add_runtime_dependency "parslet"
22
- s.add_runtime_dependency "rmagick", "~> 4.2", ">= 4.2.3"
22
+ s.add_runtime_dependency "rmagick", ">= 4.3"
23
23
  s.add_runtime_dependency "rsvg2"
24
24
 
25
+ s.add_development_dependency "nokogiri"
25
26
  s.add_development_dependency "yaml"
26
27
  end
@@ -3,6 +3,8 @@
3
3
  require "minitest/autorun"
4
4
  require "minitest/pride"
5
5
  require "yaml"
6
+ require "nokogiri"
7
+
6
8
  require_relative '../lib/rsyntaxtree'
7
9
  require_relative '../lib/rsyntaxtree/utils'
8
10
 
@@ -65,13 +67,11 @@ class ExampleParserTest < Minitest::Test
65
67
  # To test SVG, run the code below
66
68
  #################################
67
69
  svg = rsg.draw_svg
68
- opts[:svg] = svg
69
- svg_path = File.join(svg_dir, "#{name}.svg")
70
- svg_code = File.read(svg_path)
71
- puts "Creating example SVG test case: #{name}"
70
+
71
+ document = Nokogiri::XML(svg)
72
72
 
73
73
  define_method "test_#{name}" do
74
- assert_equal svg_code, opts[:svg]
74
+ assert_equal document.errors.empty?, true
75
75
  end
76
76
  end
77
77
  end
metadata CHANGED
@@ -1,22 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsyntaxtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.10
4
+ version: 1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-17 00:00:00.000000000 Z
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 3.0.1
@@ -24,9 +21,6 @@ dependencies:
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
26
  version: 3.0.1
@@ -48,22 +42,16 @@ dependencies:
48
42
  name: rmagick
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '4.2'
54
45
  - - ">="
55
46
  - !ruby/object:Gem::Version
56
- version: 4.2.3
47
+ version: '4.3'
57
48
  type: :runtime
58
49
  prerelease: false
59
50
  version_requirements: !ruby/object:Gem::Requirement
60
51
  requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '4.2'
64
52
  - - ">="
65
53
  - !ruby/object:Gem::Version
66
- version: 4.2.3
54
+ version: '4.3'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: rsvg2
69
57
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +66,20 @@ dependencies:
78
66
  - - ">="
79
67
  - !ruby/object:Gem::Version
80
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
81
83
  - !ruby/object:Gem::Dependency
82
84
  name: yaml
83
85
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +165,7 @@ files:
163
165
  - docs/_examples/049.md
164
166
  - docs/_examples/050.md
165
167
  - docs/_examples/051.md
168
+ - docs/_examples/052.md
166
169
  - docs/_includes/box_and_circle_table.html
167
170
  - docs/_includes/escape_char_table.html
168
171
  - docs/_includes/social_media_links.html
@@ -220,6 +223,7 @@ files:
220
223
  - docs/assets/img/049.png
221
224
  - docs/assets/img/050.png
222
225
  - docs/assets/img/051.png
226
+ - docs/assets/img/052.png
223
227
  - docs/assets/img/elements/arrow_both.png
224
228
  - docs/assets/img/elements/arrow_both_bold.png
225
229
  - docs/assets/img/elements/arrow_left.png
@@ -294,6 +298,7 @@ files:
294
298
  - docs/assets/svg/049.svg
295
299
  - docs/assets/svg/050.svg
296
300
  - docs/assets/svg/051.svg
301
+ - docs/assets/svg/052.svg
297
302
  - docs/documentation.md
298
303
  - docs/documentation_ja.md
299
304
  - docs/examples.html