apipie-dsl 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apipie_dsl/markup.rb +14 -10
- data/lib/apipie_dsl/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: 4952250816d5b432e60dac4ccc7e3b743b22cb6bd400db81f8c73c866817dc3a
|
4
|
+
data.tar.gz: 788423211db23551f5e43443301440d036a3223bfa6392439c41567f39e41bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61f9ac1124e02e9ee3fced8c8878dea8182d722728b03e364e7f821911bda21dacbb22a6a02b6285de397d4766b837b6b02e35e9a1ee2fc5b41ab60f37b71479
|
7
|
+
data.tar.gz: 68a590a637d21d38dcb1e374571487f1d4e87fc3dff7eadd4425d659cfb7cbb0875dba26d6eb076af33674c127c7d141b254c52615ad2cf8f99d29690c40523f
|
data/lib/apipie_dsl/markup.rb
CHANGED
@@ -3,18 +3,22 @@
|
|
3
3
|
module ApipieDSL
|
4
4
|
module Markup
|
5
5
|
class RDoc
|
6
|
-
def
|
7
|
-
|
8
|
-
require 'rdoc/markup/to_html'
|
9
|
-
@rdoc ||= if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0')
|
10
|
-
::RDoc::Markup::ToHtml.new
|
11
|
-
else
|
12
|
-
::RDoc::Markup::ToHtml.new(::RDoc::Options.new)
|
13
|
-
end
|
6
|
+
def to_html(text)
|
7
|
+
rdoc.convert(text)
|
14
8
|
end
|
15
9
|
|
16
|
-
|
17
|
-
|
10
|
+
private
|
11
|
+
|
12
|
+
def rdoc
|
13
|
+
@rdoc ||= begin
|
14
|
+
require 'rdoc'
|
15
|
+
require 'rdoc/markup/to_html'
|
16
|
+
if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0')
|
17
|
+
::RDoc::Markup::ToHtml.new()
|
18
|
+
else
|
19
|
+
::RDoc::Markup::ToHtml.new(::RDoc::Options.new)
|
20
|
+
end
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
20
24
|
|
data/lib/apipie_dsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apipie-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleh Fedorenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.1.2
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Ruby DSL documentation tool
|