bin/jsus in jsus-0.1.15 vs bin/jsus in jsus-0.1.17
- old
+ new
@@ -1,10 +1,9 @@
#!/usr/bin/env ruby
require 'rubygems'
require 'jsus'
require "fileutils"
-require "murdoc"
require 'choice'
start_time = Time.now
Choice.options do
option 'input_directory', :required => true do
@@ -90,9 +89,10 @@
end
end
# Generate documentation
unless Choice.choices[:docs_classes].empty?
+ require "murdoc"
documented_sources = Jsus::Container.new
sources = pool ? pool.sources : package.source_files
Choice.choices[:docs_classes].each do |expr|
regex = Regexp.new("^" + expr.gsub("*", ".*") + "$", Regexp::IGNORECASE)
sources.each {|s| documented_sources << s if s.provides.any? {|provided| provided.to_s =~ regex } }