rdtool 0.6.37 → 0.6.38

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -70,6 +70,11 @@ RDtool include files which is copyrighted by somebody elses.
70
70
  Please read these files for those lisence info.
71
71
 
72
72
  = CHANGES
73
+
74
+ :0.6.38
75
+ * Fix incompatibility between Ruby1.8 and Ruby1.9
76
+ ARGF.filename return "-" if ARGV is empty on Ruby >= 1.9
77
+ Thanks to okkez!!
73
78
  :0.6.37
74
79
  * Fix rd2man-lib for Ruby1.9.1
75
80
  :0.6.36
@@ -4,10 +4,10 @@
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
- <title>Untitled</title>
7
+ <title>README.rd</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label-0" id="label-0">RDtool 0.6.37</a></h1><!-- RDLabel: "RDtool 0.6.37" -->
10
+ <h1><a name="label-0" id="label-0">RDtool 0.6.38</a></h1><!-- RDLabel: "RDtool 0.6.38" -->
11
11
  <h2><a name="label-1" id="label-1">What is RDtool</a></h2><!-- RDLabel: "What is RDtool" -->
12
12
  <p>RD is Ruby's POD. RDtool is formatter for RD.</p>
13
13
  <h2><a name="label-2" id="label-2">What is Changed</a></h2><!-- RDLabel: "What is Changed" -->
@@ -4,10 +4,10 @@
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
- <title>Untitled</title>
7
+ <title>README.rd.ja</title>
8
8
  </head>
9
9
  <body>
10
- <h1><a name="label-0" id="label-0">RDtool 0.6.37</a></h1><!-- RDLabel: "RDtool 0.6.37" -->
10
+ <h1><a name="label-0" id="label-0">RDtool 0.6.38</a></h1><!-- RDLabel: "RDtool 0.6.38" -->
11
11
  <h2><a name="label-1" id="label-1">RDってなに?</a></h2><!-- RDLabel: "RDってなに?" -->
12
12
  <p>RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
13
13
  RDtoolはRDのフォーマッタであり、RDをHTMLなどに変換できます。</p>
data/README.rd CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
2
2
  =begin
3
- = RDtool 0.6.37
3
+ = RDtool 0.6.38
4
4
  == What is RDtool
5
5
 
6
6
  RD is Ruby's POD. RDtool is formatter for RD.
@@ -1,6 +1,6 @@
1
1
  # -*- mode: rd; coding: utf-8; indent-tabs-mode: nil -*-
2
2
  =begin
3
- = RDtool 0.6.37
3
+ = RDtool 0.6.38
4
4
  == RDってなに?
5
5
 
6
6
  RDはRubyにおけるPOD(Plain Old Documentation)のようなものです。
data/bin/rd2 CHANGED
@@ -182,6 +182,8 @@ unless $Visitor_Class
182
182
  $Visitor = $Visitor_Class.new
183
183
  end
184
184
 
185
+ $Visitor.input_filename = ARGF.filename
186
+
185
187
  # make tree (but not parsed yet)
186
188
  if from_rdo
187
189
  rdos = []
@@ -193,12 +195,6 @@ if from_rdo
193
195
  tree = RDTree.new_from_rdo(*rdos)
194
196
  tree.include_path = include_path
195
197
  else
196
- # input from ARGF
197
- src = readlines
198
- if src.find{|i| /\S/ === i } and !src.find{|i| /^=begin\b/ === i }
199
- src.unshift("=begin\n").push("=end\n")
200
- end
201
-
202
198
  # set Include_Path
203
199
  if ARGF.filename
204
200
  dir = File.dirname(ARGF.filename)
@@ -207,7 +203,13 @@ else
207
203
  end
208
204
  include_path.push(dir)
209
205
  include_path.push(dir + "/include")
210
-
206
+
207
+ # input from ARGF
208
+ src = readlines
209
+ if src.find{|i| /\S/ === i } and !src.find{|i| /^=begin\b/ === i }
210
+ src.unshift("=begin\n").push("=end\n")
211
+ end
212
+
211
213
  tree = RDTree.new(src, include_path, nil)
212
214
 
213
215
  # filter set tree.filter
@@ -4,7 +4,7 @@
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
- <title>Untitled</title>
7
+ <title>doc/rd-draft.rd</title>
8
8
  </head>
9
9
  <body>
10
10
  <h1><a name="label-0" id="label-0">RD working draft</a></h1><!-- RDLabel: "RD working draft" -->
@@ -4,7 +4,7 @@
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
- <title>Untitled</title>
7
+ <title>doc/rd-draft.rd.ja</title>
8
8
  </head>
9
9
  <body>
10
10
  <h1><a name="label-0" id="label-0">RD working draft 日本語版</a></h1><!-- RDLabel: "RD working draft 日本語版" -->
@@ -12,11 +12,13 @@ module RD
12
12
 
13
13
  attr_accessor :include_suffix
14
14
  attr_accessor :filename
15
+ attr_accessor :input_filename
15
16
 
16
17
  def initialize
17
18
  super
18
19
  @include_suffix = self.class::INCLUDE_SUFFIX.clone
19
20
  @filename = nil
21
+ @input_filename = "-"
20
22
  end
21
23
 
22
24
  def apply_to_Include(element)
@@ -78,7 +78,7 @@ module RD
78
78
  def document_title
79
79
  return @title if @title
80
80
  return @filename if @filename
81
- return ARGF.filename if ARGF.filename != "-"
81
+ return @input_filename unless @input_filename == "-"
82
82
  "Untitled"
83
83
  end
84
84
  private :document_title
@@ -230,7 +230,7 @@ EOT
230
230
  private :meta_char_escape
231
231
 
232
232
  def guess_title
233
- return ARGF.filename unless ARGF.filename == "-"
233
+ return @input_filename unless @input_filename == "-"
234
234
  return @filename if @filename
235
235
  "Untitled"
236
236
  end
@@ -1,6 +1,6 @@
1
1
  module RD
2
2
 
3
- VERSION = '0.6.37'
3
+ VERSION = '0.6.38'
4
4
 
5
5
  class Version
6
6
  attr_reader :name
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = "1.3.5"
5
5
 
6
6
  s.name = 'rdtool'
7
- s.version = '0.6.37'
8
- s.date = '2012-06-12'
7
+ s.version = '0.6.38'
8
+ s.date = '2012-11-27'
9
9
 
10
10
  s.summary = "RDtool is formatter for RD."
11
11
  s.description = "RD is multipurpose documentation format created for documentating Ruby and output of Ruby world. You can embed RD into Ruby script. And RD have neat syntax which help you to read document in Ruby script. On the other hand, RD have a feature for class reference."
@@ -1,6 +1,4 @@
1
- ;;;
2
- ;;; rd-mode.el
3
- ;;; Major mode for RD editing
1
+ ;;; rd-mode.el --- Major mode for RD editing
4
2
  ;;;
5
3
  ;;; NOTE: experimental.
6
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdtool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.37
4
+ version: 0.6.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: racc