Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AC15D89C for ; Fri, 10 Aug 2012 10:26:01 +0000 (UTC) Received: (qmail 37450 invoked by uid 500); 10 Aug 2012 10:26:01 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 37408 invoked by uid 500); 10 Aug 2012 10:26:00 -0000 Mailing-List: contact commits-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list commits@deltacloud.apache.org Received: (qmail 37381 invoked by uid 99); 10 Aug 2012 10:25:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2012 10:25:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 07FDF1C141; Fri, 10 Aug 2012 10:25:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mfojtik@apache.org To: commits@deltacloud.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: Client: Removed obsoleted rspec tasks from Rakefile Message-Id: <20120810102559.07FDF1C141@tyr.zones.apache.org> Date: Fri, 10 Aug 2012 10:25:59 +0000 (UTC) Updated Branches: refs/heads/master b87c6f7e2 -> 822704a4e Client: Removed obsoleted rspec tasks from Rakefile Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/822704a4 Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/822704a4 Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/822704a4 Branch: refs/heads/master Commit: 822704a4e0296567fb6119ceb7feabf3cd8007a7 Parents: b87c6f7 Author: Michal Fojtik Authored: Fri Aug 10 12:25:33 2012 +0200 Committer: Michal fojtik Committed: Fri Aug 10 12:25:33 2012 +0200 ---------------------------------------------------------------------- client/Rakefile | 25 ++----------------------- 1 files changed, 2 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltacloud/blob/822704a4/client/Rakefile ---------------------------------------------------------------------- diff --git a/client/Rakefile b/client/Rakefile index 9ced4ad..41c9e10 100644 --- a/client/Rakefile +++ b/client/Rakefile @@ -21,34 +21,13 @@ require 'rake/testtask' load 'deltacloud-client.gemspec' -desc "Generate documentation" -task 'documentation' do - load 'lib/documentation.rb' -end - spec = Gem::Specification.load('deltacloud-client.gemspec') + Gem::PackageTask.new(spec) do |pkg| pkg.need_tar = true end -def available?(name) - Gem::Specification.find_by_name(name) -rescue Gem::LoadError - false -rescue - Gem.available?(name) -end - -if available?('rspec') - require 'rspec/core/rake_task' - desc "Run all examples" - RSpec::Core::RakeTask.new('spec') do |t| - t.pattern = FileList['specs/**/*_spec.rb'] - t.rspec_opts = [ "--format", "nested", "--color"] - end -end - -desc "Reinstall gem" +desc "Re-install the deltacloud-client gem" task :reinstall do puts %x{gem uninstall deltacloud-client --all -I -x} puts %x{gem build deltacloud-client.gemspec}