rdoc 6.3.0 → 6.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rdoc might be problematic. Click here for more details.

data/lib/rdoc/rdoc.rb CHANGED
@@ -166,8 +166,15 @@ class RDoc::RDoc
166
166
  rescue Psych::SyntaxError
167
167
  end
168
168
 
169
+ return RDoc::Options.new if options == false # Allow empty file.
170
+
169
171
  raise RDoc::Error, "#{options_file} is not a valid rdoc options file" unless
170
- RDoc::Options === options
172
+ RDoc::Options === options or Hash === options
173
+
174
+ if Hash === options
175
+ # Override the default values with the contents of YAML file.
176
+ options = RDoc::Options.new options
177
+ end
171
178
 
172
179
  options
173
180
  end
@@ -436,7 +443,7 @@ The internal error was:
436
443
  files.reject do |file, *|
437
444
  file =~ /\.(?:class|eps|erb|scpt\.txt|svg|ttf|yml)$/i or
438
445
  (file =~ /tags$/i and
439
- open(file, 'rb') { |io|
446
+ File.open(file, 'rb') { |io|
440
447
  io.read(100) =~ /\A(\f\n[^,]+,\d+$|!_TAG_)/
441
448
  })
442
449
  end
data/lib/rdoc/version.rb CHANGED
@@ -3,6 +3,6 @@ module RDoc
3
3
  ##
4
4
  # RDoc version you are using
5
5
 
6
- VERSION = '6.3.0'
6
+ VERSION = '6.3.1'
7
7
 
8
8
  end
data/rdoc.gemspec CHANGED
@@ -243,4 +243,6 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
243
243
 
244
244
  s.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
245
245
  s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
246
+
247
+ s.add_development_dependency("gettext")
246
248
  end
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.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -14,8 +14,22 @@ authors:
14
14
  autorequire:
15
15
  bindir: exe
16
16
  cert_chain: []
17
- date: 2020-12-21 00:00:00.000000000 Z
18
- dependencies: []
17
+ date: 2021-05-02 00:00:00.000000000 Z
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
20
+ name: gettext
21
+ requirement: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ type: :development
27
+ prerelease: false
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
19
33
  description: |
20
34
  RDoc produces HTML and command-line documentation for Ruby projects.
21
35
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
@@ -257,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
271
  - !ruby/object:Gem::Version
258
272
  version: '2.2'
259
273
  requirements: []
260
- rubygems_version: 3.2.2
274
+ rubygems_version: 3.2.15
261
275
  signing_key:
262
276
  specification_version: 4
263
277
  summary: RDoc produces HTML and command-line documentation for Ruby projects