rdoc 5.0.0.beta2 → 5.0.0

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7611b4b4856c7640b0eb67a7e763fedb026fe08
4
- data.tar.gz: c9c575242299083f619e13e9008481e8f3756060
3
+ metadata.gz: 481161cfd013140fe5c31c6cbc5f1acd60f2da5a
4
+ data.tar.gz: ee47fb4ba47727ce0630d115e900ee42aa0a5c31
5
5
  SHA512:
6
- metadata.gz: 1fc205f98ec74b52a0126addc2607aeecfbd23736cc20b72b05e553cd26d32c912e57d4cbfa2ac3d56c6384df9953e410e10005bf3a5e4d1889d0f819a27bd96
7
- data.tar.gz: f58ba3bd7aea7714789abc2137c634a4e1086c80ad58a9676fbe3dff581a676f038cdd2af05f87fa6dba438ef3bc7d2527931a9a53f05bfdb1487a3183342d90
6
+ metadata.gz: e0b741ae71726743465b65812d618eaf5be2ed56772c9c2e2cc8ae955460b131c6bf7e171c38f2f45880029dab1a914b51936f5d92f00b01e49ac6e446f73d9c
7
+ data.tar.gz: 123ba8149c0a11fa2551c9da139a314ad7aa95fc0759fd2416920b4992d13562a8733d4dbe894edf14dc2c542d0ddd0709bcafd0f0c82e9eab1d40e4ce13e4e7
data/.gitignore CHANGED
@@ -4,7 +4,7 @@
4
4
  /.rdoc
5
5
  /.rvmrc
6
6
  /TAGS
7
- /doc
7
+ /html
8
8
  /lib/rdoc/rd/block_parser.rb
9
9
  /lib/rdoc/rd/inline_parser.rb
10
10
  /lib/rdoc/markdown.rb
@@ -1,7 +1,7 @@
1
1
  === 5.0.0 / 2016-??-??
2
2
 
3
3
  * Major enhancements
4
- * Drop to support Ruby 1.8
4
+ * Cleanup deprecated code targeted Ruby 1.8
5
5
 
6
6
  * Bug fixes
7
7
  * Ensure badge data is included in result of JsonIndex template.
@@ -15,6 +15,12 @@
15
15
  * Improve class name expansion/resolution in ri. PR #400 by NARUSE, Yui
16
16
  * Improve performance of document generation. PR #397 by Yusuke Endoh.
17
17
 
18
+ === 4.3.0 / 2016-11-04
19
+
20
+ * Minor enhancements
21
+ * Removed json dependency for Ruby 2.4.0
22
+ * End to support Ruby 1.8.x
23
+
18
24
  === 4.2.2 / 2016-02-09
19
25
 
20
26
  * Bug fixes
@@ -1,7 +1,7 @@
1
1
  = \RDoc - Ruby Documentation System
2
2
 
3
3
  home :: https://github.com/rdoc/rdoc
4
- rdoc :: http://docs.seattlerb.org/rdoc
4
+ rdoc :: https://rdoc.github.io/rdoc
5
5
  bugs :: https://github.com/rdoc/rdoc/issues
