[PATCH aeolus-image 3/4] Load gemspec into Rakefile instead of duplicating
jstransk at redhat.com
jstransk at redhat.com
Fri Aug 24 09:05:16 UTC 2012
From: Jiri Stransky <jstransk at redhat.com>
Removes redundant gemspec definition from Rakefile and makes it load
aeolus-image.gemspec.
---
Rakefile | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/Rakefile b/Rakefile
index 7d6e400..7af1507 100644
--- a/Rakefile
+++ b/Rakefile
@@ -26,27 +26,7 @@ RPM_SPEC = "rubygem-aeolus-image.spec"
RPM_SPEC_IN = "rubygem-aeolus-image.spec.in"
PKG_VERSION = "0.6.0"
-spec = Gem::Specification.new do |s|
- s.name = 'aeolus-image'
- s.version = PKG_VERSION
- s.platform = Gem::Platform::RUBY
- s.authors = 'Jason Guiditta, Martyn Taylor'
- s.email = 'jguiditt at redhat.com, mtaylor at redhat.com'
- s.license = 'ASL 2.0'
- s.homepage = "https://github.com/aeolusproject/aeolus-image-rubygem"
- s.summary = 'Ruby Client for Image Warehouse and Image Factory for the Aeolus cloud suite'
- s.description = "aeolus-image is a Ruby library used by Conductor to connect with Image Factory and Image Warehouse."
-
- s.files = Dir["lib/**/*.rb","README.md","COPYING","Rakefile","rake/rpmtask.rb"]
- s.test_files = Dir["spec/**/*.*",".rspec","examples/aeolus-cli"]
- s.require_path = "lib"
- s.add_dependency('activeresource')
- s.add_dependency('nokogiri')
- s.add_dependency('oauth')
- s.add_dependency('rest-client')
-
- s.add_development_dependency('rspec', '>=1.3.0')
-end
+spec = eval(File.read('aeolus-image.gemspec'))
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
--
1.7.11.2
More information about the aeolus-devel
mailing list