ruby-changes:41165
From: hsbt <ko1@a...>
Date: Tue, 22 Dec 2015 21:08:49 +0900 (JST)
Subject: [ruby-changes:41165] hsbt:r53238 (trunk): * lib/rdoc.rb: bump version to 4.2.1. It contains following fixes.
hsbt 2015-12-22 21:08:13 +0900 (Tue, 22 Dec 2015) New Revision: 53238 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53238 Log: * lib/rdoc.rb: bump version to 4.2.1. It contains following fixes. https://github.com/rdoc/rdoc/pull/340 https://github.com/rdoc/rdoc/pull/341 https://github.com/rdoc/rdoc/pull/367 https://github.com/rdoc/rdoc/pull/368 * lib/rdoc/*: ditto. * test/rdoc/*: ditto. Modified files: trunk/ChangeLog trunk/lib/rdoc/generator/json_index.rb trunk/lib/rdoc/rdoc.gemspec trunk/lib/rdoc/servlet.rb trunk/lib/rdoc/text.rb trunk/lib/rdoc.rb trunk/test/rdoc/test_rdoc_markup_to_html.rb trunk/test/rdoc/test_rdoc_servlet.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 53237) +++ ChangeLog (revision 53238) @@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 22 21:08:05 2015 SHIBATA Hiroshi <hsbt@r...> + + * lib/rdoc.rb: bump version to 4.2.1. It contains following fixes. + https://github.com/rdoc/rdoc/pull/340 + https://github.com/rdoc/rdoc/pull/341 + https://github.com/rdoc/rdoc/pull/367 + https://github.com/rdoc/rdoc/pull/368 + * lib/rdoc/*: ditto. + * test/rdoc/*: ditto. + Tue Dec 22 20:25:33 2015 SHIBATA Hiroshi <hsbt@r...> * ext/psych/lib/psych.rb: bump version to 2.0.17 Index: lib/rdoc.rb =================================================================== --- lib/rdoc.rb (revision 53237) +++ lib/rdoc.rb (revision 53238) @@ -65,7 +65,7 @@ module RDoc https://github.com/ruby/ruby/blob/trunk/lib/rdoc.rb#L65 ## # RDoc version you are using - VERSION = '4.2.0' + VERSION = '4.2.1' ## # Method visibilities @@ -110,6 +110,8 @@ module RDoc https://github.com/ruby/ruby/blob/trunk/lib/rdoc.rb#L110 def self.load_yaml begin gem 'psych' + rescue NameError => e # --disable-gems + raise unless e.name == :gem rescue Gem::LoadError end Index: lib/rdoc/generator/json_index.rb =================================================================== --- lib/rdoc/generator/json_index.rb (revision 53237) +++ lib/rdoc/generator/json_index.rb (revision 53238) @@ -176,7 +176,7 @@ class RDoc::Generator::JsonIndex https://github.com/ruby/ruby/blob/trunk/lib/rdoc/generator/json_index.rb#L176 Zlib::GzipWriter.open(outfile) do |gz| gz.mtime = File.mtime(search_index_file) - gz.orig_name = search_index_file.to_s + gz.orig_name = search_index_file.basename.to_s gz.write search_index gz.close end @@ -194,7 +194,7 @@ class RDoc::Generator::JsonIndex https://github.com/ruby/ruby/blob/trunk/lib/rdoc/generator/json_index.rb#L194 Zlib::GzipWriter.open(outfile) do |gz| gz.mtime = File.mtime(dest) - gz.orig_name = dest.to_s + gz.orig_name = dest.basename.to_s gz.write data gz.close end Index: lib/rdoc/servlet.rb =================================================================== --- lib/rdoc/servlet.rb (revision 53237) +++ lib/rdoc/servlet.rb (revision 53238) @@ -440,4 +440,3 @@ version. If you're viewing Ruby's docum https://github.com/ruby/ruby/blob/trunk/lib/rdoc/servlet.rb#L440 end end - Index: lib/rdoc/text.rb =================================================================== --- lib/rdoc/text.rb (revision 53237) +++ lib/rdoc/text.rb (revision 53238) @@ -11,6 +11,8 @@ require 'strscan' https://github.com/ruby/ruby/blob/trunk/lib/rdoc/text.rb#L11 begin gem 'json' +rescue NameError => e # --disable-gems + raise unless e.name == :gem rescue Gem::LoadError end Index: lib/rdoc/rdoc.gemspec =================================================================== --- lib/rdoc/rdoc.gemspec (revision 53237) +++ lib/rdoc/rdoc.gemspec (revision 53238) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rdoc.gemspec#L1 Gem::Specification.new do |s| s.name = "rdoc" - s.version = "4.2.0" + s.version = "4.2.1" s.summary = "This rdoc is bundled with Ruby" s.executables = ["rdoc", "ri"] s.files = ["rdoc.rb", "rdoc/alias.rb", "rdoc/anon_class.rb", "rdoc/any_method.rb", "rdoc/attr.rb", "rdoc/class_module.rb", "rdoc/code_object.rb", "rdoc/code_objects.rb", "rdoc/comment.rb", "rdoc/constant.rb", "rdoc/context.rb", "rdoc/context/section.rb", "rdoc/cross_reference.rb", "rdoc/encoding.rb", "rdoc/erb_partial.rb", "rdoc/erbio.rb", "rdoc/extend.rb", "rdoc/generator.rb", "rdoc/generator/darkfish.rb", "rdoc/generator/json_index.rb", "rdoc/generator/markup.rb", "rdoc/generator/pot.rb", "rdoc/generator/pot/message_extractor.rb", "rdoc/generator/pot/po.rb", "rdoc/generator/pot/po_entry.rb", "rdoc/generator/ri.rb", "rdoc/ghost_method.rb", "rdoc/i18n.rb", "rdoc/i18n/locale.rb", "rdoc/i18n/text.rb", "rdoc/include.rb", "rdoc/known_classes.rb", "rdoc/markdown.rb", "rdoc/markdown/entities.rb", "rdoc/markdown/literals_1_9.rb", "rdoc/markup.rb", "rdoc/markup/attr_changer.rb", "rdoc/markup/attr_span.rb", "rdoc/markup/attribute_manager.rb", "rdoc/markup/attributes.rb", "rdoc/mark up/blank_line.rb", "rdoc/markup/block_quote.rb", "rdoc/markup/document.rb", "rdoc/markup/formatter.rb", "rdoc/markup/formatter_test_case.rb", "rdoc/markup/hard_break.rb", "rdoc/markup/heading.rb", "rdoc/markup/include.rb", "rdoc/markup/indented_paragraph.rb", "rdoc/markup/inline.rb", "rdoc/markup/list.rb", "rdoc/markup/list_item.rb", "rdoc/markup/paragraph.rb", "rdoc/markup/parser.rb", "rdoc/markup/pre_process.rb", "rdoc/markup/raw.rb", "rdoc/markup/rule.rb", "rdoc/markup/special.rb", "rdoc/markup/text_formatter_test_case.rb", "rdoc/markup/to_ansi.rb", "rdoc/markup/to_bs.rb", "rdoc/markup/to_html.rb", "rdoc/markup/to_html_crossref.rb", "rdoc/markup/to_html_snippet.rb", "rdoc/markup/to_joined_paragraph.rb", "rdoc/markup/to_label.rb", "rdoc/markup/to_markdown.rb", "rdoc/markup/to_rdoc.rb", "rdoc/markup/to_table_of_contents.rb", "rdoc/markup/to_test.rb", "rdoc/markup/to_tt_only.rb", "rdoc/markup/verbatim.rb", "rdoc/meta_method.rb", "rdoc/method_attr.rb", "rdoc/mixin.rb", "rdoc/ normal_class.rb", "rdoc/normal_module.rb", "rdoc/options.rb", "rdoc/parser.rb", "rdoc/parser/c.rb", "rdoc/parser/changelog.rb", "rdoc/parser/markdown.rb", "rdoc/parser/rd.rb", "rdoc/parser/ruby.rb", "rdoc/parser/ruby_tools.rb", "rdoc/parser/simple.rb", "rdoc/parser/text.rb", "rdoc/rd.rb", "rdoc/rd/block_parser.rb", "rdoc/rd/inline.rb", "rdoc/rd/inline_parser.rb", "rdoc/rdoc.rb", "rdoc/require.rb", "rdoc/ri.rb", "rdoc/ri/driver.rb", "rdoc/ri/formatter.rb", "rdoc/ri/paths.rb", "rdoc/ri/store.rb", "rdoc/ri/task.rb", "rdoc/ruby_lex.rb", "rdoc/ruby_token.rb", "rdoc/rubygems_hook.rb", "rdoc/servlet.rb", "rdoc/single_class.rb", "rdoc/stats.rb", "rdoc/stats/normal.rb", "rdoc/stats/quiet.rb", "rdoc/stats/verbose.rb", "rdoc/store.rb", "rdoc/task.rb", "rdoc/test_case.rb", "rdoc/text.rb", "rdoc/token_stream.rb", "rdoc/tom_doc.rb", "rdoc/top_level.rb"] Index: test/rdoc/test_rdoc_servlet.rb =================================================================== --- test/rdoc/test_rdoc_servlet.rb (revision 53237) +++ test/rdoc/test_rdoc_servlet.rb (revision 53238) @@ -533,4 +533,3 @@ class TestRDocServlet < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_servlet.rb#L533 end end - Index: test/rdoc/test_rdoc_markup_to_html.rb =================================================================== --- test/rdoc/test_rdoc_markup_to_html.rb (revision 53237) +++ test/rdoc/test_rdoc_markup_to_html.rb (revision 53238) @@ -620,7 +620,6 @@ class TestRDocMarkupToHtml < RDoc::Marku https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_markup_to_html.rb#L620 'def x() end', 'def x; end', 'class C; end', - 'class C end', "module M end", 'a # => blah', 'x { |y| nil }', -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/