6
6
  build status :: {<img src="https://travis-ci.org/rdoc/rdoc.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/rdoc/rdoc]
7
7
  code quality :: {<img src="https://codeclimate.com/badge.png" alt="code climate">}[https://codeclimate.com/github/rdoc/rdoc]
@@ -47,7 +47,7 @@ contain just Markup-style markup (with or without leading '#' comment
47
47
  markers). If directory names are passed to RDoc, they are scanned
48
48
  recursively for C and Ruby source files only.
49
49
 
50
- To generate documentation using +rake+ see RDoc::Task[http://docs.seattlerb.org/rdoc/RDocTask.html].
50
+ To generate documentation using +rake+ see RDoc::Task[https://rdoc.github.io/rdoc/RDocTask.html].
51
51
 
52
52
  To generate documentation programmatically:
53
53
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  $:.unshift File.expand_path 'lib'
2
- require 'rdoc'
2
+ require 'rdoc/task'
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rake/testtask'
5
5
 
@@ -17,25 +17,22 @@ PARSER_FILES = %w[
17
17
 
18
18
  $rdoc_rakefile = true
19
19
 
20
- def rake(*args)
21
- sh $0, *args
22
- end
23
-
24
20
  task :default => :test
25
21
 
26
- Rake::Task['docs'].actions.clear
27
- task :docs do
28
- $LOAD_PATH.unshift 'lib'
29
- require 'rdoc'
30
-
31
- options = RDoc::Options.new
32
- options.title = "rdoc #{RDoc::VERSION} Documentation"
33
- options.op_dir = 'doc'
34
- options.main_page = 'README.rdoc'
35
- options.files = hoe.spec.extra_rdoc_files + %w[lib]
36
- options.setup_generator 'darkfish'
22
+ RDoc::Task.new do |doc|
23
+ doc.main = 'README.rdoc'
24
+ doc.title = "rdoc #{RDoc::VERSION} Documentation"
25
+ doc.rdoc_dir = 'html'
26
+ doc.rdoc_files = FileList.new %w[lib/**/*.rb *.rdoc] - PARSER_FILES
27
+ end
37
28
 
38
- RDoc::RDoc.new.document options
29
+ task ghpages: :rdoc do
30
+ `git checkout gh-pages`
31
+ require "fileutils"
32
+ FileUtils.rm_rf "/tmp/html"
33
+ FileUtils.mv "html", "/tmp"
34
+ FileUtils.rm_rf "*"
35
+ FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
39
36
  end
40
37
 
41
38
  Rake::TestTask.new(:test) do |t|
@@ -65,7 +65,7 @@ module RDoc
65
65
  ##
66
66
  # RDoc version you are using
67
67
 
68
- VERSION = '5.0.0.beta2'
68
+ VERSION = '5.0.0'
69
69
 
70
70
  ##
71
71
  # Method visibilities
@@ -327,7 +327,7 @@ class RDoc::Context < RDoc::CodeObject
327
327
  if full_name == 'BasicObject' then
328
328
  superclass = nil
329
329
  elsif full_name == 'Object' then
330
- superclass = defined?(::BasicObject) ? '::BasicObject' : nil
330
+ superclass = '::BasicObject'
331
331
  end
332
332
 
333
333
  # find the superclass full name
@@ -1211,4 +1211,3 @@ class RDoc::Context < RDoc::CodeObject
1211
1211
  autoload :Section, 'rdoc/context/section'
1212
1212
 
1213
1213
  end
1214
-
@@ -49,4 +49,3 @@ module RDoc::Generator
49
49
  autoload :POT, 'rdoc/generator/pot'
50
50
 
51
51
  end
52
-
@@ -1,5 +1,5 @@
1
1
  <footer id="validator-badges" role="contentinfo">
2
2
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
3
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> <%= RDoc::VERSION %>.
3
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> <%= RDoc::VERSION %>.
4
4
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
5
5
  </footer>
@@ -183,26 +183,14 @@ class RDoc::Markdown::Literals
183
183
  return nil
184
184
  end
185
185
 
186
- if "".respond_to? :ord
187
- def get_byte
188
- if @pos >= @string_size
189
- return nil
190
- end
191
-
192
- s = @string[@pos].ord
193
- @pos += 1
194
- s
186
+ def get_byte
187
+ if @pos >= @string_size
188
+ return nil
195
189
  end
196
- else
197
- def get_byte
198
- if @pos >= @string_size
199
- return nil
200
- end
201
190
 
202
- s = @string[@pos]
203
- @pos += 1
204
- s
205
- end
191
+ s = @string[@pos].ord
192
+ @pos += 1
193
+ s
206
194
  end
207
195
 
208
196
  def parse(rule=nil)
@@ -102,8 +102,6 @@ class RDoc::Markup::PreProcess
102
102
  text = text.text
103
103
  end
104
104
 
105
- encoding = text.encoding if defined?(Encoding)
106
-
107
105
  # regexp helper (square brackets for optional)
108
106
  # $1 $2 $3 $4 $5
109
107
  # [prefix][\]:directive:[spaces][param]newline
@@ -122,7 +120,7 @@ class RDoc::Markup::PreProcess
122
120
  next "#{$1.strip}\n"
123
121
  end
124
122
 
125
- handle_directive $1, $3, $5, code_object, encoding, &block
123
+ handle_directive $1, $3, $5, code_object, text.encoding, &block
126
124
  end
127
125
 
128
126
  comment = text unless comment
@@ -291,4 +289,3 @@ class RDoc::Markup::PreProcess
291
289
  end
292
290
 
293
291
  end
294
-
@@ -64,7 +64,6 @@ class RDoc::Markup::ToBs < RDoc::Markup::ToRdoc
64
64
  # Adds bold or underline mixed with backspaces
65
65
 
66
66
  def convert_string string
67
- return string unless string.respond_to? :chars # your ruby is lame
68
67
  return string unless @in_b or @in_em
69
68
  chars = if @in_b then
70
69
  string.chars.map do |char| "#{char}\b#{char}" end
@@ -76,4 +75,3 @@ class RDoc::Markup::ToBs < RDoc::Markup::ToRdoc
76
75
  end
77
76
 
78
77
  end
79
-
@@ -1187,19 +1187,6 @@ Usage: #{opt.program_name} [options] [names...]
1187
1187
  end
1188
1188
  end
1189
1189
 
1190
- ##
1191
- # This is compatibility code for syck
1192
-
1193
- def to_yaml opts = {} # :nodoc:
1194
- return super if YAML.const_defined?(:ENGINE) and not YAML::ENGINE.syck?
1195
-
1196
- YAML.quick_emit self, opts do |out|
1197
- out.map taguri, to_yaml_style do |map|
1198
- encode_with map
1199
- end
1200
- end
1201
- end
1202
-
1203
1190
  # Sets the minimum visibility of a documented method.
1204
1191
  #
1205
1192
  # Accepts +:public+, +:protected+, +:private+, +:nodoc+, or +:all+.
@@ -76,25 +76,15 @@ class RDoc::Parser
76
76
 
77
77
  s = File.read(file, 1024) or return false
78
78
 
79
- have_encoding = s.respond_to? :encoding
80
-
81
79
  return true if s[0, 2] == Marshal.dump('')[0, 2] or s.index("\x00")
82
80
 
83
- if have_encoding then
84
- mode = "r"
85
- s.sub!(/\A#!.*\n/, '') # assume shebang line isn't longer than 1024.
86
- encoding = s[/^\s*\#\s*(?:-\*-\s*)?(?:en)?coding:\s*([^\s;]+?)(?:-\*-|[\s;])/, 1]
87
- mode = "rb:#{encoding}" if encoding
88
- s = File.open(file, mode) {|f| f.gets(nil, 1024)}
89
-
90
- not s.valid_encoding?
91
- else
92
- if 0.respond_to? :fdiv then
93
- s.count("\x00-\x7F", "^ -~\t\r\n").fdiv(s.size) > 0.3
94
- else # HACK 1.8.6
95
- (s.count("\x00-\x7F", "^ -~\t\r\n").to_f / s.size) > 0.3
96
- end
97
- end
81
+ mode = "r"
82
+ s.sub!(/\A#!.*\n/, '') # assume shebang line isn't longer than 1024.
83
+ encoding = s[/^\s*\#\s*(?:-\*-\s*)?(?:en)?coding:\s*([^\s;]+?)(?:-\*-|[\s;])/, 1]
84
+ mode = "rb:#{encoding}" if encoding
85
+ s = File.open(file, mode) {|f| f.gets(nil, 1024)}
86
+
87
+ not s.valid_encoding?
98
88
  end
99
89
 
100
90
  ##
@@ -308,4 +298,3 @@ require 'rdoc/parser/changelog'
308
298
  require 'rdoc/parser/markdown'
309
299
  require 'rdoc/parser/rd'
310
300
  require 'rdoc/parser/ruby'
311
-
@@ -161,15 +161,9 @@ class RDoc::RDoc
161
161
 
162
162
  RDoc.load_yaml
163
163
 
164
- parse_error = if Object.const_defined? :Psych then
165
- Psych::SyntaxError
166
- else
167
- ArgumentError
168
- end
169
-
170
164
  begin
171
165
  options = YAML.load_file '.rdoc_options'
172
- rescue *parse_error
166
+ rescue Psych::SyntaxError
173
167
  end
174
168
 
175
169
  raise RDoc::Error, "#{options_file} is not a valid rdoc options file" unless
@@ -417,6 +411,7 @@ The internal error was:
417
411
 
418
412
  return [] if file_list.empty?
419
413
 
414
+ original_options = @options.dup
420
415
  @stats.begin_adding
421
416
 
422
417
  file_info = file_list.map do |filename|
@@ -425,6 +420,7 @@ The internal error was:
425
420
  end.compact
426
421
 
427
422
  @stats.done_adding
423
+ @options = original_options
428
424
 
429
425
  file_info
430
426
  end
@@ -479,7 +475,7 @@ The internal error was:
479
475
  @last_modified = setup_output_dir @options.op_dir, @options.force_update
480
476
  end
481
477
 
482
- @store.encoding = @options.encoding if @options.respond_to? :encoding
478
+ @store.encoding = @options.encoding
483
479
  @store.dry_run = @options.dry_run
484
480
  @store.main = @options.main_page
485
481
  @store.title = @options.title
@@ -549,6 +545,8 @@ The internal error was:
549
545
  end
550
546
 
551
547
  begin
548
+ require 'rubygems'
549
+
552
550
  rdoc_extensions = Gem.find_files 'rdoc/discover'
553
551
 
554
552
  rdoc_extensions.each do |extension|
@@ -1428,7 +1428,7 @@ The ri pager can be set with the 'RI_PAGER' environment variable or the
1428
1428
  def setup_pager
1429
1429
  return if @use_stdout
1430
1430
 
1431
- jruby = Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
1431
+ jruby = RUBY_ENGINE == 'jruby'
1432
1432
 
1433
1433
  pagers = [ENV['RI_PAGER'], ENV['PAGER'], 'pager', 'less', 'more']
1434
1434
 
@@ -853,11 +853,7 @@ class RDoc::RubyLex
853
853
  end
854
854
  end
855
855
 
856
- IDENT_RE = if defined? Encoding then
857
- eval '/[\w\u{0080}-\u{FFFFF}]/u' # 1.8 can't parse \u{}
858
- else
859
- /[\w\x80-\xFF]/
860
- end
856
+ IDENT_RE = eval '/[\w\u{0080}-\u{FFFFF}]/u'
861
857
 
862
858
  def identify_identifier
863
859
  token = ""
@@ -153,13 +153,7 @@ class RDoc::RubygemsHook
153
153
  options = nil
154
154
 
155
155
  args = @spec.rdoc_options
156
-
157
- if @spec.respond_to? :source_paths then
158
- args.concat @spec.source_paths
159
- else
160
- args.concat @spec.require_paths
161
- end
162
-
156
+ args.concat @spec.source_paths
163
157
  args.concat @spec.extra_rdoc_files
164
158
 
165
159
  case config_args = Gem.configuration[:rdoc]
@@ -183,7 +177,7 @@ class RDoc::RubygemsHook
183
177
  @rdoc.options = options
184
178
 
185
179
  store = RDoc::Store.new
186
- store.encoding = options.encoding if options.respond_to? :encoding
180
+ store.encoding = options.encoding
187
181
  store.dry_run = options.dry_run
188
182
  store.main = options.main_page
189
183
  store.title = options.title
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: false
2
- begin
3
- require 'io/console/size'
4
- rescue LoadError
5
- end
2
+ require 'io/console/size'
6
3
 
7
4
  ##
8
5
  # Stats printer that prints just the files being documented with a progress
@@ -26,11 +23,7 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet
26
23
 
27
24
  # Print a progress bar, but make sure it fits on a single line. Filename
28
25
  # will be truncated if necessary.
29
- terminal_width = if defined?(IO) && IO.respond_to?(:console_size)
30
- IO.console_size[1].to_i.nonzero? || 80
31
- else
32
- 80
33
- end
26
+ terminal_width = IO.console_size[1].to_i.nonzero? || 80
34
27
  max_filename_size = terminal_width - progress_bar.size
35
28
 
36
29
  if filename.size > max_filename_size then
@@ -57,4 +50,3 @@ class RDoc::Stats::Normal < RDoc::Stats::Quiet
57
50
  end
58
51
 
59
52
  end
60
-
@@ -679,12 +679,7 @@ class RDoc::Store
679
679
  method_name =~ /#(.*)/
680
680
  method_type = $1 ? 'i' : 'c'
681
681
  method_name = $1 if $1
682
-
683
- method_name = if ''.respond_to? :ord then
684
- method_name.gsub(/\W/) { "%%%02x" % $&[0].ord }
685
- else
686
- method_name.gsub(/\W/) { "%%%02x" % $&[0] }
687
- end
682
+ method_name = method_name.gsub(/\W/) { "%%%02x" % $&[0].ord }
688
683
 
689
684
  File.join class_path(klass_name), "#{method_name}-#{method_type}.ri"
690
685
  end
@@ -141,7 +141,7 @@ class RDoc::TestCase < MiniTest::Unit::TestCase
141
141
  def mu_pp obj # :nodoc:
142
142
  s = ''
143
143
  s = PP.pp obj, s
144
- s = s.force_encoding Encoding.default_external if defined? Encoding
144
+ s = s.force_encoding Encoding.default_external
145
145
  s.chomp
146
146
  end
147
147
 
@@ -6,9 +6,6 @@ Gem::Specification.new do |s|
6
6
  s.name = "rdoc"
7
7
  s.version = RDoc::VERSION
8
8
 
9
- s.required_rubygems_version = Gem::Requirement.new(">= 1.3")
10
-
11
- s.require_paths = ["lib"]
12
9
  s.authors = [
13
10
  "Eric Hodel",
14
11
  "Dave Thomas",
@@ -17,17 +14,25 @@ Gem::Specification.new do |s|
17
14
  "Zachary Scott",
18
15
  "Hiroshi SHIBATA"
19
16
  ]
17
+ s.email = ["drbrain@segment7.net", "", "", "", "mail@zzak.io", "hsbt@ruby-lang.org"]
20
18
 
19
+ s.summary = "RDoc produces HTML and command-line documentation for Ruby projects"
21
20
  s.description = <<-DESCRIPTION
22
21
  RDoc produces HTML and command-line documentation for Ruby projects.
23
22
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
24
23
  DESCRIPTION
25
-
26
- s.email = ["drbrain@segment7.net", "mail@zzak.io", "hsbt@ruby-lang.org"]
24
+ s.homepage = "https://rdoc.github.io/rdoc"
25
+ s.licenses = ["Ruby"]
27
26
 
28
27
  s.bindir = "exe"
29
28
  s.executables = ["rdoc", "ri"]
29
+ s.require_paths = ["lib"]
30
+ # for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
31
+ s.files = [".document", ".gitignore", ".travis.yml", "CONTRIBUTING.rdoc", "CVE-2013-0256.rdoc", "ExampleMarkdown.md", "ExampleRDoc.rdoc", "Gemfile", "History.rdoc", "LEGAL.rdoc", "LICENSE.rdoc", "README.rdoc", "RI.rdoc", "Rakefile", "TODO.rdoc", "bin/console", "bin/setup", "exe/rdoc", "exe/ri", "lib/gauntlet_rdoc.rb", "lib/rdoc.rb", "lib/rdoc/alias.rb", "lib/rdoc/anon_class.rb", "lib/rdoc/any_method.rb", "lib/rdoc/attr.rb", "lib/rdoc/class_module.rb", "lib/rdoc/code_object.rb", "lib/rdoc/code_objects.rb", "lib/rdoc/comment.rb", "lib/rdoc/constant.rb", "lib/rdoc/context.rb", "lib/rdoc/context/section.rb", "lib/rdoc/cross_reference.rb", "lib/rdoc/encoding.rb", "lib/rdoc/erb_partial.rb", "lib/rdoc/erbio.rb", "lib/rdoc/extend.rb", "lib/rdoc/generator.rb", "lib/rdoc/generator/darkfish.rb", "lib/rdoc/generator/json_index.rb", "lib/rdoc/generator/markup.rb", "lib/rdoc/generator/pot.rb", "lib/rdoc/generator/pot/message_extractor.rb", "lib/rdoc/generator/pot/po.rb", "lib/rdoc/generator/pot/po_entry.rb", "lib/rdoc/generator/ri.rb", "lib/rdoc/generator/template/darkfish/.document", "lib/rdoc/generator/template/darkfish/_footer.rhtml", "lib/rdoc/generator/template/darkfish/_head.rhtml","lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml", "lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml", "lib/rdoc/generator/template/darkfish/class.rhtml", "lib/rdoc/generator/template/darkfish/css/fonts.css", "lib/rdoc/generator/template/darkfish/css/rdoc.css", "lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf", "lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf", "lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf", "lib/rdoc/generator/template/darkfish/images/add.png", "lib/rdoc/generator/template/darkfish/images/arrow_up.png", "lib/rdoc/generator/template/darkfish/images/brick.png", "lib/rdoc/generator/template/darkfish/images/brick_link.png", "lib/rdoc/generator/template/darkfish/images/bug.png", "lib/rdoc/generator/template/darkfish/images/bullet_black.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png", "lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png", "lib/rdoc/generator/template/darkfish/images/date.png", "lib/rdoc/generator/template/darkfish/images/delete.png", "lib/rdoc/generator/template/darkfish/images/find.png", "lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif", "lib/rdoc/generator/template/darkfish/images/macFFBgHack.png", "lib/rdoc/generator/template/darkfish/images/package.png", "lib/rdoc/generator/template/darkfish/images/page_green.png", "lib/rdoc/generator/template/darkfish/images/page_white_text.png", "lib/rdoc/generator/template/darkfish/images/page_white_width.png", "lib/rdoc/generator/template/darkfish/images/plugin.png", "lib/rdoc/generator/template/darkfish/images/ruby.png", "lib/rdoc/generator/template/darkfish/images/tag_blue.png", "lib/rdoc/generator/template/darkfish/images/tag_green.png", "lib/rdoc/generator/template/darkfish/images/transparent.png", "lib/rdoc/generator/template/darkfish/images/wrench.png", "lib/rdoc/generator/template/darkfish/images/wrench_orange.png", "lib/rdoc/generator/template/darkfish/images/zoom.png", "lib/rdoc/generator/template/darkfish/index.rhtml", "lib/rdoc/generator/template/darkfish/js/darkfish.js", "lib/rdoc/generator/template/darkfish/js/jquery.js", "lib/rdoc/generator/template/darkfish/js/search.js", "lib/rdoc/generator/template/darkfish/page.rhtml", "lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml", "lib/rdoc/generator/template/darkfish/servlet_root.rhtml", "lib/rdoc/generator/template/darkfish/table_of_contents.rhtml", "lib/rdoc/generator/template/json_index/.document", "lib/rdoc/generator/template/json_index/js/navigation.js", "lib/rdoc/generator/template/json_index/js/searcher.js", "lib/rdoc/ghost_method.rb", "lib/rdoc/i18n.rb", "lib/rdoc/i18n/locale.rb", "lib/rdoc/i18n/text.rb", "lib/rdoc/include.rb", "lib/rdoc/known_classes.rb", "lib/rdoc/markdown.kpeg", "lib/rdoc/markdown/entities.rb", "lib/rdoc/markdown/literals.kpeg", "lib/rdoc/markdown/literals.rb", "lib/rdoc/markup.rb", "lib/rdoc/markup/attr_changer.rb", "lib/rdoc/markup/attr_span.rb", "lib/rdoc/markup/attribute_manager.rb", "lib/rdoc/markup/attributes.rb", "lib/rdoc/markup/blank_line.rb", "lib/rdoc/markup/block_quote.rb", "lib/rdoc/markup/document.rb", "lib/rdoc/markup/formatter.rb", "lib/rdoc/markup/formatter_test_case.rb", "lib/rdoc/markup/hard_break.rb", "lib/rdoc/markup/heading.rb", "lib/rdoc/markup/include.rb", "lib/rdoc/markup/indented_paragraph.rb", "lib/rdoc/markup/inline.rb", "lib/rdoc/markup/list.rb", "lib/rdoc/markup/list_item.rb", "lib/rdoc/markup/paragraph.rb", "lib/rdoc/markup/parser.rb", "lib/rdoc/markup/pre_process.rb", "lib/rdoc/markup/raw.rb", "lib/rdoc/markup/rule.rb", "lib/rdoc/markup/special.rb", "lib/rdoc/markup/text_formatter_test_case.rb", "lib/rdoc/markup/to_ansi.rb", "lib/rdoc/markup/to_bs.rb", "lib/rdoc/markup/to_html.rb", "lib/rdoc/markup/to_html_crossref.rb", "lib/rdoc/markup/to_html_snippet.rb", "lib/rdoc/markup/to_joined_paragraph.rb", "lib/rdoc/markup/to_label.rb", "lib/rdoc/markup/to_markdown.rb", "lib/rdoc/markup/to_rdoc.rb", "lib/rdoc/markup/to_table_of_contents.rb", "lib/rdoc/markup/to_test.rb", "lib/rdoc/markup/to_tt_only.rb", "lib/rdoc/markup/verbatim.rb", "lib/rdoc/meta_method.rb", "lib/rdoc/method_attr.rb", "lib/rdoc/mixin.rb", "lib/rdoc/normal_class.rb", "lib/rdoc/normal_module.rb", "lib/rdoc/options.rb", "lib/rdoc/parser.rb", "lib/rdoc/parser/c.rb", "lib/rdoc/parser/changelog.rb", "lib/rdoc/parser/markdown.rb", "lib/rdoc/parser/rd.rb", "lib/rdoc/parser/ruby.rb", "lib/rdoc/parser/ruby_tools.rb", "lib/rdoc/parser/simple.rb", "lib/rdoc/parser/text.rb", "lib/rdoc/rd.rb", "lib/rdoc/rd/block_parser.ry", "lib/rdoc/rd/inline.rb", "lib/rdoc/rd/inline_parser.ry", "lib/rdoc/rdoc.rb", "lib/rdoc/require.rb", "lib/rdoc/ri.rb", "lib/rdoc/ri/driver.rb", "lib/rdoc/ri/formatter.rb", "lib/rdoc/ri/paths.rb", "lib/rdoc/ri/store.rb", "lib/rdoc/ri/task.rb", "lib/rdoc/ruby_lex.rb", "lib/rdoc/ruby_token.rb", "lib/rdoc/rubygems_hook.rb", "lib/rdoc/servlet.rb", "lib/rdoc/single_class.rb", "lib/rdoc/stats.rb", "lib/rdoc/stats/normal.rb", "lib/rdoc/stats/quiet.rb", "lib/rdoc/stats/verbose.rb", "lib/rdoc/store.rb", "lib/rdoc/task.rb", "lib/rdoc/test_case.rb", "lib/rdoc/text.rb", "lib/rdoc/token_stream.rb", "lib/rdoc/tom_doc.rb", "lib/rdoc/top_level.rb", "rdoc.gemspec"]
32
+ # files from .gitignore
33
+ s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb"
30
34
 
35
+ s.rdoc_options = ["--main", "README.rdoc"]
31
36
  s.extra_rdoc_files += %w[
32
37
  CVE-2013-0256.rdoc
33
38
  CONTRIBUTING.rdoc
@@ -41,19 +46,12 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
41
46
  TODO.rdoc
42
47
  ]
43
48
 
44
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
45
- s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb"
46
-
47
- s.homepage = "http://docs.seattlerb.org/rdoc"
48
- s.licenses = ["Ruby"]
49
-
50
- s.rdoc_options = ["--main", "README.rdoc"]
51
49
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
52
50
  s.rubygems_version = "2.5.2"
53
- s.summary = "RDoc produces HTML and command-line documentation for Ruby projects"
51
+ s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
54
52
 
55
- s.add_development_dependency("rake", "~> 10.5")
56
- s.add_development_dependency("racc", "~> 1.4", "> 1.4.10")
57
- s.add_development_dependency("kpeg", "~> 0.9")
53
+ s.add_development_dependency("rake")
54
+ s.add_development_dependency("racc", "> 1.4.10")
55
+ s.add_development_dependency("kpeg")
58
56
  s.add_development_dependency("minitest", "~> 4")
59
57
  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: 5.0.0.beta2
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -13,29 +13,26 @@ authors:
13
13
  autorequire:
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2016-09-07 00:00:00.000000000 Z
16
+ date: 2016-11-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rake
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - "~>"
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: '10.5'
24
+ version: '0'
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - "~>"
29
+ - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: '10.5'
31
+ version: '0'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: racc
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - "~>"
37
- - !ruby/object:Gem::Version
38
- version: '1.4'
39
36
  - - ">"
40
37
  - !ruby/object:Gem::Version
41
38
  version: 1.4.10
@@ -43,9 +40,6 @@ dependencies:
43
40
  prerelease: false
44
41
  version_requirements: !ruby/object:Gem::Requirement
45
42
  requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '1.4'
49
43
  - - ">"
50
44
  - !ruby/object:Gem::Version
51
45
  version: 1.4.10
@@ -53,16 +47,16 @@ dependencies:
53
47
  name: kpeg
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
- - - "~>"
50
+ - - ">="
57
51
  - !ruby/object:Gem::Version
58
- version: '0.9'
52
+ version: '0'
59
53
  type: :development
60
54
  prerelease: false
61
55
  version_requirements: !ruby/object:Gem::Requirement
62
56
  requirements:
63
- - - "~>"
57
+ - - ">="
64
58
  - !ruby/object:Gem::Version
65
- version: '0.9'
59
+ version: '0'
66
60
  - !ruby/object:Gem::Dependency
67
61
  name: minitest
68
62
  requirement: !ruby/object:Gem::Requirement
@@ -82,6 +76,9 @@ description: |
82
76
  RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
83
77
  email:
84
78
  - drbrain@segment7.net
79
+ - ''
80
+ - ''
81
+ - ''
85
82
  - mail@zzak.io
86
83
  - hsbt@ruby-lang.org
87
84
  executables:
@@ -100,7 +97,6 @@ extra_rdoc_files:
100
97
  - RI.rdoc
101
98
  - TODO.rdoc
102
99
  files:
103
- - ".autotest"
104
100
  - ".document"
105
101
  - ".gitignore"
106
102
  - ".travis.yml"
@@ -302,7 +298,7 @@ files:
302
298
  - lib/rdoc/tom_doc.rb
303
299
  - lib/rdoc/top_level.rb
304
300
  - rdoc.gemspec
305
- homepage: http://docs.seattlerb.org/rdoc
301
+ homepage: https://rdoc.github.io/rdoc
306
302
  licenses:
307
303
  - Ruby
308
304
  metadata: {}
@@ -321,10 +317,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
317
  requirements:
322
318
  - - ">="
323
319
  - !ruby/object:Gem::Version
324
- version: '1.3'
320
+ version: '2.2'
325
321
  requirements: []
326
322
  rubyforge_project:
327
- rubygems_version: 2.6.6
323
+ rubygems_version: 2.6.8
328
324
  signing_key:
329
325
  specification_version: 4
330
326
  summary: RDoc produces HTML and command-line documentation for Ruby projects
data/.autotest DELETED
@@ -1,24 +0,0 @@
1
- require 'autotest/restart'
2
-
3
- Autotest.add_hook :run_command do |_, cmd|
4
- system "#{Gem.ruby} -rubygems #{Gem.bin_path 'rake', 'rake'} generate"
5
- cmd.sub! ' -e ', ' -we '
6
- cmd.sub! "'minitest'", "'minitest', '~> 4.7'"
7
- end
8
-
9
- Autotest.add_hook :initialize do |at|
10
- at.testlib = ''
11
- at.add_exception '.git'
12
-
13
- def at.path_to_classname s
14
- sep = File::SEPARATOR
15
- f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
16
- f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
17
- f = f.map { |path| path =~ /^Test/ ? path : "Test#{path}" }
18
- f.join('::').
19
- gsub('Rdoc', 'RDoc').
20
- gsub('Ri', 'RI').
21
- gsub('Changelog', 'ChangeLog')
22
- end
23
- end
24
-