From 9dab4bfe58d561f6103af39abd7b20e9244010ec Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 12 Sep 2010 09:25:10 -0400 Subject: [PATCH] fix a bug --- bin/minicomic-backend.rb | 36 ------------------------------------ test/file_processor_test.rb | 4 ---- 2 files changed, 40 deletions(-) delete mode 100755 bin/minicomic-backend.rb diff --git a/bin/minicomic-backend.rb b/bin/minicomic-backend.rb deleted file mode 100755 index 7e1b4df..0000000 --- a/bin/minicomic-backend.rb +++ /dev/null @@ -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__)} " - 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! diff --git a/test/file_processor_test.rb b/test/file_processor_test.rb index b5c9dfe..1c9444e 100644 --- a/test/file_processor_test.rb +++ b/test/file_processor_test.rb @@ -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