Sha256: f4989b0d8762587db20c319f96adf6690d0a20d92993b395064883142b909ffc

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

require 'rubygems'
require 'rake'
require './lib/cloudfiles.rb'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "ruby-cloudfiles"
    gem.summary = %Q{TODO}
    gem.email = "jon@jonsview.com"
    gem.homepage = "http://github.com/jmstacey/ruby-cloudfiles"
    gem.authors = ["H. Wade Minter", "Rackspace Hosting", "Jon Stacey"]

    # ruby-cloudfiles dependencies
    gem.add_dependency('mime-types', '>= 1.16')
    gem.add_dependency('archive-tar-minitar', '>= 0.5.2')
    gem.add_dependency('nokogiri', '>= 1.2.3')
    gem.add_dependency('hoe', '>= 1.11.0')
    gem.add_dependency('rcov', '>= 0.8.1.2.0')

    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end


task :default => :test

require 'rake/rdoctask'
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 = "ruby-cloudfiles #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jmstacey-ruby-cloudfiles-1.3.3 Rakefile