Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 546d2bf829
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (42 sloc) 1.316 kB
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "relief"
gem.summary = %Q{An XML to hash Ruby parser DSL.}
gem.email = "tyler@tylerhunt.com"
gem.homepage = "http://github.com/tylerhunt/relief"
gem.authors = ["Tyler Hunt"]
gem.rubyforge_project = 'relief'
gem.add_dependency 'nokogiri', '~> 1.3.3'
gem.add_development_dependency('jeweler', '~> 0.11.0')
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
task :default => :spec
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "relief #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('LICENSE*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Jump to Line
Something went wrong with that request. Please try again.