Permalink
Browse files

Release 0.6.37

  • Loading branch information...
1 parent 5cbcd19 commit 0de380e604cb33e97bf5033bf71c2fccf0ab724c @uwabami committed Jun 11, 2012
Showing with 17 additions and 5 deletions.
  1. +2 −0 HISTORY
  2. +1 −1 README.rd
  3. +1 −1 README.rd.ja
  4. +11 −1 lib/rd/rd2man-lib.rb
  5. +1 −1 lib/rd/version.rb
  6. +1 −1 rdtool.gemspec
View
@@ -70,6 +70,8 @@ RDtool include files which is copyrighted by somebody elses.
Please read these files for those lisence info.
= CHANGES
+:0.6.37
+ * Fix rd2man-lib for Ruby1.9.1
:0.6.36
* Fix rd2man-lib for Ruby1.9.1, remove invalid @filename.
:0.6.35
View
@@ -1,6 +1,6 @@
# -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
=begin
-= RDtool 0.6.36
+= RDtool 0.6.37
== What is RDtool
RD is Ruby's POD. RDtool is formatter for RD.
View
@@ -1,6 +1,6 @@
# -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
=begin
-= RDtool 0.6.36
+= RDtool 0.6.37
== RDってなに?
RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
View
@@ -3,6 +3,7 @@
=end
require "rd/rdvisitor"
+require "rd/version"
unless [].respond_to? :collect!
class Array
@@ -30,6 +31,7 @@ def self.version
def initialize
@enumcounter = 0
@index = {}
+ @filename = nil
end
def visit(tree)
@@ -39,7 +41,7 @@ def visit(tree)
def apply_to_DocumentElement(element, content)
content = content.join
- title = File.basename(@filename) || "Untilled"
+ title = guess_title
title = title.sub(/\.rd$/i, '').upcase
<<"EOT"
.\\" DO NOT MODIFY THIS FILE! it was generated by rd2
@@ -227,6 +229,14 @@ def meta_char_escape(str)
end
private :meta_char_escape
+ def guess_title
+ return ARGF.filename unless ARGF.filename == "-"
+ return @filename if @filename
+ "Untitled"
+ end
+ private :guess_title
+
+
end # RD2MANVisitor
end # RD
View
@@ -1,6 +1,6 @@
module RD
- VERSION = '0.6.36'
+ VERSION = '0.6.37'
class Version
attr_reader :name
View
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.rubygems_version = "1.3.5"
s.name = 'rdtool'
- s.version = '0.6.36'
+ s.version = '0.6.37'
s.date = '2012-06-12'
s.summary = "RDtool is formatter for RD."

0 comments on commit 0de380e

Please sign in to comment.