fix a bug

This commit is contained in:
John Bintz 2010-09-12 09:25:10 -04:00
parent e7677b64f2
commit 9dab4bfe58
2 changed files with 0 additions and 40 deletions

View File

@ -1,36 +0,0 @@
#!/usr/bin/ruby
require 'yaml'
begin
require 'home_run'
rescue LoadError
STDERR.puts "Install home_run for faster date handling"
end
require 'time'
begin
require 'minicomic-backend'
rescue LoadError
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'minicomic-backend'
end
require 'minicomic-backend/config_loader'
require 'minicomic-backend/file_processor'
if !ARGV[0]
STDERR.puts "Usage: #{File.basename(__FILE__)} <path to YAML file>"
exit 0
end
if !File.exists?(ARGV[0])
STDERR.puts "#{ARGV[0]} doesn't exist!"
exit 1
end
config_loader = ConfigLoader.new
config = config_loader.load(ARGV[0])
file_processor = FileProcessor.new(config)
file_processor.process!

View File

@ -1,9 +1,5 @@
require 'test_helper'
require 'minicomic-backend/file_processor'
require 'minicomic-backend/svg_to_temp_bitmap'
require 'minicomic-backend/temp_bitmap_to_web'
require 'minicomic-backend/temp_bitmap_to_print'
require 'minicomic-backend/temp_bitmap_to_paginated_print'
class TestFileProcessor < Test::Unit::TestCase
def test_verify_filename