Permalink
Browse files

updated gem so it has the correct load path

  • Loading branch information...
1 parent 116ea72 commit ad560d859f8e2f990d8061fa074378ff1a5c5669 @scottdavis committed Jun 13, 2011
Showing with 19 additions and 8 deletions.
  1. +5 −1 Gemfile
  2. +6 −0 Gemfile.lock
  3. +2 −1 { → tesseract}/tesseract.rb
  4. +0 −6 test/tesseract_test.rb
  5. +6 −0 test/test_helper.rb
View
6 Gemfile
@@ -1,3 +1,7 @@
source 'http://rubygems.org'
-gemspec
+gemspec
+
+gem 'rake', '~> 0.8.7'
+gem 'shoulda', '~> 2.11.3'
+gem 'mocha', '~> 0.9.12'
View
6 Gemfile.lock
@@ -6,10 +6,16 @@ PATH
GEM
remote: http://rubygems.org/
specs:
+ mocha (0.9.12)
+ rake (0.8.7)
+ shoulda (2.11.3)
PLATFORMS
ruby
DEPENDENCIES
bundler (>= 1.0.0)
+ mocha (~> 0.9.12)
+ rake (~> 0.8.7)
+ shoulda (~> 2.11.3)
tesseract!
View
3 tesseract.rb → tesseract/tesseract.rb
@@ -1,4 +1,5 @@
-Dir["tesseract/*.rb"].each { |file| require file }
+require 'dependency_checker'
+require 'file_handler'
require 'pathname'
require 'digest/md5'
module Tesseract
View
6 test/tesseract_test.rb
@@ -1,10 +1,4 @@
-require 'test/unit'
-require 'test/unit/assertions'
-require 'rubygems'
-require 'shoulda'
require 'test_helper'
-require 'mocha'
-require '../tesseract/tesseract'
class TesseractTest < Test::Unit::TestCase
TEST_FILE = File.join(File.dirname(__FILE__), 'photo.jpeg')
View
6 test/test_helper.rb
@@ -1,3 +1,9 @@
+require 'test/unit'
+require 'test/unit/assertions'
+require 'rubygems'
+require 'shoulda'
+require 'mocha'
+require 'tesseract'
class Test::Unit::TestCase
def silence_stream(stream)
old_stream = stream.dup

0 comments on commit ad560d8

Please sign in to comment.