Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bitclust-dev.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ EOD
}

s.files = Dir["tools/*"]
s.executables = Dir["tools/*"].
map {|v| File.basename(v) }.
reject {|f| %w(ToDoHistory check-signature.rb).include?(f) }
s.executables = Dir["tools/*"].map {|v| File.basename(v) }
s.require_paths = ["lib"]
s.bindir = "tools"

Expand Down
6 changes: 0 additions & 6 deletions doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ bitclust -d ./db property --set encoding euc-jp
<dd>
システムに存在する全 ruby について、定義されているメソッドを表示する。
るりまのリファレンスファイルに書かれてあるメソッドに不足がないかもチェックできる。
-c をつけると不足しているメソッドの ri の内容が表示される。
ライブラリに対して使うときは -r オプションが必須。
[ruby-reference-manual:468], [ruby-reference-manual:558]
</dd>
Expand All @@ -280,7 +279,6 @@ bitclust -d ./db property --set encoding euc-jp
bitclust methods Object
bitclust methods -rLIBRARY --ruby=RUBY_VERSION --diff=RDFILE CLASS_NAME
bitclust methods -rstringio --ruby=3.4 --diff=../doctree/refm/api/src/stringio StringIO
bitclust methods --ruby=3.4 --diff=../doctree/refm/api/src/_builtin/Object Object -c
```

--diff に渡せるのは旧 RD ソース(refm)のみで、Markdown ソース(manual/)には
Expand Down Expand Up @@ -318,12 +316,8 @@ bitclust -d ./db chm -o ~/tmp/chm #-o省略時は ./chm に出力される
るりまを書く人用のツールです。gem install bitclust-devでインストールできます。

<dl>
<dt>bc-rdoc</dt>
<dd>RDoc データベースと BitClust データベースを比較処理。 [ruby-reference-manual:468]</dd>
<dt>forall-ruby</dt>
<dd>システムに存在する全 ruby について、同じコマンドラインオプションを付けて実行する</dd>
<dt>bc-convert</dt>
<dd>旧リファレンスマニュアルのファイルを BitClustフォーマットに変換します。今はもう使われていません。</dd>
<dt>rrd2md (bin/rrd2md)</dt>
<dd>旧 RD ソースを Markdown へ一括変換する。2026年7月の Markdown 移行に使ったもので、refm 凍結後は旧版のサルベージ用。</dd>
</dl>
Expand Down
36 changes: 0 additions & 36 deletions lib/bitclust/preprocessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,40 +343,4 @@ def samplecode?
end
end
end

# Used by tools/stattodo.rb
class LineCollector < LineFilter

def LineCollector.process(path)
fopen(path) {|f|
return wrap(f).to_a
}
end

def LineCollector.wrap(f)
new(LineStream.new(f))
end

private

def next_line(f)
while line = f.gets
if /\A\#[@%]include\s*\((.*?)\)/ =~ line
begin
file = ($1 || raise).strip
basedir = File.dirname(line.location.file || raise)
@buf.concat LineCollector.process("#{basedir}/#{file}")
rescue Errno::ENOENT => _err
raise WrongInclude, "#{line.location}: \#@include'ed file not exist: #{file}"
end
else
@buf.push line
end
break unless @buf.empty?
end
@buf.shift
end

end

end
Loading
Loading