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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10731d99a6addc609efcb6d6bc8bdd78ffc5c77621e3b67a775ad433dd1164ce
4
- data.tar.gz: a91316c380b6ef731506b4ba74ee0c4bd58a2561929c1b678a7cdc5f11367fe8
3
+ metadata.gz: 4952250816d5b432e60dac4ccc7e3b743b22cb6bd400db81f8c73c866817dc3a
4
+ data.tar.gz: 788423211db23551f5e43443301440d036a3223bfa6392439c41567f39e41bb4
5
5
  SHA512:
6
- metadata.gz: e0b4bb8fa7e552ed7cc74b7527c3645e1086c70895bb6cfdd953f51959b52ba0a24aedbd6bd1b211acca9d8fd48bac3120c1e9f3dc48d95a86b757b757831b42
7
- data.tar.gz: 1f716065df24cc4f2fc7e46ac185c1ef4fcdc8b4b9d7a651dbd015e3612fcbcfc20e6f1f35958b5d12c6a5767f6265fcae09127f7040bc7c6c1424bc157ee2a7
6
+ metadata.gz: 61f9ac1124e02e9ee3fced8c8878dea8182d722728b03e364e7f821911bda21dacbb22a6a02b6285de397d4766b837b6b02e35e9a1ee2fc5b41ab60f37b71479
7
+ data.tar.gz: 68a590a637d21d38dcb1e374571487f1d4e87fc3dff7eadd4425d659cfb7cbb0875dba26d6eb076af33674c127c7d141b254c52615ad2cf8f99d29690c40523f
@@ -3,18 +3,22 @@
3
3
  module ApipieDSL
4
4
  module Markup
5
5
  class RDoc
6
- def initialize
7
- require 'rdoc'
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
- def to_html(text)
17
- @rdoc.convert(text)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApipieDSL
4
- VERSION = '2.2.2'
4
+ VERSION = '2.2.3'
5
5
  end
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.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-04-06 00:00:00.000000000 Z
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.0.3
216
+ rubygems_version: 3.1.2
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Ruby DSL documentation tool