Sha256: fdeadf3867c578d0cbb5ca8511e3a103e0a2b069132e5fe230fd5a33e739b6da

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
tylerhunt-relief-0.0.5 Rakefile
relief-0.0.5 Rakefile