summaryrefslogtreecommitdiff
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
parent2176379a0d49dbe4c92473915374f173c62eb4ea (diff)
downloadmixlib-authentication-f3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401.tar.gz
Add a gemspec so mixlib-authn can be bundled
-rw-r--r--Rakefile26
-rw-r--r--mixlib-authentication.gemspec21
2 files changed, 25 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"
diff --git a/mixlib-authentication.gemspec b/mixlib-authentication.gemspec
new file mode 100644
index 0000000..178fc18
--- /dev/null
+++ b/mixlib-authentication.gemspec
@@ -0,0 +1,21 @@
+MIXLIB_AUTHN_VERSION = '1.1.5'
+
+Gem::Specification.new do |s|
+ s.name = "mixlib-authentication"
+ s.version = MIXLIB_AUTHN_VERSION
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'NOTICE']
+ s.summary = "Mixes in simple per-request authentication"
+ s.description = s.summary
+ s.author = "Opscode, Inc."
+ s.email = "info@opscode.com"
+ s.homepage = "http://www.opscode.com"
+
+ # Uncomment this to add a dependency
+ s.add_dependency "mixlib-log"
+
+ s.require_path = 'lib'
+ s.files = %w(LICENSE README.rdoc Rakefile NOTICE) + Dir.glob("{lib,spec}/**/*")
+end
+