deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Client: Removed obsoleted rspec tasks from Rakefile
Date Fri, 10 Aug 2012 10:25:59 GMT
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 <mfojtik@redhat.com>
Authored: Fri Aug 10 12:25:33 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
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}


Mime
View raw message