From f34acc2b74d8fd1e3106e412d66f661b239e6336 Mon Sep 17 00:00:00 2001 From: Karl Jonathan Ward Date: Wed, 8 Jun 2011 10:35:36 +0100 Subject: [PATCH] gemspec: Include a gemspec. Remove gem spec from Rakefile. --- Rakefile | 22 ---------------------- {bindir => bin}/pdf-extract | 0 pdf-extract.gemspec | 16 ++++++++++++++++ 3 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 Rakefile rename {bindir => bin}/pdf-extract (100%) create mode 100644 pdf-extract.gemspec diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 1e4004e..0000000 --- a/Rakefile +++ /dev/null @@ -1,22 +0,0 @@ -require 'rubygems' - -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.summary = 'PDF text, region, section and section header extraction tool and library.' - s.name = 'pdf-extract' - s.version = '0.0.1' - s.require_path = 'lib' - s.files = ['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a - s.author = 'Karl Jonathan Ward' - s.required_ruby_version = '>= 1.9.1' - - s.add_dependency 'pdf-reader', '>= 0.9.2' - s.add_dependency 'nokogiri', '>= 1.4.4' - - s.executables << 'pdf-extract' -end - -Rake::GemPackageTask.new spec do |pkg| - pkg.need_zip = true - pkg.need_tar = true -end diff --git a/bindir/pdf-extract b/bin/pdf-extract similarity index 100% rename from bindir/pdf-extract rename to bin/pdf-extract diff --git a/pdf-extract.gemspec b/pdf-extract.gemspec new file mode 100644 index 0000000..771df38 --- /dev/null +++ b/pdf-extract.gemspec @@ -0,0 +1,16 @@ +# Gem spec for pdf-extract. +Gem::Specification.new do |s| + s.name = "pdf-extract" + s.version = "0.0.1" + s.summary = "PDF text, region, section and section header extraction tool and library." + s.files = Dir.glob("{bin,lib}/**/**/*") + ["TODO.md"] + s.executables << "pdf-extract" + s.authors = ["Karl Jonathan Ward"] + s.email = ["kward@crossref.org"] + s.homepage = "http://github.com/CrossRef/pdfextract" + s.required_ruby_version = ">=1.9.1" + + s.add_dependency 'pdf-reader', '>= 0.9.2' + s.add_dependency 'nokogiri', '>= 1.4.4' +end +