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 +5 -0
- data/README.html +2 -2
- data/README.ja.html +2 -2
- data/README.rd +1 -1
- data/README.rd.ja +1 -1
- data/bin/rd2 +9 -7
- data/doc/rd-draft.html +1 -1
- data/doc/rd-draft.ja.html +1 -1
- data/lib/rd/output-format-visitor.rb +2 -0
- data/lib/rd/rd2html-lib.rb +1 -1
- data/lib/rd/rd2man-lib.rb +1 -1
- data/lib/rd/version.rb +1 -1
- data/rdtool.gemspec +2 -2
- data/utils/rd-mode.el +1 -3
- metadata +2 -2
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
|
data/README.html
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>
|
7
|
+
<title>README.rd</title>
|
8
8
|
</head>
|
9
9
|
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">RDtool 0.6.
|
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" -->
|
data/README.ja.html
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>
|
7
|
+
<title>README.rd.ja</title>
|
8
8
|
</head>
|
9
9
|
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">RDtool 0.6.
|
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
data/README.rd.ja
CHANGED
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
|
data/doc/rd-draft.html
CHANGED
@@ -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>
|
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" -->
|
data/doc/rd-draft.ja.html
CHANGED
@@ -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>
|
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)
|
data/lib/rd/rd2html-lib.rb
CHANGED
data/lib/rd/rd2man-lib.rb
CHANGED
data/lib/rd/version.rb
CHANGED
data/rdtool.gemspec
CHANGED
@@ -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.
|
8
|
-
s.date = '2012-
|
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."
|
data/utils/rd-mode.el
CHANGED
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.
|
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-
|
12
|
+
date: 2012-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: racc
|