Sha256: 27dbc740e766901b9c77c83b63fd3cd61d1ebd87090e20611dc3d80ef408f194
Contents?: true
Size: 1009 Bytes
Versions: 3
Compression:
Stored size: 1009 Bytes
Contents
require 'rubygems' require 'rubygems/package_task' require 'rubygems/specification' require 'date' require 'rspec/core/rake_task' GEM = "mixlib-authentication" GEM_VERSION = "1.2.1" AUTHOR = "Opscode, Inc." EMAIL = "info@opscode.com" HOMEPAGE = "http://www.opscode.com" SUMMARY = "Mixes in simple per-request authentication" task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = %w(--format documentation --color) end gem_spec = eval(File.read("mixlib-authentication.gemspec")) Gem::PackageTask.new(gem_spec) do |pkg| pkg.gem_spec = gem_spec end desc "install the gem locally" task :install => [:package] do sh %{gem install pkg/#{GEM}-#{GEM_VERSION}} end desc "create a gemspec file" task :make_spec do File.open("#{GEM}.gemspec", "w") do |file| file.puts spec.to_ruby end end desc "remove build files" task :clean do sh %Q{ rm -f pkg/*.gem } end desc "Run the spec and features" task :test => [ :features, :spec ]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mixlib-authentication-1.4.0 | Rakefile |
mixlib-authentication-1.4.0.rc.1 | Rakefile |
mixlib-authentication-1.4.0.rc.0 | Rakefile |