rdtool 0.6.31 → 0.6.32

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rd/package.rb CHANGED
@@ -1,4 +1,4 @@
1
-
1
+ require 'rd/version'
2
2
  module RD
3
- PACKAGE_VERSION = "0.6.31"
3
+ PACKAGE_VERSION = RD::VERSION
4
4
  end
@@ -11,7 +11,7 @@ module RD
11
11
  include MethodParse
12
12
 
13
13
  SYSTEM_NAME = "RDtool -- RD2HTMLVisitor"
14
- SYSTEM_VERSION = "$Version: 0.6.31$" #"
14
+ SYSTEM_VERSION = "$Version: "+ RD::VERSION+"$"
15
15
  VERSION = Version.new_from_version_string(SYSTEM_NAME, SYSTEM_VERSION)
16
16
 
17
17
  def self.version
data/lib/rd/rd2man-lib.rb CHANGED
@@ -16,7 +16,7 @@ module RD
16
16
  include MethodParse
17
17
 
18
18
  SYSTEM_NAME = "RDtool -- RD2ManVisitor"
19
- SYSTEM_VERSION = "$Version: 0.6.31$" #"
19
+ SYSTEM_VERSION = "$Version: "+RD::VERSION+"$"
20
20
  VERSION = Version.new_from_version_string(SYSTEM_NAME, SYSTEM_VERSION)
21
21
 
22
22
  def self.version
@@ -302,7 +302,7 @@ def next_token
302
302
  part_out = @tree.filter[@in_part].call(part)
303
303
 
304
304
  if @tree.filter[@in_part].mode == :rd # if output is RD formated
305
- subtree = parse_subtree(part_out.to_a)
305
+ subtree = parse_subtree( (RUBY_VERSION >= '1.9.0' ? part_out.lines.to_a : part_out.to_a ) )
306
306
  else # if output is target formated
307
307
  basename = TMPFILE.join('.')
308
308
  TMPFILE[-1] += 1
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by racc 1.4.4
3
+ # This file is automatically generated by racc 1.4.5
4
4
  # from racc grammer file "lib/rd/rdblockparser.ry".
5
5
  #
6
6
 
@@ -14,7 +14,7 @@ module RD
14
14
 
15
15
  class RDParser < Racc::Parser
16
16
 
17
- module_eval <<'..end lib/rd/rdblockparser.ry modeval..idc4b57748f0', 'lib/rd/rdblockparser.ry', 231
17
+ module_eval <<'..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5', 'lib/rd/rdblockparser.ry', 231
18
18
  include ParserUtility
19
19
 
20
20
  TMPFILE = ["rdtmp", $$, 0]
@@ -89,7 +89,7 @@ def next_token
89
89
  part_out = @tree.filter[@in_part].call(part)
90
90
 
91
91
  if @tree.filter[@in_part].mode == :rd # if output is RD formated
92
- subtree = parse_subtree(part_out.to_a)
92
+ subtree = parse_subtree( (RUBY_VERSION >= '1.9.0' ? part_out.lines.to_a : part_out.to_a ) )
93
93
  else # if output is target formated
94
94
  basename = TMPFILE.join('.')
95
95
  TMPFILE[-1] += 1
@@ -296,9 +296,9 @@ def format_line_num(*args)
296
296
  end
297
297
  private :format_line_num
298
298
 
299
- ..end lib/rd/rdblockparser.ry modeval..idc4b57748f0
299
+ ..end lib/rd/rdblockparser.ry modeval..id8f0eb19cd5
300
300
 
301
- ##### racc 1.4.4 generates ###
301
+ ##### racc 1.4.5 generates ###
302
302
 
