diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-03-09 19:54:38 -0800 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-03-09 19:54:38 -0800 |
commit | f3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401 (patch) | |
tree | 7c51d070b91ee224eb3e20a5e2278403b139c286 /Rakefile | |
parent | 2176379a0d49dbe4c92473915374f173c62eb4ea (diff) | |
download | mixlib-authentication-f3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401.tar.gz |
Add a gemspec so mixlib-authn can be bundled
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 26 |
1 files changed, 4 insertions, 22 deletions
@@ -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" |