apipie-dsl 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0360ed5341b04a7cb6210b133eea8d5b67c89f0171fe8e6d8d058f022c0556a
4
- data.tar.gz: 115b4d7fe32b43da55ebe582a0ab7420351f99a985ad89e37ad1cbb669414712
3
+ metadata.gz: da68108e5ca23babc8b31d829ee286270c363aefc5d2215692f223794f67b91e
4
+ data.tar.gz: 665784102a79fa4a55bd76999bcb81049f95700c3361ac0594150317d4dd2ec4
5
5
  SHA512:
6
- metadata.gz: af07ec99aeff3ac81c1f8dc8940aaa66e76f69a6097636e7a43385e257158204f3746d7041ab672e2502c815a629597720b1df42941c82469a86a09bcc4fbe15
7
- data.tar.gz: f8dca5a0acb988a094921bcd41fd03c6273f11af8399293809c31b4adf91fa6d787bc69b54e869330efadaa609f1cb0cc4551e352dc43c8761975280721801a5
6
+ metadata.gz: 4a4cbb6cc0556ed93c96f7e1517670f8bca01827bce13322ab19d78bbbd9268a29a017466cbdcd67aaae758d77e7ca906d22b5b505bb8ab2e6c1df435d385a6a
7
+ data.tar.gz: 7214315041c96070bf2847c7f198b8527513eb90fc3180128c26872261c52516c5733c8b2475acc281c3a19be0b09004ec65d1d3c0facc70f637171bfe9d058d
@@ -3,6 +3,12 @@
3
3
  module ApipieDSL
4
4
  module Markup
5
5
  class RDoc
6
+
7
+ def initialize
8
+ require 'rdoc'
9
+ require 'rdoc/markup/to_html'
10
+ end
11
+
6
12
  def to_html(text)
7
13
  rdoc.convert(text)
8
14
  end
@@ -10,14 +16,11 @@ module ApipieDSL
10
16
  private
11
17
 
12
18
  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
19
+ rdoc_version = Gem::Version.new(::RDoc::VERSION)
20
+ if rdoc_version >= Gem::Version.new('4.0.0') && rdoc_version < Gem::Version.new('8.0.0')
21
+ ::RDoc::Markup::ToHtml.new(::RDoc::Options.new)
22
+ else
23
+ ::RDoc::Markup::ToHtml.new()
21
24
  end
22
25
  end
23
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApipieDSL
4
- VERSION = "2.6.2"
4
+ VERSION = "2.6.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.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh Fedorenko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2026-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -198,7 +198,7 @@ homepage: https://github.com/Apipie/apipie-dsl
198
198
  licenses:
199
199
  - MIT
200
200
  metadata: {}
201
- post_install_message:
201
+ post_install_message:
202
202
  rdoc_options: []
203
203
  require_paths:
204
204
  - lib
@@ -213,8 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.1.6
217
- signing_key:
216
+ rubygems_version: 3.2.33
217
+ signing_key:
218
218
  specification_version: 4
219
219
  summary: Ruby DSL documentation tool
220
220
  test_files: