Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes #103

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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/

16 changes: 1 addition & 15 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
require 'fileutils'
require 'rake/testtask'
require 'bundler/gem_tasks'

desc 'Run all tests'
task :test do
require 'test/unit'
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
21 changes: 17 additions & 4 deletions docsplit.gemspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -22,4 +25,14 @@ Gem::Specification.new do |s|

s.files = Dir['build/**/*', 'lib/**/*', 'bin/*', 'vendor/**/*',
'docsplit.gemspec', 'LICENSE', 'README']
end

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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<h1>Doc<sub style="font-size:150%;">&#9889;</sub>split</h1>

<p>
<a href="http://github.com/documentcloud/docsplit/">Docsplit</a>
<a href="https://github.com/documentcloud/docsplit/">Docsplit</a>
is a command-line utility and Ruby library for splitting apart
documents into their component parts: searchable UTF-8 <b>plain text</b>
via OCR if necessary, page <b>images</b> or thumbnails in any format,
Expand Down
2 changes: 0 additions & 2 deletions lib/docsplit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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__) + '/..')
Expand Down
3 changes: 3 additions & 0 deletions lib/docsplit/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Docsplit
VERSION = '0.7.4'
end