summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-03-09 19:54:38 -0800
committerDaniel DeLeo <dan@opscode.com>2011-03-09 19:54:38 -0800
commitf3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401 (patch)
tree7c51d070b91ee224eb3e20a5e2278403b139c286 /Rakefile
parent2176379a0d49dbe4c92473915374f173c62eb4ea (diff)
downloadmixlib-authentication-f3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401.tar.gz
Add a gemspec so mixlib-authn can be bundled
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile26
1 files changed, 4 insertions, 22 deletions
diff --git a/Rakefile b/Rakefile
index 043a2a8..a8499e9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -11,26 +11,6 @@ EMAIL = "info@opscode.com"
HOMEPAGE = "http://www.opscode.com"
SUMMARY = "Mixes in simple per-request authentication"
-spec = Gem::Specification.new do |s|
- s.name = GEM
- s.version = GEM_VERSION
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
- s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'NOTICE']
- s.summary = SUMMARY
- s.description = s.summary
- s.author = AUTHOR
- s.email = EMAIL
- s.homepage = HOMEPAGE
-
- # Uncomment this to add a dependency
- s.add_dependency "mixlib-log"
-
- s.require_path = 'lib'
- s.autorequire = GEM
- s.files = %w(LICENSE README.rdoc Rakefile NOTICE) + Dir.glob("{lib,spec,features}/**/*")
-end
-
task :default => :spec
desc "Run specs"
@@ -39,8 +19,10 @@ RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w(-fs --color)
end
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
+gem_spec = eval(File.read("mixlib-authentication.gemspec"))
+
+Rake::GemPackageTask.new(gem_spec) do |pkg|
+ pkg.gem_spec = gem_spec
end
desc "install the gem locally"