303
303
  racc_reduce_table = [
304
304
  0, 0, :racc_error,
@@ -455,7 +455,7 @@ def make_reference_from_label(label)
455
455
  end
456
456
 
457
457
  def on_error(et, ev, values)
458
- lines_of_rest = @src.rest.to_a.length
458
+ lines_of_rest = (RUBY_VERSION >= '1.9.0' ? @src.rest.lines.to_a.length : @src.rest.to_a.length )
459
459
  prev_words = prev_words_on_error(ev)
460
460
  at = 4 + prev_words.length
461
461
  message = <<-MSG
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by racc 1.4.4
3
+ # This file is automatically generated by racc 1.4.5
4
4
  # from racc grammer file "lib/rd/rdinlineparser.ry".
5
5
  #
6
6
 
@@ -16,7 +16,7 @@ module RD
16
16
 
17
17
  class RDInlineParser < Racc::Parser
18
18
 
19
- module_eval <<'..end lib/rd/rdinlineparser.ry modeval..id193b0f608d', 'lib/rd/rdinlineparser.ry', 292
19
+ module_eval <<'..end lib/rd/rdinlineparser.ry modeval..idb94166fc78', 'lib/rd/rdinlineparser.ry', 292
20
20
  include ParserUtility
21
21
  extend Forwardable
22
22
 
@@ -183,7 +183,7 @@ def make_reference_from_label(label)
183
183
  end
184
184
 
185
185
  def on_error(et, ev, values)
186
- lines_of_rest = @src.rest.to_a.length
186
+ lines_of_rest = (RUBY_VERSION >= '1.9.0' ? @src.rest.lines.to_a.length : @src.rest.to_a.length )
187
187
  prev_words = prev_words_on_error(ev)
188
188
  at = 4 + prev_words.length
189
189
  message = <<-MSG
@@ -219,9 +219,9 @@ def next_words_on_error
219
219
  end
220
220
  end
221
221
 
222
- ..end lib/rd/rdinlineparser.ry modeval..id193b0f608d
222
+ ..end lib/rd/rdinlineparser.ry modeval..idb94166fc78
223
223
 
224
- ##### racc 1.4.4 generates ###
224
+ ##### racc 1.4.5 generates ###
225
225
 
226
226
  racc_reduce_table = [
227
227
  0, 0, :racc_error,
data/lib/rd/tree.rb CHANGED
@@ -10,7 +10,7 @@ module RD
10
10
  include Enumerable
11
11
 
12
12
  SYSTEM_NAME = "RDtool Framework -- Document Tree"
13
- SYSTEM_VERSION = "$Version: 0.6.31$" #"
13
+ SYSTEM_VERSION = "$Version: "+RD::VERSION+"$"
14
14
  VERSION = Version.new_from_version_string(SYSTEM_NAME, SYSTEM_VERSION)
15
15
 
16
16
  def Tree.version
data/lib/rd/version.rb CHANGED
@@ -1,5 +1,7 @@
1
-
2
1
  module RD
2
+
3
+ VERSION = '0.6.32'
4
+
3
5
  class Version
4
6
  attr_reader :name
5
7
  attr_reader :major, :minor, :patch_level
data/lib/rd/visitor.rb CHANGED
@@ -3,7 +3,7 @@ require "rd/version"
3
3
  module RD
4
4
  class Visitor
5
5
  SYSTEM_NAME = "RDtool Framework -- Visitor"
6
- SYSTEM_VERSION = "$Version: 0.6.31$" #"
6
+ SYSTEM_VERSION = "$Version: "+RD::VERSION+"$"
7
7
  VERSION = Version.new_from_version_string(SYSTEM_NAME, SYSTEM_VERSION)
8
8
 
9
9
  def Visitor.version
data/makerdtool.rb CHANGED
@@ -4,12 +4,12 @@
4
4
  # Copyright (C) 2004 MoonWolf <moonwolf@moonwolf.com>
5
5
  # Copyright (C) 2011 Youhei SASAKI <uwabami@gfd-dennou.org>
6
6
 
7
- require 'rbconfig'
7
+ require 'rbconfig' unless defined? RbConfig
8
8
  require 'optparse'
9
9
  require 'find'
10
10
 
11
- bindir = Config::CONFIG['bindir']
12
- sitelibdir = Config::CONFIG['sitelibdir']
11
+ bindir = RbConfig::CONFIG['bindir']
12
+ sitelibdir = RbConfig::CONFIG['sitelibdir']
13
13
  racc = nil
14
14
  version = ARGV.shift || File.read("VERSION")
15
15
  $dryrun = false
data/rdtool.gemspec CHANGED
@@ -1,134 +1,121 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
1
+ # -*- coding: utf-8; mode: ruby -*-
6
2
  Gem::Specification.new do |s|
7
- s.name = "rdtool"
8
- s.version = "0.6.31"
9
-
10
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Youhei SASAKI"]
12
- s.date = "2011-11-11"
4
+ s.rubygems_version = "1.3.5"
5
+
6
+ s.name = 'rdtool'
7
+ s.version = '0.6.32'
8
+ s.date = '2012-02-15'
9
+
10
+ s.summary = "RDtool is formatter for RD."
13
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."
12
+ s.authors = ["Youhei SASAKI"]
14
13
  s.email = "uwabami@gfd-dennou.org"
15
- s.executables = ["rd2", "rdswap.rb"]
16
- s.files = [
17
- "COPYING.txt",
18
- "Gemfile",
19
- "HISTORY",
20
- "LICENSE.txt",
21
- "MANIFEST",
22
- "README.rd",
23
- "README.rd.ja",
24
- "Rakefile",
25
- "TODO",
26
- "VERSION",
27
- "bin/rd2",
28
- "bin/rdswap.rb",
29
- "doc/rd-draft.rd",
30
- "doc/rd-draft.rd.ja",
31
- "lib/rd/block-element.rb",
32
- "lib/rd/complex-list-item.rb",
33
- "lib/rd/desclist.rb",
34
- "lib/rd/document-struct.rb",
35
- "lib/rd/dot.rd2rc",
36
- "lib/rd/element.rb",
37
- "lib/rd/filter.rb",
38
- "lib/rd/inline-element.rb",
39
- "lib/rd/labeled-element.rb",
40
- "lib/rd/list.rb",
41
- "lib/rd/loose-struct.rb",
42
- "lib/rd/methodlist.rb",
43
- "lib/rd/output-format-visitor.rb",
44
- "lib/rd/package.rb",
45
- "lib/rd/parser-util.rb",
46
- "lib/rd/post-install",
47
- "lib/rd/rbl-file.rb",
48
- "lib/rd/rbl-suite.rb",
49
- "lib/rd/rd-struct.rb",
50
- "lib/rd/rd2html-lib.rb",
51
- "lib/rd/rd2html-opt.rb",
52
- "lib/rd/rd2man-lib.rb",
53
- "lib/rd/rd2rdo-lib.rb",
54
- "lib/rd/rd2rmi-lib.rb",
55
- "lib/rd/rdblockparser.ry",
56
- "lib/rd/rdblockparser.tab.rb",
57
- "lib/rd/rdfmt.rb",
58
- "lib/rd/rdinlineparser.ry",
59
- "lib/rd/rdinlineparser.tab.rb",
60
- "lib/rd/rdvisitor.rb",
61
- "lib/rd/reference-resolver.rb",
62
- "lib/rd/search-file.rb",
63
- "lib/rd/tree.rb",
64
- "lib/rd/version.rb",
65
- "lib/rd/visitor.rb",
66
- "makerdtool.rb",
67
- "rdtool.gemspec",
68
- "setup.rb",
69
- "test.rb",
70
- "test/data/includee1.html",
71
- "test/data/includee2.html",
72
- "test/data/includee3.nothtml",
73
- "test/data/includee4.xhtml",
74
- "test/data/label.rbl",
75
- "test/data/label2.rbl",
76
- "test/data/sub/includee2.html",
77
- "test/data/sub/includee4.html",
78
- "test/dummy-observer.rb",
79
- "test/dummy.rb",
80
- "test/temp-dir.rb",
81
- "test/test-block-parser.rb",
82
- "test/test-desclist-item.rb",
83
- "test/test-document-element.rb",
84
- "test/test-document-struct.rb",
85
- "test/test-element.rb",
86
- "test/test-headline.rb",
87
- "test/test-inline-parser.rb",
88
- "test/test-list-item.rb",
89
- "test/test-list.rb",
90
- "test/test-methodlist-item.rb",
91
- "test/test-nonterminal-element.rb",
92
- "test/test-nonterminal-inline.rb",
93
- "test/test-output-format-visitor.rb",
94
- "test/test-parser-util.rb",
95
- "test/test-rbl-file.rb",
96
- "test/test-rbl-suite.rb",
97
- "test/test-rd2html-lib.rb",
98
- "test/test-rdtree.rb",
99
- "test/test-rdvisitor.rb",
100
- "test/test-reference-resolver.rb",
101
- "test/test-reference.rb",
102
- "test/test-search-file.rb",
103
- "test/test-terminal-inline.rb",
104
- "test/test-textblock.rb",
105
- "test/test-tree.rb",
106
- "test/test-version.rb",
107
- "test/test-visitor.rb",
108
- "utils/rd-mode.el"
109
- ]
110
14
  s.homepage = "http://github.com/uwabami/rdtool"
111
- s.licenses = ["GPL", "Ruby"]
15
+ s.licenses = ["GPL-2+", "Ruby"]
112
16
  s.require_paths = ["lib"]
113
- s.rubygems_version = "1.8.11"
114
- s.summary = "RDtool is formatter for RD."
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.test_files = `git ls-files -- test/*`.split("\n")
115
19
 
116
- if s.respond_to? :specification_version then
117
- s.specification_version = 3
20
+ s.add_development_dependency('racc', "~> 1.4.6")
21
+ s.add_development_dependency('rake', ">= 0") unless defined? Rake
118
22
 
119
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
120
- s.add_development_dependency(%q<rake>, [">= 0"])
121
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
122
- s.add_development_dependency(%q<racc>, ["~> 1.4.6"])
123
- else
124
- s.add_dependency(%q<rake>, [">= 0"])
125
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
126
- s.add_dependency(%q<racc>, ["~> 1.4.6"])
127
- end
128
- else
129
- s.add_dependency(%q<rake>, [">= 0"])
130
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
131
- s.add_dependency(%q<racc>, ["~> 1.4.6"])
132
- end
133
- end
23
+ # = MANIFEST =
24
+ s.files = %w[
25
+ COPYING.txt
26
+ Gemfile
27
+ HISTORY
28
+ LICENSE.txt
29
+ README.html
30
+ README.ja.html
31
+ README.rd
32
+ README.rd.ja
33
+ Rakefile
34
+ TODO
35
+ bin/rd2
36
+ bin/rdswap.rb
37
+ doc/rd-draft.html
38
+ doc/rd-draft.ja.html
39
+ doc/rd-draft.rd
40
+ doc/rd-draft.rd.ja
41
+ lib/rd/block-element.rb
42
+ lib/rd/complex-list-item.rb
43
+ lib/rd/desclist.rb
44
+ lib/rd/document-struct.rb
45
+ lib/rd/dot.rd2rc
46
+ lib/rd/element.rb
47
+ lib/rd/filter.rb
48
+ lib/rd/inline-element.rb
49
+ lib/rd/labeled-element.rb
50
+ lib/rd/list.rb
51
+ lib/rd/loose-struct.rb
52
+ lib/rd/methodlist.rb
53
+ lib/rd/output-format-visitor.rb
54
+ lib/rd/package.rb
55
+ lib/rd/parser-util.rb
56
+ lib/rd/post-install
57
+ lib/rd/rbl-file.rb
58
+ lib/rd/rbl-suite.rb
59
+ lib/rd/rd-struct.rb
60
+ lib/rd/rd2html-lib.rb
61
+ lib/rd/rd2html-opt.rb
62
+ lib/rd/rd2man-lib.rb
63
+ lib/rd/rd2rdo-lib.rb
64
+ lib/rd/rd2rmi-lib.rb
65
+ lib/rd/rdblockparser.ry
66
+ lib/rd/rdblockparser.tab.rb
67
+ lib/rd/rdfmt.rb
68
+ lib/rd/rdinlineparser.ry
69
+ lib/rd/rdinlineparser.tab.rb
70
+ lib/rd/rdvisitor.rb
71
+ lib/rd/reference-resolver.rb
72
+ lib/rd/search-file.rb
73
+ lib/rd/tree.rb
74
+ lib/rd/version.rb
75
+ lib/rd/visitor.rb
76
+ makerdtool.rb
77
+ rdtool.gemspec
78
+ setup.rb
79
+ test/data/includee1.html
80
+ test/data/includee2.html
81
+ test/data/includee3.nothtml
82
+ test/data/includee4.xhtml
83
+ test/data/label.rbl
84
+ test/data/label2.rbl
85
+ test/data/sub/includee2.html
86
+ test/data/sub/includee4.html
87
+ test/dummy-observer.rb
88
+ test/dummy.rb
89
+ test/temp-dir.rb
90
+ test/test-block-parser.rb
91
+ test/test-desclist-item.rb
92
+ test/test-document-element.rb
93
+ test/test-document-struct.rb
94
+ test/test-element.rb
95
+ test/test-headline.rb
96
+ test/test-inline-parser.rb
97
+ test/test-list-item.rb
98
+ test/test-list.rb
99
+ test/test-methodlist-item.rb
100
+ test/test-nonterminal-element.rb
101
+ test/test-nonterminal-inline.rb
102
+ test/test-output-format-visitor.rb
103
+ test/test-parser-util.rb
104
+ test/test-rbl-file.rb
105
+ test/test-rbl-suite.rb
106
+ test/test-rd2html-lib.rb
107
+ test/test-rdtree.rb
108
+ test/test-rdvisitor.rb
109
+ test/test-reference-resolver.rb
110
+ test/test-reference.rb
111
+ test/test-search-file.rb
112
+ test/test-terminal-inline.rb
113
+ test/test-textblock.rb
114
+ test/test-tree.rb
115
+ test/test-version.rb
116
+ test/test-visitor.rb
117
+ utils/rd-mode.el
118
+ ]
119
+ # = MANIFEST =
134
120
 
121
+ end
data/setup.rb CHANGED
@@ -660,7 +660,7 @@ module FileOperations
660
660
  def ruby(*args)
661
661
  command config('rubyprog'), *args
662
662
  end
663
-
663
+
664
664
  def make(task = nil)
665
665
  command(*[config('makeprog'), task].compact)
666
666
  end
@@ -723,7 +723,7 @@ module HookScriptAPI
723
723
  def srcdirectory?(path)
724
724
  File.dir?(srcfile(path))
725
725
  end
726
-
726
+
727
727
  def srcfile?(path)
728
728
  File.file?(srcfile(path))
729
729
  end
@@ -784,9 +784,9 @@ class ToplevelInstaller
784
784
  load File.expand_path(arg.split(/=/, 2)[1])
785
785
  $".push 'rbconfig.rb'
786
786
  else
787
- require 'rbconfig'
787
+ require 'rbconfig' unless defined? RbConfig
788
788
  end
789
- ::Config::CONFIG
789
+ ::RbConfig::CONFIG
790
790
  end
791
791
 
792
792
  def initialize(ardir_root, config)
@@ -827,7 +827,7 @@ class ToplevelInstaller
827
827
  __send__ "exec_#{task}"
828
828
  end
829
829
  end
830
-
830
+
831
831
  def run_metaconfigs
832
832
  @config.load_script "#{@ardir}/metaconfig"
833
833
  end
@@ -1414,7 +1414,7 @@ class Installer
1414
1414
  end
1415
1415
 
1416
1416
  # picked up many entries from cvs-1.11.1/src/ignore.c
1417
- JUNK_FILES = %w(
1417
+ JUNK_FILES = %w(
1418
1418
  core RCSLOG tags TAGS .make.state
1419
1419
  .nse_depinfo #* .#* cvslog.* ,* .del-* *.olb
1420
1420
  *~ *.old *.bak *.BAK *.orig *.rej _$* *$