Sha256: 472afd993288ddc1fb46b8fef4636fba6eee420b02e604fc07523b343769244d
Contents?: true
Size: 1.73 KB
Versions: 7
Compression:
Stored size: 1.73 KB
Contents
#-*- mode: ruby -*- #-- # Copyright (c) 2010-2012 Engine Yard, Inc. # Copyright (c) 2007-2009 Sun Microsystems, Inc. # This source code is available under the MIT license. # See the file LICENSE.txt for details. #++ unless defined? Bundler warn "\nPlease `gem install bundler' and run `bundle install' to ensure you have all dependencies and run inside a bundler context 'bundle exec rake'.\n\n" end require 'bundler/gem_helper' gem_helper = Bundler::GemHelper.new(File.dirname(__FILE__)) gem_helper.install gemspec = gem_helper.gemspec require 'rake/clean' CLEAN << "pkg" << "doc" << Dir['integration/**/target'] require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = ['--color', "--format documentation"] end task :default => :spec # use Mavenfile to define :jar task require 'maven/ruby/tasks' desc 'run some integration test' task :integration do maven.verify end desc 'generate the pom.xml from the Mavenfile' task :pom do maven.validate end # Make sure jar gets compiled before the gem is built # the jar tasks is part of maven-tasks task :build => :jar require 'rdoc/task' RDoc::Task.new(:docs) do |rd| rd.rdoc_dir = "doc" rd.rdoc_files.include("README.rdoc", "History.txt", "LICENSE.txt") rd.rdoc_files += gemspec.require_paths rd.options << '--title' << "#{gemspec.name}-#{gemspec.version} Documentation" rd.options += gemspec.rdoc_options end task :release_docs => :docs do config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml"))) rescue nil if config dir = "/var/www/gforge-projects/#{gemspec.rubyforge_project}/#{gemspec.name}" dest = "#{config["username"]}@rubyforge.org:#{dir}" sh %{rsync -rl --delete doc/ #{dest}} end end task :release => :release_docs
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
warbler-2.0.0.pre1 | Rakefile |
warbler-1.4.7 | Rakefile |
warbler-1.4.6 | Rakefile |
warbler-1.4.5 | Rakefile |
warbler-1.4.4 | Rakefile |
warbler-1.4.3 | Rakefile |
warbler-1.4.2 | Rakefile |