diff --git a/README b/README index 34ce202..286d0c8 100755 --- a/README +++ b/README @@ -15,8 +15,8 @@ gem install docsplit For documentation, usage, and examples, see: - http://documentcloud.github.com/docsplit/ + http://documentcloud.github.io/docsplit/ To suggest a feature or report a bug: - http://github.com/documentcloud/docsplit/issues/ + https://github.com/documentcloud/docsplit/issues/ diff --git a/Rakefile b/Rakefile index e6c5153..469c90f 100755 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ require 'fileutils' require 'rake/testtask' +require 'bundler/gem_tasks' desc 'Run all tests' task :test do @@ -7,19 +8,4 @@ task :test do Dir['./test/*/**/test_*.rb'].each {|test| require test } end -namespace :gem do - - desc 'Build and install the docsplit gem' - task :install do - sh "gem build docsplit.gemspec" - sh "sudo gem install #{Dir['*.gem'].join(' ')} --local --no-ri --no-rdoc" - end - - desc 'Uninstall the docsplit gem' - task :uninstall do - sh "sudo gem uninstall -x docsplit" - end - -end - task :default => :test diff --git a/docsplit.gemspec b/docsplit.gemspec index 97b06de..2cf81d6 100755 --- a/docsplit.gemspec +++ b/docsplit.gemspec @@ -1,9 +1,12 @@ +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'docsplit/version' + Gem::Specification.new do |s| s.name = 'docsplit' - s.version = '0.7.4' # Keep version in sync with docsplit.rb - s.date = '2014-02-16' + s.version = Docsplit::VERSION - s.homepage = "http://documentcloud.github.com/docsplit/" + s.homepage = 'http://documentcloud.github.io/docsplit/' s.summary = "Break Apart Documents into Images, Text, Pages and PDFs" s.description = <<-EOS Docsplit is a command-line utility and Ruby library for splitting apart @@ -22,4 +25,14 @@ Gem::Specification.new do |s| s.files = Dir['build/**/*', 'lib/**/*', 'bin/*', 'vendor/**/*', 'docsplit.gemspec', 'LICENSE', 'README'] -end \ No newline at end of file + + s.add_development_dependency 'bundler', '~> 1.5' + s.add_development_dependency 'rake' + + s.requirements << 'GraphicsMagick' + s.requirements << 'Poppler' + s.requirements << 'Ghostscript (optional)' + s.requirements << 'Tesseract (optional)' + s.requirements << 'pdftk (optional)' + s.requirements << 'LibreOffice (optional)' +end diff --git a/index.html b/index.html index 981c34d..c6ff78f 100755 --- a/index.html +++ b/index.html @@ -90,7 +90,7 @@
- Docsplit + Docsplit is a command-line utility and Ruby library for splitting apart documents into their component parts: searchable UTF-8 plain text via OCR if necessary, page images or thumbnails in any format, diff --git a/lib/docsplit.rb b/lib/docsplit.rb index 8d0d41b..4f9cab5 100755 --- a/lib/docsplit.rb +++ b/lib/docsplit.rb @@ -5,8 +5,6 @@ # The Docsplit module delegates to the Java PDF extractors. module Docsplit - VERSION = '0.7.4' # Keep in sync with gemspec. - ESCAPE = lambda {|x| Shellwords.shellescape(x) } ROOT = File.expand_path(File.dirname(__FILE__) + '/..') diff --git a/lib/docsplit/version.rb b/lib/docsplit/version.rb new file mode 100644 index 0000000..c731581 --- /dev/null +++ b/lib/docsplit/version.rb @@ -0,0 +1,3 @@ +module Docsplit + VERSION = '0.7.4' +end