kramdown-plantuml 1.0.5 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/codecov.yml +2 -0
- data/.github/dependabot.yml +23 -0
- data/.github/mergify.yml +22 -0
- data/.github/scripts/amend.sh +176 -0
- data/.github/scripts/publish-gem.sh +24 -6
- data/.github/scripts/test-gem.sh +70 -40
- data/.github/scripts/variables.sh +4 -2
- data/.github/workflows/amend.yml +19 -0
- data/.github/workflows/no-java.yml +1 -2
- data/.github/workflows/no-plantuml.yml +4 -7
- data/.github/workflows/ruby.yml +39 -29
- data/.github/workflows/shell.yml +1 -5
- data/.gitignore +4 -0
- data/.rubocop.yml +1 -0
- data/GitVersion.yml +5 -0
- data/README.md +106 -18
- data/Rakefile +18 -1
- data/bin/net/sourceforge/plantuml/plantuml/{1.2020.18/plantuml-1.2020.18.jar → 1.2021.8/plantuml-1.2021.8.jar} +0 -0
- data/kramdown-plantuml.gemspec +10 -3
- data/lib/kramdown-plantuml.rb +0 -6
- data/lib/kramdown-plantuml/bool_env.rb +24 -0
- data/lib/kramdown-plantuml/console_logger.rb +56 -0
- data/lib/kramdown-plantuml/converter.rb +23 -25
- data/lib/kramdown-plantuml/executor.rb +48 -0
- data/lib/kramdown-plantuml/hash.rb +14 -0
- data/lib/kramdown-plantuml/logger.rb +68 -0
- data/lib/kramdown-plantuml/plantuml_error.rb +33 -0
- data/lib/kramdown-plantuml/plantuml_result.rb +49 -0
- data/lib/kramdown-plantuml/themer.rb +50 -0
- data/lib/kramdown-plantuml/version.rb +1 -1
- data/lib/kramdown_html.rb +8 -4
- data/pom.xml +1 -1
- metadata +78 -9
- data/.github/scripts/bundle-install.sh +0 -6
data/lib/kramdown_html.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'kramdown'
|
4
|
+
require 'kramdown-parser-gfm'
|
4
5
|
require_relative 'kramdown-plantuml/converter'
|
5
|
-
|
6
|
-
|
6
|
+
require_relative 'kramdown-plantuml/logger'
|
7
|
+
require_relative 'kramdown-plantuml/plantuml_error'
|
7
8
|
|
8
9
|
module Kramdown
|
9
10
|
module Converter
|
@@ -15,8 +16,11 @@ module Kramdown
|
|
15
16
|
def convert_codeblock(element, indent)
|
16
17
|
return super_convert_codeblock(element, indent) if element.attr['class'] != 'language-plantuml'
|
17
18
|
|
18
|
-
|
19
|
-
|
19
|
+
plantuml = element.value
|
20
|
+
plantuml_options = @options.key?(:plantuml) ? @options[:plantuml] : {}
|
21
|
+
converter = ::Kramdown::PlantUml::Converter.new(plantuml_options || {})
|
22
|
+
|
23
|
+
converter.convert_plantuml_to_svg(plantuml)
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|
data/pom.xml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-plantuml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swedbank Pay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: kramdown-parser-gfm
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: open3
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +80,62 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '3.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-its
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.3'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rubocop
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
101
|
- - "~>"
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
103
|
+
version: '1.12'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.12'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.6'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.4'
|
76
132
|
type: :development
|
77
133
|
prerelease: false
|
78
134
|
version_requirements: !ruby/object:Gem::Requirement
|
79
135
|
requirements:
|
80
136
|
- - "~>"
|
81
137
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
138
|
+
version: '2.4'
|
83
139
|
description:
|
84
140
|
email:
|
85
141
|
- opensource@swedbankpay.com
|
@@ -87,12 +143,16 @@ executables: []
|
|
87
143
|
extensions: []
|
88
144
|
extra_rdoc_files: []
|
89
145
|
files:
|
146
|
+
- ".github/codecov.yml"
|
147
|
+
- ".github/dependabot.yml"
|
148
|
+
- ".github/mergify.yml"
|
149
|
+
- ".github/scripts/amend.sh"
|
90
150
|
- ".github/scripts/build-gem.sh"
|
91
|
-
- ".github/scripts/bundle-install.sh"
|
92
151
|
- ".github/scripts/inspect-gem.sh"
|
93
152
|
- ".github/scripts/publish-gem.sh"
|
94
153
|
- ".github/scripts/test-gem.sh"
|
95
154
|
- ".github/scripts/variables.sh"
|
155
|
+
- ".github/workflows/amend.yml"
|
96
156
|
- ".github/workflows/no-java.yml"
|
97
157
|
- ".github/workflows/no-plantuml.yml"
|
98
158
|
- ".github/workflows/ruby.yml"
|
@@ -102,13 +162,22 @@ files:
|
|
102
162
|
- ".rubocop.yml"
|
103
163
|
- CODE_OF_CONDUCT.md
|
104
164
|
- Gemfile
|
165
|
+
- GitVersion.yml
|
105
166
|
- LICENSE
|
106
167
|
- README.md
|
107
168
|
- Rakefile
|
108
|
-
- bin/net/sourceforge/plantuml/plantuml/1.
|
169
|
+
- bin/net/sourceforge/plantuml/plantuml/1.2021.8/plantuml-1.2021.8.jar
|
109
170
|
- kramdown-plantuml.gemspec
|
110
171
|
- lib/kramdown-plantuml.rb
|
172
|
+
- lib/kramdown-plantuml/bool_env.rb
|
173
|
+
- lib/kramdown-plantuml/console_logger.rb
|
111
174
|
- lib/kramdown-plantuml/converter.rb
|
175
|
+
- lib/kramdown-plantuml/executor.rb
|
176
|
+
- lib/kramdown-plantuml/hash.rb
|
177
|
+
- lib/kramdown-plantuml/logger.rb
|
178
|
+
- lib/kramdown-plantuml/plantuml_error.rb
|
179
|
+
- lib/kramdown-plantuml/plantuml_result.rb
|
180
|
+
- lib/kramdown-plantuml/themer.rb
|
112
181
|
- lib/kramdown-plantuml/version.rb
|
113
182
|
- lib/kramdown_html.rb
|
114
183
|
- lib/which.rb
|
@@ -127,16 +196,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
196
|
requirements:
|
128
197
|
- - ">="
|
129
198
|
- !ruby/object:Gem::Version
|
130
|
-
version: 2.
|
199
|
+
version: 2.5.0
|
131
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
201
|
requirements:
|
133
202
|
- - ">="
|
134
203
|
- !ruby/object:Gem::Version
|
135
204
|
version: '0'
|
136
205
|
requirements: []
|
137
|
-
rubygems_version: 3.1.
|
206
|
+
rubygems_version: 3.1.6
|
138
207
|
signing_key:
|
139
208
|
specification_version: 4
|
140
209
|
summary: kramdown-plantuml allows you to use PlantUML syntax within fenced code blocks
|
141
|
-
with Kramdown (Jekyll's default Markdown parser)
|
210
|
+
with Kramdown (Jekyll's default Markdown parser).
|
142
211
|
test_files: []
|