Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 1.08 KB
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'lib/unfuzzle/version'
task :default => :test
spec = Gem::Specification.new do |s|
s.name = 'unfuzzle'
s.version = Unfuzzle::Version.to_s
s.has_rdoc = true
s.extra_rdoc_files = %w(README.rdoc)
s.rdoc_options = %w(--main README.rdoc)
s.summary = "This gem provides an interface to the Unfuddle XML API"
s.author = 'Patrick Reagan'
s.email = 'patrick.reagan@viget.com'
s.homepage = 'http://www.viget.com/extend'
s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,test}/**/*")
s.add_dependency('graft', '>= 0.2.1')
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end
desc 'Generate the gemspec to serve this Gem from Github'
task :github do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, 'w') {|f| f << spec.to_ruby }
puts "Created gemspec: #{file}"
end
Something went wrong with that request. Please try again.