Sha256: 3e784e5318123d5897df0c9f90677bd27b6255b2f500701211db697139c81bea
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
require 'rake' require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' require 'rake/clean' NAME = "pho" VER = "0.2" RDOC_OPTS = ['--quiet', '--title', 'Pho (Talis Platform Client) Reference', '--main', 'README'] PKG_FILES = %w( README Rakefile ) + Dir.glob("{bin,doc,tests,examples,lib}/**/*") CLEAN.include ['*.gem', 'pkg'] SPEC = Gem::Specification.new do |s| s.name = NAME s.version = VER s.platform = Gem::Platform::RUBY s.has_rdoc = true s.extra_rdoc_files = ["README"] s.rdoc_options = RDOC_OPTS s.summary = "Ruby client for the Talis Platform" s.description = s.summary s.author = "Leigh Dodds" s.email = 'leigh.dodds@talis.com' s.homepage = 'http://pho.rubyforge.net' s.rubyforge_project = 'pho' s.files = PKG_FILES s.require_path = "lib" s.bindir = "bin" s.test_file = "tests/ts_pho.rb" s.add_dependency("httpclient", ">= 2.1.3.1") s.add_dependency("json", ">= 1.1.3") s.add_dependency("mocha", ">= 0.9.5") end Rake::GemPackageTask.new(SPEC) do |pkg| pkg.need_tar = true end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'doc/rdoc' rdoc.options += RDOC_OPTS rdoc.main = "README" rdoc.rdoc_files.add ["README"] end Rake::TestTask.new do |test| test.test_files = FileList['tests/tc_*.rb'] end task :install do sh %{rake package} sh %{sudo gem install pkg/#{NAME}-#{VER}} end task :uninstall => [:clean] do sh %{sudo gem uninstall #{NAME}} end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pho-0.2 | Rakefile |