Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a gemspec so mixlib-authn can be bundled

  • Loading branch information...
commit f3cd8b31e04aac87f82bb4ae1de6a2bf0ab49401 1 parent 2176379
@danielsdeleo danielsdeleo authored
Showing with 25 additions and 22 deletions.
  1. +4 −22 Rakefile
  2. +21 −0 mixlib-authentication.gemspec
View
26 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"
View
21 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
+
Please sign in to comment.
Something went wrong with that request. Please try again.