rdoc 6.0.3 → 6.0.4

This diff has not been reviewed by any users.
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: db75fc154de7991eb122ae18a989368274dc59fb71360b00e810ad1ad0902a92
4
- data.tar.gz: 79819be411617d1ff2c56c7be03ff5aa3c13953bb15da50f5fbca273e829ff67
3
+ metadata.gz: 73cda21536da8aea204eec25054f346a21e97c1d16f7b8f43b7db552398e0a38
4
+ data.tar.gz: 3cfb14465a6bee87b00f470fb632e5557d84f623d84c90b7fcf0e37021667887
5
5
  SHA512:
6
- metadata.gz: d9b08c31ecece587a259cd2bbad8c2f4a6730195ed871c80de09295767d849763020334e08d48c2063a00d3bf1954c14b4832f590cfd8a63bd9f3e7f9f28b5cf
7
- data.tar.gz: 9ec98a137342e174604df34b2f7abb6cb96a565cdf33e6d2db0e1580fb966760f1c5c3dab400fb8f286e70785f667d533e7da0bc8a0618606b00486734f5ff40
6
+ metadata.gz: ff1a36f399c5e3c3e3e833853c6ce27fe6886c6d09b0ba81e07b8d351cd339c7f120d0bd21691c792a2a7e63d323fece44ce8566b9d76e343b1aed3671fa7b3f
7
+ data.tar.gz: 50da0ecbb101c3104ff5a0bf7644fdb2db7758a6ad6243075b4b5180ba3175b20fcb3848ad47861794b4ba5ec6168d956579e939ed94dd7b53c0afc51e06a685
@@ -65,7 +65,7 @@ module RDoc
65
65
  ##
66
66
  # RDoc version you are using
67
67
 
68
- VERSION = '6.0.3'
68
+ VERSION = '6.0.4'
69
69
 
70
70
  ##
71
71
  # Method visibilities
@@ -21,7 +21,11 @@ class RDoc::ERBIO < ERB
21
21
  # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize
22
22
 
23
23
  def initialize str, safe_level = nil, trim_mode = nil, eoutvar = 'io'
24
- super
24
+ if RUBY_VERSION >= '2.6'
25
+ super(str, trim_mode: trim_mode, eoutvar: eoutvar)
26
+ else
27
+ super
28
+ end
25
29
  end
26
30
 
27
31
  ##
@@ -778,7 +778,11 @@ class RDoc::Generator::Darkfish
778
778
  erbout = "_erbout_#{file_var}"
779
779
  end
780
780
 
781
- template = klass.new template, nil, '<>', erbout
781
+ if RUBY_VERSION >= '2.6'
782
+ template = klass.new template, trim_mode: '<>', eoutvar: erbout
783
+ else
784
+ template = klass.new template, nil, '<>', erbout
785
+ end
782
786
  @template_cache[file] = template
783
787
  template
784
788
  end
@@ -363,6 +363,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
363
363
  container ||=
364
364
  if ignore_constants then
365
365
  c = RDoc::NormalModule.new name_t[:text]
366
+ c.store = @store
366
367
  new_modules << [prev_container, c]
367
368
  c
368
369
  else
@@ -169,7 +169,7 @@ module RDoc::Text
169
169
 
170
170
  encoding = text.encoding
171
171
 
172
- text = text.gsub %r%Document-method:\s+[\w:.#=!?|^&<>~+-/*\%@`\[\]]+%, ''
172
+ text = text.gsub %r%Document-method:\s+[\w:.#=!?|^&<>~+\-/*\%@`\[\]]+%, ''
173
173
 
174
174
  space = ' '
175
175
  space = RDoc::Encoding.change_encoding space, encoding if encoding
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: exe
16
16
  cert_chain: []
17
- date: 2018-03-26 00:00:00.000000000 Z
17
+ date: 2018-05-04 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rake